#31936 [Opn->Fbk]: set_h_errno() is redefined incompatibly
| From: | sniper@php.net | Date: | Sat, 12 Feb 2005 02:22:09 +0000 |
| Subject: | #31936 [Opn->Fbk]: set_h_errno() is redefined incompatibly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73917@lists.php.net to get a copy of this message | ||
ID: 31936
Updated by: sniper@php.net
Reported By: ler at lerctr dot org
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: UnixWare
PHP Version: 4.3.10
New Comment:
Try this patch:
http://www.php.net/~jani/patches/bug31936.patch
Previous Comments:
------------------------------------------------------------------------
[2005-02-11 18:10:24] ler at lerctr dot org
/bin/sh /home/ler/SOURCE/php/php4-STABLE-200502111530/libtool --silent
--preserve-dup-deps --mode=compile cc -Iext/sockets/
-I/home/ler/SOURCE/php/php4-STABLE-200502111530/ext/sockets/
-DPHP_ATOM_INC -I/home/ler/SOURCE/php/php4-STABLE-200502111530/include
-I/home/ler/SOURCE/php/php4-STABLE-200502111530/main
-I/home/ler/SOURCE/php/php4-STABLE-200502111530
-I/home/ler/SOURCE/php/php4-STABLE-200502111530/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/php4-STABLE-200502111530/ext/xml/expat
-I/home/ler/SOURCE/php/php4-STABLE-200502111530/TSRM -O -Kpthread -c
/home/ler/SOURCE/php/php4-STABLE-200502111530/ext/sockets/sockets.c -o
ext/sockets/sockets.lo
UX:acomp: WARNING:
"/home/ler/SOURCE/php/php4-STABLE-200502111530/ext/sockets/sockets.c",
line 1658: argument #4 incompatible with prototype:
add_assoc_string_ex()
UX:acomp: WARNING:
"/home/ler/SOURCE/php/php4-STABLE-200502111530/ext/sockets/sockets.c",
line 1717: argument #4 incompatible with prototype:
add_assoc_string_ex()
UX:acomp: ERROR:
"/home/ler/SOURCE/php/php4-STABLE-200502111530/ext/sockets/sockets.c",
line 1765: left operand must be modifiable lvalue: op "="
gmake: *** [ext/sockets/sockets.lo] Error 1
[1] + Done(2) gmake >gmake.out 2>&1 &
$
still dies.
------------------------------------------------------------------------
[2005-02-11 18:02:12] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-02-11 17:35:26] ler at lerctr dot org
Description:
------------
in ext/sockets/sockets.c you (re)define set_h_errno in such a way that
the UnixWare definition is overridden, and generates a compile error
about assignments.
the definition in <netdb.h> works, yours doesn't.
Reproduce code:
---------------
standard 4.3.10 sources.
Expected result:
----------------
compile/link.
Actual result:
--------------
assignment must be modifiable lvalue on line 1765.
I can provide an account.
Also, Zend/zend_strtod.c doesn't compile because it doesn't find the
right IEEE_* define for this compiler.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31936&edit=1