You are here: PHP 5.0.4 compilation under Mac « PHP « IT news, forums, messages
PHP 5.0.4 compilation under Mac

Posted by Nicolas Diez on 06/27/05 16:38

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 ?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация