Bug #61290 [Fbk->Csd]: php_sockets build failure - unresolved external symbol _inet_aton
| From: | neweracracker at gmail dot com | Date: | Mon, 05 Mar 2012 22:55:54 +0000 |
| Subject: | Bug #61290 [Fbk->Csd]: php_sockets build failure - unresolved external symbol _inet_aton | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168180@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61290&edit=1
ID: 61290
User updated by: neweracracker at gmail dot com
Reported by: neweracracker at gmail dot com
Summary: php_sockets build failure - unresolved external
symbol _inet_aton
-Status: Feedback
+Status: Closed
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:
That did the trick.
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2012-03-05 20:55:00] pajoye@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Using revision 323926 or later
------------------------------------------------------------------------
[2012-03-05 20:53:32] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=323926
Log: - fix bug #61290, fix build
------------------------------------------------------------------------
[2012-03-05 20:37:57] neweracracker at gmail dot com
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
------------------------------------------------------------------------
[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