Welcome to WebmasterWorld Guest from 3.92.92.168

Forum Moderators: travelin cat

Message Too Old, No Replies

Building PHP

Configures good, errors at make

     
1:15 pm on Sep 10, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 11, 2005
posts:76
votes: 0


Hi, When I try to build PHP 5.1.6 (No I don't want to use packages, no this is not my first time) it errors:

/usr/bin/ld: warning multiple definitions of symbol _pcre_callout
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_callout in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_callout
/usr/bin/ld: warning multiple definitions of symbol _pcre_config
ext/pcre/pcrelib/pcre_config.o definition of _pcre_config in section (__TEXT,__text)
/usr/local/apache2/bin/httpd definition of _pcre_config
/usr/bin/ld: warning multiple definitions of symbol _pcre_stack_free
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_stack_free in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_stack_free
/usr/bin/ld: warning multiple definitions of symbol _pcre_stack_malloc
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_stack_malloc in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_stack_malloc
/usr/bin/ld: warning multiple definitions of symbol _BN_bin2bn
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _BN_bin2bn in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libcrypto.dylib(bn_lib.o) definition of _BN_bin2bn
/usr/bin/ld: warning multiple definitions of symbol _SSLv3_client_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _SSLv3_client_method in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libssl.dylib(s3_clnt.o) definition of _SSLv3_client_method
/usr/bin/ld: warning multiple definitions of symbol _TLSv1_client_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _TLSv1_client_method in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libssl.dylib(t1_clnt.o) definition of _TLSv1_client_method
/usr/bin/ld: multiple definitions of symbol _CRYPTO_add_lock
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libcrypto.dylib(cryptlib.o) definition of _CRYPTO_add_lock
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of _CRYPTO_add_lock in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _CRYPTO_lock
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libcrypto.dylib(cryptlib.o) definition of _CRYPTO_lock
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of _CRYPTO_lock in section (__TEXT,__text)
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

My configure (and optim) string:

CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" OPTIM="-O2" ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/sw --with-iconv=/sw --with-mcrypt=/sw --with-mhash=/sw --with-openssl=/usr --with-kerberos --with-bz2=/usr/bin/bzip2 --with-mime-magic=/usr/local/apache2/conf/magic --enable-soap --enable-ftp --enable-sockets --with-expat=/sw --with-dom=/sw --with-dom-xslt=/sw --with-dom-exslt=/sw --with-libxml-dir=/sw --with-xmlrpc --with-libxml-dir=/sw --with-iconv-dir=/sw --with-xsl=/sw --with-ttf=/sw --with-gd --with-jpeg-dir=/sw --with-png-dir=/sw --with-pdflib=/sw/ --enable-exif --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock

That did work with php 5.1.4, Apache 2.0.55 and Mysql 5 on my 2nd System (I installed a 320 GB SATA drive for more space, fresh osx install, all libs downloaded, installed with dselect, fink and manual build) but not on my new install (on the same machine).

When I let out: --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock
It will compile fine, but with it just keeps erroring...

2:59 pm on Sept 10, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 11, 2005
posts: 76
votes: 0


Sorry for the disturbance, it was already adressed here:

[bugs.php.net...]

..

12:33 pm on Sept 11, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Glad you got it sorted, John_Keates. And even more thankful that you posted here for future readers with the same issue! So, did you end up installing a previous version of MySQL and then upgrading?
4:11 pm on Sept 11, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 11, 2005
posts: 76
votes: 0


Yes, I did 4.1 and built php without any make errors. Then after testing the setup, I upgraded to mysql 5. Worked without a flaw :-)
5:25 pm on Sept 11, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Cool. Thanks for the update, future readers will certainly appreciate it ;)