ID: 11369 User Update by: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: Compile Failure Operating system: Sun Solaris 2.6 PHP Version: 4.0.5 Description: the make fails when using --enable-socket I have downloaded the CVS version you had specified...and still no luck....the make fails again with the exact same error. I am trying to create a cgi executable, I run the following: 1. ./configure --enable-sockets 2. make In the configure.log there are a few failures that involve conftest.c like the following: ------------------------------------------------------------ configure:4329: gcc -c -g -O2 -D_POSIX_PTHREAD_SEMANTICS conftest.c 1>&5 configure: In function `main': configure:4326: `localtime_r' undeclared (first use in this function) configure:4326: (Each undeclared identifier is reported only once configure:4326: for each function it appears in.) configure: failed program was: #line 4322 "configure" #include "confdefs.h" #include <time.h> int main() { struct tm *(*func)() = localtime_r ; return 0; } ------------------------------------------------------------ The make returns the following ERROR: /bin/sh /tmp/php/php-4.0.5/libtool --silent --mode=link gcc -I. -I/tmp/php/php-4.0.5/ -I/tmp/php/php-4.0.5/main -I/tmp/php/php-4.0.5 -I/tmp/php/php-4.0.5/Zend -I/tmp/php/php-4.0.5/ext/mysql/libmysql -I/tmp/php/php-4.0.5/ext/xml/expat/xmltok -I/tmp/php/php-4.0.5/ext/xml/expat/xmlparse -I/tmp/php/php-4.0.5/TSRM -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -o php -export-dynamic stub.lo libphp4.la Undefined first referenced symbol in file hstrerror .libs/libphp4.a(sockets.o) ld: fatal: Symbol referencing errors. No output written to php collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `php' Current working directory /tmp/php/php-4.0.5 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' ------------------------------------------------------------ Without --enable-sockets everything works perfectly. Previous Comments: --------------------------------------------------------------------------- [2001-06-12 00:48:25] [EMAIL PROTECTED] This should be fixed in CVS now. Try a snapshot from here: http://snaps.php.net/ Make sure that the time the snapshot is created is not older than 19:36. Otherwise the fix won't be in it. Note also, that in the latest CVS (not the 4.0.6 branch), the function names have been changed for socket extension. --Jani --------------------------------------------------------------------------- [2001-06-11 08:34:10] [EMAIL PROTECTED] I have used the newest version 4.0.6 CVS and still ger the same error. Wonder if my gcc works fine. Is there any limitation about the gcc version? Making all in mysql Making all in libmysql Making all in pcre Making all in pcrelib Making all in posix Making all in session Making all in sockets Making all in standard Making all in xml Making all in expat Making all in xmltok Making all in xmlparse Making all in sapi Making all in cgi Making all in TSRM Making all in regex Making all in . /bin/sh /tmp/php/php-4.0.6RC3/libtool --silent --mode=link gcc -I. -I/tmp/php/php-4.0.6RC3/ -I/tmp/php/php-4.0.6RC3/main -I/tmp/php/php-4.0.6RC3 -I/tmp/php/php-4.0.6RC3/Zend -I/tmp/php/php-4.0.6RC3/ext/mysql/libmysql -I/tmp/php/php-4.0.6RC3/ext/xml/expat/xmltok -I/tmp/php/php-4.0.6RC3/ext/xml/expat/xmlparse -I/tmp/php/php-4.0.6RC3/TSRM -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -o libphp4.la -rpath /tmp/php/php-4.0.6RC3/libs -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 -R /usr/ucblib -R /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 stub.lo Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/sockets/libsockets.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc /bin/sh /tmp/php/php-4.0.6RC3/libtool --silent --mode=link gcc -I. -I/tmp/php/php-4.0.6RC3/ -I/tmp/php/php-4.0.6RC3/main -I/tmp/php/php-4.0.6RC3 -I/tmp/php/php-4.0.6RC3/Zend -I/tmp/php/php-4.0.6RC3/ext/mysql/libmysql -I/tmp/php/php-4.0.6RC3/ext/xml/expat/xmltok -I/tmp/php/php-4.0.6RC3/ext/xml/expat/xmlparse -I/tmp/php/php-4.0.6RC3/TSRM -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -o php -export-dynamic stub.lo libphp4.la Undefined first referenced symbol in file hstrerror .libs/libphp4.a(sockets.o) ld: fatal: Symbol referencing errors. No output written to php *** Error code 1 make: Fatal error: Command failed for target `php' Current working directory /tmp/php/php-4.0.6RC3 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' bash-2.03# --------------------------------------------------------------------------- [2001-06-09 01:12:36] [EMAIL PROTECTED] This should be fixed in CVS. Please try latest release candidate for 4.0.6 here: http://www.php.net/~andi/php-4.0.6RC3.tar.gz --Jani --------------------------------------------------------------------------- [2001-06-08 16:09:14] [EMAIL PROTECTED] That's the output I get. Even when I try the latest CVS version 200106008... (The same happens with version 4.0.4pl) gcc -I. -I/tmp/php/php-4.0.5/ -I/tmp/php/php-4.0.5/main -I/tmp/php/php-4.0. 5 -I/tmp/php/php-4.0.5/Zend -I/tmp/php/php-4.0.5/ext/mysql/libmysql -I/usr/u p/oracle/rdbms/demo -I/usr/up/oracle/network/public -I/usr/up/oracle/plsql/p ublic -I/tmp/php/php-4.0.5/ext/xml/expat/xmltok -I/tmp/php/php-4.0.5/ext/xml /expat/xmlparse -I/tmp/php/php-4.0.5/TSRM -D_POSIX_PTHREAD_SEMANTICS -DSUPP ORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -o php -export-dynamic stub.lo libphp4.la Undefined first referenced symbol in file hstrerror .libs/libphp4.a(sockets.o) ld: fatal: Symbol referencing errors. No output written to php *** Error code 1 make: Fatal error: Command failed for target `php' Current working directory /tmp/php/php-4.0.5 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Thanks M Luna --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=11369 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]