php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7625 Problems using sockets (--enable-sockets)
Submitted: 2000-11-03 10:28 UTC Modified: 2000-12-18 10:39 UTC
From: lourens at InSource dot nl Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Linux Slackware 4.0 / Kernel 2.2
Private report: No CVE-ID: None
 [2000-11-03 10:28 UTC] lourens at InSource dot nl
./configure --enable-sockets
make

sockets.c: In function `php_if_strerror':
sockets.c:927: warning: assignment makes pointer from integer without a cast
sockets.c: In function `php_if_bind':
sockets.c:971: warning: passing arg 2 of `bind' from incompatible pointer type
sockets.c:994: warning: passing arg 2 of `bind' from incompatible pointer type
sockets.c: In function `php_if_sendto':
sockets.c:1471: warning: passing arg 5 of `sendto' from incompatible pointer type
sockets.c:1501: warning: passing arg 5 of `sendto' from incompatible pointer type
dl.c:91: warning: `IS_SLASH' redefined
/usr/src/php-4.0.2/main/php_virtual_cwd.h:54: warning: this is the location of the previous definition
.libs/libphp4.a(sockets.o): In function `php_if_connect':
/usr/src/php-4.0.2/ext/sockets/sockets.c:902: undefined reference to `SUN_LEN'
.libs/libphp4.a(sockets.o): In function `php_if_strerror':
/usr/src/php-4.0.2/ext/sockets/sockets.c:927: undefined reference to `hstrerror'
.libs/libphp4.a(sockets.o): In function `php_if_bind':
/usr/src/php-4.0.2/ext/sockets/sockets.c:971: undefined reference to `SUN_LEN'
.libs/libphp4.a(sockets.o): In function `php_if_sendto':
/usr/src/php-4.0.2/ext/sockets/sockets.c:1469: undefined reference to `SUN_LEN'
.libs/libphp4.a(sockets.o): In function `php_if_sendmsg':
/usr/src/php-4.0.2/ext/sockets/sockets.c:1742: undefined reference to `SUN_LEN'
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-18 10:39 UTC] sniper@php.net
Works for me just fine with latest CVS.
Please try latest snapshot from http://snaps.php.net/
and reopen this bug report if this still happens with
it or PHP 4.0.4.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC