php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24938 Error due compiling sockets
Submitted: 2003-08-04 13:32 UTC Modified: 2003-08-16 01:45 UTC
From: sonny at sun dot com Assigned: jason (profile)
Status: Closed Package: Sockets related
PHP Version: 5CVS-2003-08-04 (dev) OS: Solaris 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sonny at sun dot com
New email:
PHP Version: OS:

 

 [2003-08-04 13:32 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-04 13:37 UTC] 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-05 10:26 UTC] sniper@php.net
Does this happen with the latest PHP 4 (stable) snapshots?

 [2003-08-05 10:35 UTC] 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-13 16:20 UTC] pollita@php.net
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?


 [2003-08-13 16:38 UTC] pollita@php.net
Nevermind, I found a copy and I think I see the problem.

I'll need to setup a Solaris box to test the solution on though... fortunately I have a fresh copy of Sol9/x86 right here... (Courtessy of the Sun booth at LWCE last week)


 [2003-08-15 15:42 UTC] jason@php.net
I will go ahead and take care of this one.

-Jason
 [2003-08-16 01:45 UTC] jason@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

This should no longer be a problem. Reopen if it still is.

-Jason


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu May 26 05:05:45 2022 UTC