php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9664 Unable to make , related to bug 8468 i think
Submitted: 2001-03-09 16:24 UTC Modified: 2001-04-10 11:50 UTC
From: yavo at itena dot com dot cy Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.4 OS: Solaris 8
Private report: No CVE-ID: None
 [2001-03-09 16:24 UTC] yavo at itena dot com dot cy
My enviroment
 Solaris 8
 Gnu gcc
 
 compile options ./configure --enable-sockets


This bug occured to some one and he asked me to look in to it. I tried it on another machine same enviroment and got the same problem. A search revealed a similar ( i think ) bug with id 8468 .

This is the dump of the error.


Making all in sockets
gcc  -I. -I/people/yavo/work/php-4.0.4/ext/sockets -I/people/yavo/work/php-4.0.4/main -I/people/yavo/work/php-4.0.4 -I/people/yavo/work/php-4.0.4/Zend -I/people/yavo/work/php-4.0.4/ext/mysql/libmysql -I/people/yavo/work/php-4.0.4/ext/xml/expat/xmltok -I/people/yavo/work/php-4.0.4/ext/xml/expat/xmlparse -I/people/yavo/work/php-4.0.4/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=12 -g -O2  -c sockets.c && touch sockets.lo
sockets.c:118: `php_if___xnet_listen' undeclared here (not in a function)
sockets.c:118: initializer element is not constant
sockets.c:118: (near initialization for `sockets_functions[10].handler')
sockets.c:139: `php_if___xnet_socket' undeclared here (not in a function)
sockets.c:139: initializer element is not constant
sockets.c:139: (near initialization for `sockets_functions[16].handler')
sockets.c:140: `php_if___xnet_connect' undeclared here (not in a function)
sockets.c:140: initializer element is not constant
sockets.c:140: (near initialization for `sockets_functions[17].handler')
sockets.c:142: `php_if___xnet_bind' undeclared here (not in a function)
sockets.c:142: initializer element is not constant
sockets.c:142: (near initialization for `sockets_functions[19].handler')
sockets.c:146: `php_if___xnet_sendto' undeclared here (not in a function)
sockets.c:146: initializer element is not constant
sockets.c:146: (near initialization for `sockets_functions[23].handler')
sockets.c:153: `php_if___xnet_recvmsg' undeclared here (not in a function)
sockets.c:153: initializer element is not constant
sockets.c:153: (near initialization for `sockets_functions[30].handler')
sockets.c:154: `php_if___xnet_sendmsg' undeclared here (not in a function)
sockets.c:154: initializer element is not constant
sockets.c:154: (near initialization for `sockets_functions[31].handler')
sockets.c:157: `php_if___xnet_getsockopt' undeclared here (not in a function)
sockets.c:157: initializer element is not constant
sockets.c:157: (near initialization for `sockets_functions[34].handler')
sockets.c:159: `php_if___xnet_socketpair' undeclared here (not in a function)
sockets.c:159: initializer element is not constant
sockets.c:159: (near initialization for `sockets_functions[36].handler')
*** Error code 1
make: Fatal error: Command failed for target `sockets.lo'
Current working directory /people/yavo/work/php-4.0.4/ext/sockets
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /people/yavo/work/php-4.0.4/ext/sockets
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /people/yavo/work/php-4.0.4/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
[yavo@crayxmp php-4.0.4]$ 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-09 18:46 UTC] sniper@php.net
Please try the latest CVS snapshot from http://snaps.php.net/ as there have been some fixes for this.

--Jani

 [2001-03-09 19:28 UTC] yavo at itena dot com dot cy
Hi Jani,

Prior to submiting this bug I tried two things first I applied the pathch in bug 8468, next I got the latest cvs snapshot as of 5-6 hours before this post and replased all files in the ext/sockets dir with the files from the snapshot. As this is clearly a socket extention problem I didn't replace any other files. Do you thinkit would make any sence to replace any other files.

-- yavo
 [2001-03-09 19:29 UTC] yavo at itena dot com dot cy
Hi Jani,

Prior to submiting this bug I tried two things first I applied the pathch in bug 8468, next I got the latest cvs snapshot as of 5-6 hours before this post and replased all files in the ext/sockets dir with the files from the snapshot. As this is clearly a socket extention problem I didn't replace any other files. Do you thinkit would make any sence to replace any other files.

-- yavo
 [2001-03-09 20:10 UTC] sniper@php.net
Yes, you should try with the whole CVS snapshot and 
not try to replace any files from it in PHP 4.0.4.

--Jani

 [2001-03-09 20:16 UTC] yavo at itena dot com dot cy
Ok I'really hate to be a nag, but just finished compiling the latest cvs snapshot, it's still the same error. I wonder if im missing a library. Which libs does the socket extention use.

BTW Thanks for your so imadiate response.

-- yavo
 [2001-03-09 20:24 UTC] sniper@php.net
You're not missing any libraries..FYI: The sockets extension is still EXPERIMENTAL, ie. it's not very stable yet. 
This is yet another bug in it. Have you tried compiling it with the Solaris Workshop CC ???

--Jani

 [2001-03-09 20:47 UTC] yavo at itena dot com dot cy
Ok I'really hate to be a nag, but just finished compiling the latest cvs snapshot, it's still the same error. I wonder if im missing a library. Which libs does the socket extention use.

BTW Thanks for your so imadiate response.

-- yavo
 [2001-03-09 21:03 UTC] yavo at itena dot com dot cy
No but it's my understanding that this (SOlaris Workishop CC) is a commersial product which you have to buy from solaris. I'm right.

-- yavor
 [2001-04-10 11:49 UTC] jason@php.net
Fixed In CVS: See comment on ( sockets.c,v 1.34 )

-Jason
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Mar 31 22:01:23 2020 UTC