php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25955 MacOS 10.3 (Panther) doesnt build php. Fails on resolver stuff
Submitted: 2003-10-22 13:02 UTC Modified: 2003-10-24 13:50 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: andreas at fink dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.3, 5-200310221730 OS: MacOS 10.3 (7B85)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andreas at fink dot org
New email:
PHP Version: OS:

 

 [2003-10-22 13:02 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-22 15:33 UTC] andreas at fink dot org
apparently, the trick which is needed is to put

#define BIND_8_COMPAT   1

in ext/standard/dns.c

This will call the bind8 code instead of the non existing bind9 code. Now compilation seems to work but I get ld: /usr/lib/libjpeg.a(jcapimin.o) has local relocation entries in non-writable section (__TEXT,__symbol_stub1)
 but this is probably not a problem of PHP but of libjpeg I just compiled in.
 [2003-10-24 13:50 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC