ID: 11369
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Sorry. I didn't know that the snapshots weren't been
created after the fix I committed.

But this really is fixed in CVS. So please be patient.
We're having lot of trouble with our systems at the moment.

Try checking the snaps.php.net sometimes to see if there
is newer snapshots than Jun 11th.

--Jani


Previous Comments:
---------------------------------------------------------------------------

[2001-06-13 15:04:13] [EMAIL PROTECTED]
This is fixed in CVS!!!
You are obviously NOT trying with the CVS snapshot. Get that latest snapshot and it 
will work.

--Jani


---------------------------------------------------------------------------

[2001-06-13 11:47:51] [EMAIL PROTECTED]
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.




---------------------------------------------------------------------------

[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


---------------------------------------------------------------------------

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11369&edit=2


-- 
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]

Reply via email to