Edit report at https://bugs.php.net/bug.php?id=61290&edit=1
ID: 61290
Comment by: neweracracker at gmail dot com
Reported by: neweracracker at gmail dot com
Summary: php_sockets build failure - unresolved external
symbol _inet_aton
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Windows 7
PHP Version: 5.3SVN-2012-03-05 (snap)
Block user comment: N
Private report: N
New Comment:
Okay,
I fixed it, win32\inet.h (line 6) change to:
#if (_WIN32_WINNT <= 0x0501)
And it will build.
This will work if win32/build/config.w32.h.in (line 9):
#define _WIN32_WINNT 0x0501
Previous Comments:
------------------------------------------------------------------------
[2012-03-05 20:09:09] neweracracker at gmail dot com
It seems this was caused by the changes of bug 54407 that did cause compile
time changes over win32\inet.h
Not sure though, leaving note here for further reference.
------------------------------------------------------------------------
[2012-03-05 16:00:18] neweracracker at gmail dot com
Description:
------------
Creating library J:\php-sdk\php5.3-201203051430\Release_TS\php_sockets.lib
and object J:\php-sdk\php5.3-201203051430\Release_TS\php_sockets.exp
sockets.obj : error LNK2019: unresolved external symbol _inet_aton referenced
in function _php_set_inet_addr
J:\php-sdk\php5.3-201203051430\Release_TS\php_sockets.dll : fatal error
LNK1120: 1 unresolved externals
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61290&edit=1