ID:               25955
 User updated by:  andreas at fink dot org
 Reported By:      andreas at fink dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
-Operating System: MacOS 10.3
+Operating System: MacOS 10.3 (7B85)
-PHP Version:      4.3.3
+PHP Version:      4.3.3, 5-200310221730
 New Comment:

with version php5-200310221730 I got the same:


cc  -Iext/standard/ -I/development/php5-200310221730/ext/standard/
-DPHP_ATOM_INC -I/development/php5-200310221730/include
-I/development/php5-200310221730/main -I/development/php5-200310221730
-I/development/php5-200310221730/Zend -I/usr/include/libxml2
-I/usr/include/mysql  -no-cpp-precomp
-I/development/php5-200310221730/TSRM  -g -O2  -c
/development/php5-200310221730/ext/standard/dns.c -o ext/standard/dns.o
 && echo > ext/standard/dns.lo
/development/php5-200310221730/ext/standard/dns.c: In function
`zif_dns_check_record':
/development/php5-200310221730/ext/standard/dns.c:226: error: `T_MX'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:226: error: (Each
undeclared identifier is reported only once
/development/php5-200310221730/ext/standard/dns.c:226: error: for each
function it appears in.)
/development/php5-200310221730/ext/standard/dns.c:237: error: `T_A'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:238: error: `T_NS'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:240: error: `T_PTR'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:241: error: `T_ANY'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:242: error: `T_SOA'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:243: error: `T_CNAME'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:263: error: `C_IN'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c: In function
`zif_dns_get_mx':
/development/php5-200310221730/ext/standard/dns.c:716: error: `HEADER'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:716: error: `hp'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:745: error: `C_IN'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:745: error: `T_MX'
undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:752: error: parse
error before ')' token
/development/php5-200310221730/ext/standard/dns.c:753: error:
`HFIXEDSZ' undeclared (first use in this function)
/development/php5-200310221730/ext/standard/dns.c:755: error:
`QFIXEDSZ' undeclared (first use in this function)
make: *** [ext/standard/dns.lo] Error 1
patmusic:/development/php5-200310221730 root# 

and if I include "nameser8_compat.h" in dns.c linking fails too:

ld: Undefined symbols:
_res_9_dn_expand
_res_9_dn_skipname
_res_9_search
make: *** [libs/libphp5.bundle] Error 1


Previous Comments:
------------------------------------------------------------------------

[2003-10-22 13:13:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

funny, I think we just had this discusson on the 
mailing lists.  I believe marko or chregu have 
submitted a patch to correct this.  Try a cvs version.

Although I hope they also backported their fix to the 
4.3 tree as well

------------------------------------------------------------------------

[2003-10-22 13:02:01] andreas at fink dot org

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 this bug report at http://bugs.php.net/?id=25955&edit=1

Reply via email to