Re: PHP 4.0 Bug #9729 Updated: --enable-sockets problem
| From: | Xuemei Tang | Date: | Wed, 14 Mar 2001 20:46:16 +0000 |
| Subject: | Re: PHP 4.0 Bug #9729 Updated: --enable-sockets problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-48945@lists.php.net to get a copy of this message | ||
Hi,
I have download the latest version of php4(13/3/2001) and follow the last
comment in#8667. I did help me to install the sockets. I browsed the php
settings by using phpinfo(). It shows that "socket support enabled". But
when the php program calls socket() , I got error : "Fatal error: Call to
undefined function: socket()".
Do you know how to solve this problem?
Thanks
---Xuemei
----- Original Message -----
From: "Bug Database" <php-dev@lists.php.net>
To: <xue.mei.tang@openwave.com>
Sent: Tuesday, March 13, 2001 1:29 PM
Subject: PHP 4.0 Bug #9729 Updated: --enable-sockets problem
> ID: 9729
> Updated by: sniper
> Reported By: xue.mei.tang@openwave.com
> Old-Status: Open
> Status: Feedback
> Bug Type: *Install and Config
> Assigned To:
> Comments:
>
> Please get the latest CVS snapshot from http://snaps.php.net/
> and try the
solution mentioned
> in #8667 (last comment)
>
> --Jani
>
>
>
> Previous Comments:
> --------------------------------------------------------------------------
-
>
> [2001-03-13 19:34:28] xue.mei.tang@openwave.com
> I tried to configure the php-4.0.4pl1 with options "--enable-sockets"
under
> Solaris 2.8.
>
> The commands that I typed in are shown next.
>
>
/export/xmtang/php-4.0.4pl1>./configure --prefix="/export/xmtang/php" --with
> -apache=../apache_1.3.14 --enable-sockets
> /export/xmtang/php-4.0.4pl1>make
>
> Then I got some errors.
>
> make[3]: Entering directory `/export/xmtang/php-4.0.4pl1/ext/sockets'
>
gcc -I. -I/export/xmtang/php-4.0.4pl1/ext/sockets -I/export/xmtang/php-4.0.
> 4pl1
>
/main -I/export/xmtang/php-4.0.4pl1 -I/export/xmtang/apache_1.3.14/src/inclu
> de -
>
I/export/xmtang/apache_1.3.14/src/os/unix -I/export/xmtang/php-4.0.4pl1/Zend
> -I/
>
export/xmtang/php-4.0.4pl1/ext/mysql/libmysql -I/export/xmtang/php-4.0.4pl1/
> ext/
>
xml/expat/xmltok -I/export/xmtang/php-4.0.4pl1/ext/xml/expat/xmlparse -I/exp
> ort/
>
xmtang/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g
> -O2
> -c sockets.c && touch sockets.lo
> sockets.c: In function `php_if_recvmsg':
> sockets.c:1728: structure has no member named `msg_control'
> sockets.c:1729: structure has no member named `msg_controllen'
> sockets.c:1731: structure has no member named `msg_control'
> sockets.c:1732: structure has no member named `msg_controllen'
> sockets.c:1735: structure has no member named `msg_flags'
> sockets.c:1741: structure has no member named `msg_control'
> sockets.c:1750: warning: passing arg 3 of `add_assoc_string' makes pointer
> from
> integer without a cast
> sockets.c:1754: structure has no member named `msg_controllen'
> sockets.c:1755: structure has no member named `msg_flags'
> sockets.c:1787: structure has no member named `msg_control'
> sockets.c:1788: structure has no member named `msg_controllen'
> sockets.c:1790: structure has no member named `msg_control'
> sockets.c:1791: structure has no member named `msg_controllen'
> sockets.c:1794: structure has no member named `msg_flags'
> sockets.c:1800: structure has no member named `msg_control'
> sockets.c:1810: warning: passing arg 3 of `add_assoc_string' makes pointer
> from
> integer without a cast
> sockets.c:1812: structure has no member named `msg_controllen'
> sockets.c:1814: structure has no member named `msg_flags'
> make[3]: *** [sockets.lo] Error 1
> make[3]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext'
> make: *** [all-recursive] Error 1
>
>
> --------------------------------------------------------------------------
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=9729&edit=2
>
>