#34973 [Opn->Asn]: ext/standard/dns.c won't compile

From: Date: Mon, 24 Oct 2005 21:46:50 +0000
Subject: #34973 [Opn->Asn]: ext/standard/dns.c won't compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87001@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#87001) next »