PHP 5.0.4 compilation under Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I've search the archive but doesn't find anything about what I
will expose to you.

There is my problem : 
I've followed the following tutorial :
http://www.phpmac.com/articles.php?view=221
, in order to compile apache 2.0.54 and php 5.0.4 under MacOSX Tiger
10.4.1. XCode is installed on the box in version 2.1.

I only change the configure command line for php by doing this : 
./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --enable-sigchild 
--enable-ftp --with-gd --with-jpeg-dir=/sw --with-png-dir=/sw
--with-mime-magic --with-mysql=/usr/local/mysql --with-ncurses
--enable-sockets --with-unixODBC=/usr --with-pdflib --with-tiff-dir
--enable-sysvmsg --enable-sysvshm --enable-sysvsem --with-xslt
--with-xsl --with-curl -with-ming=/sw --with-libxml-dir
--enable-zend-multibyte --with-crypt --with-mime-magic --with-crack
--enable-mbstring --with-dom && make clean && make

But I little problem. The compilation fails with these error messages : 
/usr/bin/ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in section (__DATA,__data)
/usr/local/apache/bin/httpd definition of _pcre_free
/usr/bin/ld: warning multiple definitions of symbol _pcre_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_malloc in section (__DATA,__data)
/usr/local/apache/bin/httpd definition of _pcre_malloc
/usr/bin/ld: warning multiple definitions of symbol _regcomp
/usr/local/apache/bin/httpd definition of _regcomp
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libpthread.dylib(regcomp.So)
definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
/usr/local/apache/bin/httpd definition of _regexec
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libpthread.dylib(regexec.So)
definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
/usr/local/apache/bin/httpd definition of _regfree
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libpthread.dylib(regfree.So)
definition of _regfree
/usr/bin/ld: Undefined symbols:
_SQLGetPrivateProfileString
_SQLSetConfigMode
_SQLGetConfigMode
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I don't know what to do. I doesn't want to disable PEAR which will
allow me to disable PCRE in php because I will need PCRE and I don't
know if I will not use a PEAR package during the developement of the
website.

Has someone a workaround for this problem ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux