Edit report at http://bugs.php.net/bug.php?id=51706&edit=1
ID: 51706 Updated by: ras...@php.net Reported by: keith at take88 dot com Summary: Make fails dns.c:305: error: expected specifier-qualifier-list before âHEADER' Status: Open Type: Bug Package: Compile Failure Operating System: Mac OS X 10.6.3 PHP Version: 5.3.2 New Comment: Works fine for me on Leopard here as well. Both 5.3.2 and SVN. Previous Comments: ------------------------------------------------------------------------ [2010-05-04 15:47:14] keith at take88 dot com I'm trying to build PHP from source using a fresh install of Snow Leopard. No fink. No Macports. When I try an SVN install I get other problems. ------------------------------------------------------------------------ [2010-05-04 11:14:45] david dot zuelke at bitextender dot com Can't reproduce here... building from fresh SVN checkout of PHP_5_3 on a new install of Mac OS X 10.6.3. Both with ./configure --disable-all and MACOSX_DEPLOYMENT_TARGET=10.6.3 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp- precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="- arch x86_64 -bind_at_load -L/usr/local/lib/ -liconv" ./configure --disable-all it builds just fine, make test shows nothing unusual (http://pastie.org/944860), gethostbyname() etc work. Maybe it's some sort of library conflict on your system? Or your checkout is borked? Undeclared identifiers sound fishy; T_MX etc are defined outside of PHP. ------------------------------------------------------------------------ [2010-05-01 22:41:36] scott...@php.net Jani made the last changes to these :) ------------------------------------------------------------------------ [2010-05-01 22:36:40] ka...@php.net Scott, I remember you fixed some portability issues for the DNS functions, namely on MAC could you look into this? ------------------------------------------------------------------------ [2010-04-30 15:47:53] keith at take88 dot com Description: ------------ Here's the error when running 'make' /Users/keith/php/php-5.3.2/ext/standard/dns.c:305: error: expected specifier-qualifier-list before âHEADERâ /Users/keith/php/php-5.3.2/ext/standard/dns.c: In function âzif_dns_check_recordâ: /Users/keith/php/php-5.3.2/ext/standard/dns.c:340: error: âT_MXâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:340: error: (Each undeclared identifier is reported only once /Users/keith/php/php-5.3.2/ext/standard/dns.c:340: error: for each function it appears in.) /Users/keith/php/php-5.3.2/ext/standard/dns.c:360: error: âT_Aâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:393: error: âC_INâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c: In function âphp_parserrâ: /Users/keith/php/php-5.3.2/ext/standard/dns.c:418: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:418: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:428: error: âT_ANYâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:468: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:468: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:513: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:513: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:519: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:519: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:636: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:636: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:652: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:652: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:674: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:674: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c: In function âzif_dns_get_recordâ: /Users/keith/php/php-5.3.2/ext/standard/dns.c:710: error: âHEADERâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:710: error: âhpâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:810: error: âC_INâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:810: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:817: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:818: error: âquerybufâ has no member named âqb2â /Users/keith/php/php-5.3.2/ext/standard/dns.c:819: error: expected expression before â)â token /Users/keith/php/php-5.3.2/ext/standard/dns.c: In function âzif_dns_get_mxâ: /Users/keith/php/php-5.3.2/ext/standard/dns.c:889: error: âHEADERâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:889: error: âhpâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:927: error: âC_INâ undeclared (first use in this function) /Users/keith/php/php-5.3.2/ext/standard/dns.c:934: error: expected expression before â)â token make: *** [ext/standard/dns.lo] Error 1 Test script: --------------- Here's my configure commands ... http://66.180.173.53/install-sh Expected result: ---------------- I expect PHP 5.3.2 to compile. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51706&edit=1