Mac 10.3 php 5, make fails: conflicting types for socklen_t
| From: | Michael Collins | Date: | Thu, 08 Jul 2004 14:46:44 +0000 |
| Subject: | Mac 10.3 php 5, make fails: conflicting types for socklen_t | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13821@lists.php.net to get a copy of this message | ||
Mac OS X 10.3 with XCode tools (gcc 3.3)
PHP 5 RC 3
My configure:
./configure --with-apxs \
--with-openssl=/usr \
--with-zlib=/usr \
--with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local \
--enable-ftp \
--with-pear \
--enable-calendar \
--with-sqlite
configure completes without error.
make gives this error:
g5:~/download/in/php-5.0.0RC3 mcollins$ make
gcc -Iext/libxml/ -I/Users/mcollins/download/in/php-5.0.0RC3/ext/libxml/ -DPHP_ATOM_INC -I/Users/mcollins/download/in/php-5.0.0RC3/include -I/Users/mcollins/download/in/php-5.0.0RC3/main -I/Users/mcollins/download/in/php-5.0.0RC3 -I/Users/mcollins/download/in/php-5.0.0RC3/Zend -I/usr/include/libxml2 -I/usr/local/mysql/include -I/usr/local/pgsql/include -no-cpp-precomp -I/Users/mcollins/download/in/php-5.0.0RC3/TSRM -g -O2 -c /Users/mcollins/download/in/php-5.0.0RC3/ext/libxml/libxml.c -o ext/libxml/libxml.o && echo > ext/libxml/libxml.lo
In file included from /Users/mcollins/download/in/php-5.0.0RC3/main/streams/php_stream_transport.h:22,
from /Users/mcollins/download/in/php-5.0.0RC3/main/php_streams.h:431,
from /Users/mcollins/download/in/php-5.0.0RC3/main/php.h:407,
from /Users/mcollins/download/in/php-5.0.0RC3/ext/libxml/libxml.c:28:
/usr/include/sys/socket.h:79: error: conflicting types for `socklen_t'
/Users/mcollins/download/in/php-5.0.0RC3/main/php.h:153: error: previous declaration of `socklen_t'
make: *** [ext/libxml/libxml.lo] Error 1
--
Michael
__
||| Michael Collins
||| Kuwago Inc
||| Singapore and Seattle USA