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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC