#24938 [Asn->Fbk]: Error due compiling sockets
ID: 24938
Updated by: pollita@php.net
Reported By: sonny at sun dot com
-Status: Assigned
+Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 9
PHP Version: 5CVS-2003-08-04 (dev)
Assigned To: pollita
New Comment:
Can I ask for a copy of your sys/socket.h file? (It should be in
/include or /usr/include or one of the other usual suspects). Post it
in a web accessable location if possible, otherwise you can email it to
my address.
Accoring to Sun ( http://docs.sun.com/db/doc/816-0218/6m6nirqnr?a=view
) Solaris 9's msghdr struct is indeed supposed to contain those
members.
Hopefully, a look at your header file will give a hint as to why it's
failing on your system.
Also, are you running Sol9/sparc or Sol9/x86?
Previous Comments:
------------------------------------------------------------------------
[2003-08-12 19:35:19] sniper@php.net
Assigned to the responsible party. :)
------------------------------------------------------------------------
[2003-08-05 10:35:52] sonny at sun dot com
I don't know.
The last one what I have used and compiled was 4.3.2. with Sun CC.
------------------------------------------------------------------------
[2003-08-05 10:26:27] sniper@php.net
Does this happen with the latest PHP 4 (stable) snapshots?
------------------------------------------------------------------------
[2003-08-04 13:37:52] sonny at sun dot com
Just tried with:
configure:
env CC=cc CXX=CC CFLAGS="-O" ./configure --with-tsrm-pthreads
--enable-zend-multibyte --enable-memory-limit .......
Compiler:
cc: Sun C 5.5 Patch 112760-01 2003/05/18
------------------------------------------------------------------------
[2003-08-04 13:32:24] sonny at sun dot com
Description:
------------
Compiling Error with --enable-sockets
/tmp/php5-200308041730/ext/sockets/sockets.c: In function
`zif_socket_recvmsg':
/tmp/php5-200308041730/ext/sockets/sockets.c:1783: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1784: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1793: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1801: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1812: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1841: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1842: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1851: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1859: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1870: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1894: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1895: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1897: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1898: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1909: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1918: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1927: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
make: *** [ext/sockets/sockets.lo] Error 1
Reproduce code:
---------------
CONFIGURE:
./configure --prefix=/tmp/PHP --enable-memory-limit --enable-yp
--enable-wddx --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--enable-sockets --enable-pcntl --enable-cli --enable-ftp
--enable-dbase --enable-dbx --enable-dio --enable-bcmath
--enable-calendar
GCC:
gcc version 3.2
make:
GNU Make version 3.79.1
Expected result:
----------------
Working sockets
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24938&edit=1
Thread (10 messages)