php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25994 Won't compile
Submitted: 2003-10-26 13:35 UTC Modified: 2003-10-27 17:16 UTC
From: john at petbrain dot com Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.3.3 OS: Mac OS X 10.3
Private report: No CVE-ID: None
 [2003-10-26 13:35 UTC] john at petbrain dot com
Description:
------------
I downloaded:
Apache 1.3.28
php 4.3.3, 4.2.2, 5.x beta

Apache: 
./configure --prefix=/www --enable-module=so
make;make install

PHP:
./configure --with-apxs=/www/sbin/apxs --with-mysql
make

This is where the module dies. I did the SIMPLIEST 
install that one can do with a DSO module. I tried to 
compile INTO apache, and had the same problem.

I did a ./configure --help | grep "dns" and there seems 
to be NO DNS aspect to turn off. not like I WOULD want 
to do it, but this is the best I can do. 

Help. I have looked on the internet placing the bottom 
code into the google.com search field, and notice that 
OTHER people are having the same problems. 

Temp solution that I've trying to find out if it works, 
is to compile the source on my OTHER laptop running 
10.2.8 and copy the binary try over and run it on my 
10.3 laptop. 

Otherwise I'm in a bit of a jam. There are NO possible 
solutions for this release. :(



- john

Reproduce code:
---------------
gcc  -Iext/standard/ -I/opt/apache/php-4.3.3/ext/standard/ -DPHP_ATOM_INC -I/opt/apache/php-4.3.3/include -I/opt/apache/php-4.3.3/main -I/opt/apache/php-4.3.3 -I/opt/apache/php-4.3.3/Zend -I/opt/apache/php-4.3.3/ext/xml/expat  -no-cpp-precomp -no-cpp-precomp -I/opt/apache/php-4.3.3/TSRM  -g -O2  -c /opt/apache/php-4.3.3/ext/standard/dns.c -o ext/standard/dns.o  && echo > ext/standard/dns.lo
/opt/apache/php-4.3.3/ext/standard/dns.c: In function `zif_checkdnsrr':
/opt/apache/php-4.3.3/ext/standard/dns.c:228: error: `T_MX' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:228: error: (Each undeclared identifier is reported only once
/opt/apache/php-4.3.3/ext/standard/dns.c:228: error: for each function it appears in.)
/opt/apache/php-4.3.3/ext/standard/dns.c:239: error: `T_A' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:240: error: `T_NS' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:242: error: `T_PTR' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:243: error: `T_ANY' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:244: error: `T_SOA' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:245: error: `T_CNAME' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:256: error: `C_IN' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c: In function `zif_getmxrr':
/opt/apache/php-4.3.3/ext/standard/dns.c:288: error: `HEADER' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:288: error: `hp' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:317: error: `C_IN' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:317: error: `T_MX' undeclared (first use in this function)
/opt/apache/php-4.3.3/ext/standard/dns.c:324: error: parse error before ')' token
make: *** [ext/standard/dns.lo] Error 1

Expected result:
----------------
Compile.

Actual result:
--------------
Didn't compile

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-27 17:16 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 05:01:27 2024 UTC