Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D25AE475C60 for ; Sun, 20 Oct 2002 09:38:37 -0400 (EDT) Received: from smtp-relay01.tc.dsvr.net (smtp-relay01.tc.dsvr.net [212.69.192.4]) by postgresql.org (Postfix) with ESMTP id B7BDA475B8C for ; Sun, 20 Oct 2002 09:38:36 -0400 (EDT) Received: from [212.69.210.163] (helo=fullerruss.dsvr.co.uk) by smtp-relay01.tc.dsvr.net with esmtp (Exim 3.33 #3) id 183GHv-0007Xe-00 for pgsql-php@postgresql.org; Sun, 20 Oct 2002 14:38:39 +0100 Received: from shivers.lan.shivers.org.uk (fuller-228.adsl.newnet.co.uk [213.131.184.228]) by fullerruss.dsvr.co.uk (8.11.6/8.11.6) with ESMTP id g9KDcd627394 for ; Sun, 20 Oct 2002 14:38:39 +0100 Content-Type: text/plain; charset="us-ascii" From: Shane Wright To: pgsql-php@postgresql.org Subject: building on OS X Date: Sun, 20 Oct 2002 14:37:07 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210201437.08089.me@shanewright.co.uk> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/41 X-Sequence-Number: 1556 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I'm having a little trouble getting PHP and PostgreSQL to play nice togethe= r=20 on OSX (10.2.1). PostgreSQL is compiled and running fine, and PHP compiles fine as a command= =20 line app, but when I compile --with-apxs it comes up with all the gubbins= =20 below.=20=20 I've tried pointing it at the right directory by setting LD_LIBRARY_PATH to= =20 /usr/local/pgsql/lib (where both libpq.a and libpq.so live, along with .2= =20 and .2.2 versions). /bin/sh /opt/php-4.2.3/libtool --silent --mode=3Dlink gcc -I.=20 - -I/opt/php-4.2.3/ -I/opt/php-4.2.3/main -I/opt/php-4.2.3=20 - -I/usr/include/httpd -I/opt/php-4.2.3/Zend -I/usr/local/include=20 - -I/opt/php-4.2.3/ext/mysql/libmysql -I/usr/local/pgsql/include=20 - -I/opt/php-4.2.3/ext/xml/expat -traditional-cpp -DDARWIN -DUSE_HSREGEX= =20 - -DUSE_EXPAT -DHARD_SERVER_LIMIT=3D2048 -DEAPI -I/opt/php-4.2.3/TSRM -g=20 - -O2 -prefer-pic -o libphp4.la -rpath /opt/php-4.2.3/libs=20 - -avoid-version -L/usr/local/lib -L/usr/local/pgsql/lib -R=20 /usr/local/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la=20 sapi/apache/libsapi.la main/libmain.la regex/libregex.la=20 /opt/php-4.2.3/ext/ctype/libctype.la=20 /opt/php-4.2.3/ext/mhash/libmhash.la=20 /opt/php-4.2.3/ext/mysql/libmysql.la /opt/php-4.2.3/ext/pcre/libpcre.la=20 /opt/php-4.2.3/ext/pgsql/libpgsql.la=20 /opt/php-4.2.3/ext/posix/libposix.la=20 /opt/php-4.2.3/ext/session/libsession.la=20 /opt/php-4.2.3/ext/standard/libstandard.la=20 /opt/php-4.2.3/ext/xml/libxml.la TSRM/libtsrm.la -lpam -lpq -lmhash -lm *** Warning: This library needs some functionality provided by -lpq. *** I have the capability to make that library automatically link in=20 when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. ld: multiple definitions of symbol _yytext Zend/.libs/libZend.al(zend_language_scanner.lo) definition of _yytext=20 in section (__DATA,__common) Zend/.libs/libZend.al(zend_ini_scanner.lo) definition of _yytext in=20 section (__DATA,__common) ld: multiple definitions of symbol _zendparse Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse=20 in section (__TEXT,__text) Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse=20 in section (__TEXT,__text) ld: multiple definitions of symbol _compile_file Zend/.libs/libZend.al(zend_language_scanner.lo) definition of=20 _compile_file in section (__TEXT,__text) Zend/.libs/libZend.al(zend_language_scanner.lo) definition of=20 _compile_file in section (__TEXT,__text) ld: multiple definitions of symbol _compile_filename Zend/.libs/libZend.al(zend_language_scanner.lo) definition of=20 _compile_filename in section (__TEXT,__text) Zend/.libs/libZend.al(zend_language_scanner.lo) definition of=20 _compile_filename in section (__TEXT,__text) ld: multiple definitions of symbol _compile_string Zend/.libs/libZend.al(zend_language_scanner.lo) definitio Anyone got any ideas? Any help appreciated=20 Cheers - --=20 Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9srGE5DXg6dCMBrQRAmKnAJ4+5Pnp7ysyXnWXZ7FGiIRQICSuNQCdG0D3 PxrofZUkjOmFpOTewryHFn0=3D =3DKR+a -----END PGP SIGNATURE-----