pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedbuilding on OS X
2+ messages / 1 participants
[nested] [flat]
* building on OS X
@ 2002-10-20 13:37 Shane Wright <me@shanewright.co.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Shane Wright @ 2002-10-20 13:37 UTC (permalink / raw)
To: pgsql-php
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I'm having a little trouble getting PHP and PostgreSQL to play nice together
on OSX (10.2.1).
PostgreSQL is compiled and running fine, and PHP compiles fine as a command
line app, but when I compile --with-apxs it comes up with all the gubbins
below.
I've tried pointing it at the right directory by setting LD_LIBRARY_PATH to
/usr/local/pgsql/lib (where both libpq.a and libpq.so live, along with .2
and .2.2 versions).
/bin/sh /opt/php-4.2.3/libtool --silent --mode=link gcc -I.
- -I/opt/php-4.2.3/ -I/opt/php-4.2.3/main -I/opt/php-4.2.3
- -I/usr/include/httpd -I/opt/php-4.2.3/Zend -I/usr/local/include
- -I/opt/php-4.2.3/ext/mysql/libmysql -I/usr/local/pgsql/include
- -I/opt/php-4.2.3/ext/xml/expat -traditional-cpp -DDARWIN -DUSE_HSREGEX
- -DUSE_EXPAT -DHARD_SERVER_LIMIT=2048 -DEAPI -I/opt/php-4.2.3/TSRM -g
- -O2 -prefer-pic -o libphp4.la -rpath /opt/php-4.2.3/libs
- -avoid-version -L/usr/local/lib -L/usr/local/pgsql/lib -R
/usr/local/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la
/opt/php-4.2.3/ext/ctype/libctype.la
/opt/php-4.2.3/ext/mhash/libmhash.la
/opt/php-4.2.3/ext/mysql/libmysql.la /opt/php-4.2.3/ext/pcre/libpcre.la
/opt/php-4.2.3/ext/pgsql/libpgsql.la
/opt/php-4.2.3/ext/posix/libposix.la
/opt/php-4.2.3/ext/session/libsession.la
/opt/php-4.2.3/ext/standard/libstandard.la
/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
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
in section (__DATA,__common)
Zend/.libs/libZend.al(zend_ini_scanner.lo) definition of _yytext in
section (__DATA,__common)
ld: multiple definitions of symbol _zendparse
Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse
in section (__TEXT,__text)
Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse
in section (__TEXT,__text)
ld: multiple definitions of symbol _compile_file
Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
_compile_file in section (__TEXT,__text)
Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
_compile_file in section (__TEXT,__text)
ld: multiple definitions of symbol _compile_filename
Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
_compile_filename in section (__TEXT,__text)
Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
_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
Cheers
- --
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=
=KR+a
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: building on OS X
@ 2002-10-21 15:31 Shane Wright <me@shanewright.co.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Shane Wright @ 2002-10-21 15:31 UTC (permalink / raw)
To: pgsql-php; +Cc: Mitch <mitch@doot.org>; Chris Ruprecht <chrup@earthlink.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Thanks, I need to build a custom version cos I need mhash and a few other bits
- - but there are nice instructions and a handy patch there :)
success!
Thanks
Shane
On Monday 21 October 2002 3:55 am, Chris Ruprecht wrote:
> Shane,
>
> I had problems building PostgreSQL on my OS X 10.2.1 Mac and eventually
> resorted to the versions provided by
> http://www.entropy.ch/software/macosx/
>
> Best regards,
> Chris
>
> On Sunday, Oct 20, 2002, at 09:37 US/Eastern, Shane Wright wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi
> >
> > I'm having a little trouble getting PHP and PostgreSQL to play nice
> > together
> > on OSX (10.2.1).
> >
> > PostgreSQL is compiled and running fine, and PHP compiles fine as a
> > command
> > line app, but when I compile --with-apxs it comes up with all the
> > gubbins
> > below.
> >
> > I've tried pointing it at the right directory by setting
> > LD_LIBRARY_PATH to
> > /usr/local/pgsql/lib (where both libpq.a and libpq.so live, along
> > with .2
> > and .2.2 versions).
> >
> > /bin/sh /opt/php-4.2.3/libtool --silent --mode=link gcc -I.
> > - -I/opt/php-4.2.3/ -I/opt/php-4.2.3/main -I/opt/php-4.2.3
> > - -I/usr/include/httpd -I/opt/php-4.2.3/Zend -I/usr/local/include
> > - -I/opt/php-4.2.3/ext/mysql/libmysql -I/usr/local/pgsql/include
> > - -I/opt/php-4.2.3/ext/xml/expat -traditional-cpp -DDARWIN
> > -DUSE_HSREGEX
> > - -DUSE_EXPAT -DHARD_SERVER_LIMIT=2048 -DEAPI -I/opt/php-4.2.3/TSRM -g
> > - -O2 -prefer-pic -o libphp4.la -rpath /opt/php-4.2.3/libs
> > - -avoid-version -L/usr/local/lib -L/usr/local/pgsql/lib -R
> > /usr/local/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la
> > sapi/apache/libsapi.la main/libmain.la regex/libregex.la
> > /opt/php-4.2.3/ext/ctype/libctype.la
> > /opt/php-4.2.3/ext/mhash/libmhash.la
> > /opt/php-4.2.3/ext/mysql/libmysql.la /opt/php-4.2.3/ext/pcre/libpcre.la
> > /opt/php-4.2.3/ext/pgsql/libpgsql.la
> > /opt/php-4.2.3/ext/posix/libposix.la
> > /opt/php-4.2.3/ext/session/libsession.la
> > /opt/php-4.2.3/ext/standard/libstandard.la
> > /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
> > 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
> > in section (__DATA,__common)
> > Zend/.libs/libZend.al(zend_ini_scanner.lo) definition of _yytext in
> > section (__DATA,__common)
> > ld: multiple definitions of symbol _zendparse
> > Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse
> > in section (__TEXT,__text)
> > Zend/.libs/libZend.al(zend_language_parser.lo) definition of _zendparse
> > in section (__TEXT,__text)
> > ld: multiple definitions of symbol _compile_file
> > Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
> > _compile_file in section (__TEXT,__text)
> > Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
> > _compile_file in section (__TEXT,__text)
> > ld: multiple definitions of symbol _compile_filename
> > Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
> > _compile_filename in section (__TEXT,__text)
> > Zend/.libs/libZend.al(zend_language_scanner.lo) definition of
> > _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
> >
> > Cheers
> >
> > - --
> > 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=
> > =KR+a
> > -----END PGP SIGNATURE-----
> >
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
- --
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)
iD8DBQE9tB295DXg6dCMBrQRAqraAJ4hfDDwOSxQsnWM4Pm1OCoDvOFaHwCgyFj2
MhBQAQfuqIAtH0zAui4XTQ0=
=qpHr
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-10-21 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20 13:37 building on OS X Shane Wright <me@shanewright.co.uk>
2002-10-21 15:31 Re: building on OS X Shane Wright <me@shanewright.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox