Building PHP fails - "incompatible implicit declaration of built-in function 'exit'" warning

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



Hello again all,

I'm receiving the following error message after running ./configure on a system running OS X (Leopard 10.5.2) with the recent updates that moved the PHP version to 5.2.5.  I'm attempting to recompile PHP so I can use the GD library among others.

Thanks for any help in advance.

-ilija

==========================================================
CONFIGURE:   './configure'  '--prefix=/usr/local/php5' '--with-apxs2=/usr/sbin/apxs' '--with-xsl=/usr' '--with-tidy' '--enable-mbstring' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/X11R6' '--with-zlib-dir=/usr' '--enable-sockets' '--enable-exif' '--with-mcrypt=/usr/local/lib' '--enable-soap' '--with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--with-mysql-sock=/tmp/mysql.sock' '--with-freetype-dir=/usr/local/lib' '--without-iconv' '--enable-cli'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -no-cpp-precomp
CXX:       
CXXFLAGS:  
INCLUDES:    -I/usr/include/libxml2 -I/SourceCache/php-5.2.5/ext/date/lib -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/SourceCache/php-5.2.5/ext/mbstring/oniguruma -I/SourceCache/php-5.2.5/ext/mbstring/libmbfl -I/SourceCache/php-5.2.5/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include
LDFLAGS:     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS:       -lmysqlclient -lmcrypt -lltdl -lfreetype -lpng -lz -ljpeg -lz -lm  -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lmysqlclient -lz -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm
DLIBS:     
SAPI:       apache2handler
PHP_RPATHS:  /usr/local/lib /usr/X11R6/lib /usr/local/mysql/lib
uname -a:   Darwin IlijaMBP.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386

gcc -o conftest -g -O2  -no-cpp-precomp  -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -lmysqlclient -lmcrypt -lltdl -lfreetype -lpng -lz -ljpeg -lz -lm  -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lmysqlclient -lz -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
  Referenced from: /SourceCache/php-5.2.5/./conftest
  Reason: image not found
./configure: line 91489:  5335 Trace/BPT trap          ./conftest

==========================================================
[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux