php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11369 the make fails when using --enable-socket
Submitted: 2001-06-08 16:09 UTC Modified: 2001-06-19 09:35 UTC
From: moshe dot luna at openwave dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.5 OS: Sun Solaris 2.6
Private report: No CVE-ID: None
 [2001-06-08 16:09 UTC] moshe dot luna at openwave dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-09 01:12 UTC] sniper@php.net
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-11 08:34 UTC] moshe dot luna at openwave dot com
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-12 00:48 UTC] sniper@php.net
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-13 11:47 UTC] moshe dot luna at openwave dot com
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-13 15:04 UTC] sniper@php.net
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-19 09:35 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 12:01:28 2024 UTC