#34973 [Opn->Asn]: ext/standard/dns.c won't compile
ID: 34973
Updated by: tony2001@php.net
Reported By: hip at okstate dot edu
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: Solaris 10
PHP Version: 5CVS-2005-10-24 (CVS)
-Assigned To:
+Assigned To: tony2001
New Comment:
I'll take it.
Previous Comments:
------------------------------------------------------------------------
[2005-10-24 23:35:33] 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
#
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34973&edit=1
Thread (3 messages)