php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34973 ext/standard/dns.c won't compile
Submitted: 2005-10-24 23:35 UTC Modified: 2005-10-25 16:57 UTC
From: hip at okstate dot edu Assigned: tony2001 (profile)
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2005-10-24 (CVS) OS: Solaris 10
Private report: No CVE-ID: None
 [2005-10-24 23:35 UTC] hip at okstate dot edu
Description:
------------
ext/standard/dns.c won't comiple on Solaris 10 which does not have IPv6 support installed. The problem is in the for loop in  function _php_dns_free_res at line 369. Specifically resolv.h has __res_state_ext define as

struct __res_state_ext;

Which causes "structure has no member" error. Workaround is to comment out the for loop in _php_dns_free_res.

Sorry I don't have a spare machine to install Solaris 10 with IPv6 on and report the results. 

Actual result:
--------------
/usr/local/src/php5-200510241430/ext/standard/dns.c: In function `_php_dns_free_
res':
/usr/local/src/php5-200510241430/ext/standard/dns.c:372: error: structure has no
 member named `nsaddrs'
/usr/local/src/php5-200510241430/ext/standard/dns.c:373: error: structure has no
 member named `nsaddrs'
/usr/local/src/php5-200510241430/ext/standard/dns.c:374: error: structure has no
 member named `nsaddrs'
make: *** [ext/standard/dns.lo] Error 1
#


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-24 23:46 UTC] tony2001@php.net
I'll take it.
 [2005-10-25 16:57 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 18:01:35 2024 UTC