php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28652 sockets code doesn't compile
Submitted: 2004-06-06 17:19 UTC Modified: 2005-01-24 05:17 UTC
From: ler at lerctr dot org Assigned: pollita (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.7 OS: UnixWare 7.1.4
Private report: No CVE-ID: None
 [2004-06-06 17:19 UTC] ler at lerctr dot org
Description:
------------
when I added --enable-sockets to my configure flags we get:

/bin/sh /home/ler/SOURCE/php/php-4.3.7/libtool --silent --preserve-dup-deps --mode=compile cc -Xb  -Iext/sockets/ -I/home/ler/SOURCE/php/php-4.3.7/ext/sockets/ -DPHP_ATOM_INC -I/home/ler/SOURCE/php/php-4.3.7/include -I/home/ler/SOURCE/php/php-4.3.7/main -I/home/ler/SOURCE/php/php-4.3.7 -I/home/ler/SOURCE/php/php-4.3.7/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/mysql/include -I/usr/local/pgsql/include/pgsql -I/home/ler/SOURCE/php/php-4.3.7/ext/xml/expat  -I/home/ler/SOURCE/php/php-4.3.7/TSRM  -O -Kpthread  -prefer-pic -c /home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c -o ext/sockets/sockets.lo 
UX:acomp: WARNING: "/home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c", line 353: improper pointer/integer combination: arg #2
UX:acomp: WARNING: "/home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c", line 353: improper pointer/integer combination: arg #3
UX:acomp: WARNING: "/home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c", line 1658: argument #4 incompatible with prototype: add_assoc_string_ex()
UX:acomp: WARNING: "/home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c", line 1717: argument #4 incompatible with prototype: add_assoc_string_ex()
UX:acomp: ERROR: "/home/ler/SOURCE/php/php-4.3.7/ext/sockets/sockets.c", line 1765: left operand must be modifiable lvalue: op "="
gmake: *** [ext/sockets/sockets.lo] Error 1
$ 


I can supply an account for debug if necessary. 




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-07 06:41 UTC] pollita@php.net
I'll take ya up on that offer.

The first two warnings are simple ooopses in the source that are easily fixed.  The other two warnings and the actual error are less obvious.

Certainly they look okay with the other OS header files I have available.

If you want to avoid sending me login credentials an email with /usr/include/netdb.h and /usr/include/bits/socket.h  would be a good start. (netdb is the more crucial of the two)
 [2004-06-07 11:26 UTC] ler at lerctr dot org
login info sent to pollita at php.net. 

Let me know if I can help more. 

LER
 [2004-06-11 21:21 UTC] pollita@php.net
I'm unable to replicate the error on your system.   I even used the ./configure line from your home directory (minus a couple of extension [gd/imap] which the libraries couldn't be found for) and the compile was successful with or without sockets enabled.

Can you provide more detail on how you're ./configuring and compiling it?


 [2004-06-11 21:32 UTC] ler at lerctr dot org
I emailed the script(1) and configure output to 
pollita at php dot net.
 [2004-12-13 01:28 UTC] sniper@php.net
Is this still a problem in recent PHP versions..?
Was pollita able to reproduce or not?

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC