#34973 [NEW]: ext/standard/dns.c won't compile
From: hip at okstate dot edu
Operating system: Solaris 10
PHP version: 5CVS-2005-10-24 (CVS)
PHP Bug Type: Compile Failure
Bug description: ext/standard/dns.c won't compile
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 bug report at http://bugs.php.net/?id=34973&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34973&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34973&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34973&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34973&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34973&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34973&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34973&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34973&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34973&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34973&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34973&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34973&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34973&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34973&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34973&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34973&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34973&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34973&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34973&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34973&r=mysqlcfg
Thread (3 messages)
- hip at okstate dot edu