From:             andreas at fink dot org
Operating system: MacOS 10.3
PHP version:      4.3.3
PHP Bug Type:     Compile Failure
Bug description:  MacOS 10.3 (Panther) doesnt build php. Fails on resolver stuff

Description:
------------
I'm trying to compile php-4.3.3 the same way I did on many machines before
without any problem.
This time this is a brand new Apple G5 with MacOS 10.3 (Panther). In
comparison to all the other Mac's I've compiled before, this is the first
one which has 10.3 installed fresh and was not upgraded from 10.2.8

This problem doesnt seem to occur on a G5 which was installed with 10.2.8
and then upgraded to 10.3 for some freaky reason.

The 10.3 install runs Xcode and gcc-3.3 compiler



Reproduce code:
---------------
./configure --prefix=/usr --with-mysql=/usr --enable-track-vars
--with-sockets --enable-ftp --with-gd --with-png-dir=/usr
--with-jpeg-dir=/usr --with-zlib-dir=/usr --with-tiff-dir=/usr --with-gd
--with-apxs=/usr/sbin/apxs 
make


Expected result:
----------------
compiles fine.

Actual result:
--------------
/development/php-4.3.3/ext/standard/dns.c: In function `zif_checkdnsrr':
/development/php-4.3.3/ext/standard/dns.c:228: error: `T_MX' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:228: error: (Each undeclared
identifier is reported only once
/development/php-4.3.3/ext/standard/dns.c:228: error: for each function it
appears in.)
/development/php-4.3.3/ext/standard/dns.c:239: error: `T_A' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:240: error: `T_NS' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:242: error: `T_PTR' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:243: error: `T_ANY' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:244: error: `T_SOA' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:245: error: `T_CNAME' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:256: error: `C_IN' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c: In function `zif_getmxrr':
/development/php-4.3.3/ext/standard/dns.c:288: error: `HEADER' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:288: error: `hp' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:317: error: `C_IN' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:317: error: `T_MX' undeclared
(first use in this function)
/development/php-4.3.3/ext/standard/dns.c:324: error: parse error before
')' token




Partial fix is to include "nameser8_compat.h" into ext/standard/dns.c in
the beginning. After that it compiles fine but fails at linking:

ld: Undefined symbols:
_res_9_dn_expand
_res_9_dn_skipname
_res_9_search


-- 
Edit bug report at http://bugs.php.net/?id=25955&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25955&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25955&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25955&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25955&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25955&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25955&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25955&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25955&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25955&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25955&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25955&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25955&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25955&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25955&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25955&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25955&r=float

Reply via email to