#28652 [Asn->Fbk]: sockets code doesn't compile
ID: 28652
Updated by: sniper@php.net
Reported By: ler at lerctr dot org
-Status: Assigned
+Status: Feedback
Bug Type: Compile Failure
Operating System: UnixWare 7.1.4
PHP Version: 4.3.7
Assigned To: pollita
New Comment:
Is this still a problem in recent PHP versions..?
Was pollita able to reproduce or not?
Previous Comments:
------------------------------------------------------------------------
[2004-06-11 21:32:20] ler at lerctr dot org
I emailed the script(1) and configure output to
pollita at php dot net.
------------------------------------------------------------------------
[2004-06-11 21:21:50] 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-07 11:26:20] ler at lerctr dot org
login info sent to pollita at php.net.
Let me know if I can help more.
LER
------------------------------------------------------------------------
[2004-06-07 06:41:02] 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-06 17:19:12] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28652&edit=1
Thread (10 messages)