| From: | Howie Eskin <howie(at)caffelena(dot)com> | 
|---|---|
| To: | pgsql-interfaces(at)postgresql(dot)org | 
| Subject: | help -- dyld: /usr/bin/perl Undefined symbols: | 
| Date: | 2002-10-07 20:57:29 | 
| Message-ID: | 3DA1F539.7080409@caffelena.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-interfaces | 
Hi,  I hope you can help me.  I can't get the pg package running on a 
mac os 10.1
(perl, v5.6.0 built for darwin).
Here's the error message:
    alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% make test
    PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
    -I/System/Library/Perl/darwin -I/System/Library/Perl test.pl
    dyld: /usr/bin/perl Undefined symbols:
    _ERR_get_error
    _ERR_reason_error_string
    _SSL_CTX_new
    _SSL_connect
    _SSL_free
    _SSL_library_init
    _SSL_load_error_strings
    _SSL_new
    _SSL_read
    _SSL_set_fd
    _SSL_write
    _SSLv23_method
I don't know where to find these variables. Any suggestions? What am I 
doing wrong?
it said
  " Checking if your kit is complete...
   Looks good"
Many thanks for any help.
- Howie Eskin
 eskin(at)capital(dot)net
=============================================
Here's my directory:
[alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% ls -l
total 680
-rwxr-xr-x  1 howie  staff    7028 Sep  9 17:32 #test.pl#
-rw-r--r--  1 howie  staff    4270 Apr  4  2000 Changes
-rw-r--r--  1 howie  staff      93 Apr  4  2000 MANIFEST
-rw-r--r--  1 howie  staff   22100 Sep  9 16:53 Makefile
-rw-r--r--  1 howie  staff    1252 Apr  4  2000 Makefile.PL
-rw-r--r--  1 howie  staff   22100 Aug 23 20:31 Makefile.old
-rw-r--r--  1 howie  staff       0 Sep  9 16:53 Pg.bs
-rw-r--r--  1 howie  staff   41111 Sep  9 16:53 Pg.c
-rw-r--r--  1 howie  staff  178460 Sep  9 16:53 Pg.o
-rw-r--r--  1 howie  staff   15995 Apr  4  2000 Pg.pm
-rw-r--r--  1 howie  staff   11509 Apr  4  2000 Pg.xs
-rw-r--r--  1 howie  staff    4052 Apr  4  2000 README
drwxr-xr-x  5 howie  staff     264 Sep  9 16:53 blib
drwxr-xr-x  5 howie  staff     264 Aug 18 10:35 eg
-rw-r--r--  1 howie  staff    2566 Sep 17 20:28 notes_hde.rtf
-rw-r--r--  1 howie  staff       0 Sep  9 16:53 pm_to_blib
-rwxr-xr-x  1 howie  staff    7028 Apr  4  2000 test.pl
-rw-r--r--  1 howie  staff     381 Sep 11  1998 typemap
[alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie%
Here's what happens:
    Please set environment variables
    POSTGRES_INCLUDE and POSTGRES_LIB !
    POSTGRES_INCLUDE=/library/PostgreSQL/include
    POSTGRES_LIB=/library/PostgreSQL/lib
Mon Sep 9 16:51:37 EDT 2002
    /Users/howie/pgsql_perl5-1.9.0
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie%  perl Makefile.PL
    Configuring Pg
    Remember to actually read the README file !
    OS: darwin
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Pg
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% make
    mkdir blib
    mkdir blib/lib
    mkdir blib/arch
    mkdir blib/arch/auto
    mkdir blib/arch/auto/Pg
    mkdir blib/lib/auto
    mkdir blib/lib/auto/Pg
    mkdir blib/man3
    cp Pg.pm blib/lib/Pg.pm
    AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
    /usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl
    /System/Library/Perl/ExtUtils/xsubpp  -typemap
    /System/Library/Perl/ExtUtils/typemap -typemap typemap Pg.xs >
    Pg.xsc && mv Pg.xsc Pg.c
    cc -c -I/library/PostgreSQL/include -g -pipe -pipe -fno-common
    -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE
    -fno-strict-aliasing -O3     -DVERSION=\"1.9.0\"
    -DXS_VERSION=\"1.9.0\"  -I/System/Library/Perl/darwin/CORE  Pg.c
    cc: -flat_namespace: linker input file unused since linking not done
    Running Mkbootstrap for Pg ()
    chmod 644 Pg.bs
    LD_RUN_PATH="/library/PostgreSQL/lib" cc -o
    blib/arch/auto/Pg/Pg.bundle  -bundle  -flat_namespace -undefined
    suppress Pg.o    -L/library/PostgreSQL/lib -lpq
    chmod 755 blib/arch/auto/Pg/Pg.bundle
    cp Pg.bs blib/arch/auto/Pg/Pg.bs
    chmod 644 blib/arch/auto/Pg/Pg.bs
    Manifying blib/man3/Pg.3
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% date
    Mon Sep  9 16:53:41 EDT 2002
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie%
    alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% make test
    PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
    -I/System/Library/Perl/darwin -I/System/Library/Perl test.pl
    dyld: /usr/bin/perl Undefined symbols:
    _ERR_get_error
    _ERR_reason_error_string
    _SSL_CTX_new
    _SSL_connect
    _SSL_free
    _SSL_library_init
    _SSL_load_error_strings
    _SSL_new
    _SSL_read
    _SSL_set_fd
    _SSL_write
    _SSLv23_method
    make: *** [test_dynamic] Error 67
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% date
    Mon Sep  9 16:54:30 EDT 2002
    [alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie%
==================================================================
versions:
[alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% perl -v
This is perl, v5.6.0 built for darwin
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License 
or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
[alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=darwin, osvers=1.4, archname=darwin
    uname='darwin law 1.4 darwin kernel version 1.3: sun jul 22 16:20:35 
pdt 2001; aramesh:buildobjrelease_ppc power macintosh powerpc '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags='
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O3', gccversion=Apple devkit-based CPP 6.0
    cppflags='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace 
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
    ccflags ='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace 
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/usr/lib
    libs=-lm -lc
    libc=/System/Library/Frameworks/System.framework/System, so=dylib, 
useshrplib=true, libperl=libperl.dylib
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-bundle  -flat_namespace -undefined suppress'
Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under darwin
  Compiled at Sep  2 2001 17:24:33
  @INC:
    /System/Library/Perl/darwin
    /System/Library/Perl
    /Library/Perl/darwin
    /Library/Perl
    /Library/Perl
    /Network/Library/Perl/darwin
    /Network/Library/Perl
    /Network/Library/Perl
    .
[alb-24-194-100-40:~/pgsql_perl5-1.9.0] howie% 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | George Esperanza | 2002-10-08 03:28:34 | compile error | 
| Previous Message | Nigel J. Andrews | 2002-10-07 17:42:10 | Re: TR: interface PERL and return results |