php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61290 php_sockets build failure - unresolved external symbol _inet_aton
Submitted: 2012-03-05 16:00 UTC Modified: 2012-03-05 22:55 UTC
From: neweracracker at gmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.3SVN-2012-03-05 (snap) OS: Windows 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neweracracker at gmail dot com
New email:
PHP Version: OS:

 

 [2012-03-05 16:00 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-05 20:09 UTC] 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 20:37 UTC] 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:53 UTC] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=323926
Log: - fix bug #61290, fix build
 [2012-03-05 20:55 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2012-03-05 20:55 UTC] 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 22:55 UTC] neweracracker at gmail dot com
That did the trick.
Thank you.
 [2012-03-05 22:55 UTC] neweracracker at gmail dot com
-Status: Feedback +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 14:01:30 2025 UTC