Compile fails on OSX 10.3

php.internals

nucleuz

23 years ago
Hi! I'm running OSX 10.3 ( Panther ) and the snaps fails to compile. I got the Panther seed at the WWDC earlier this year, and there are newer seeds out, but I don't have that yet so I don't know if it will compile on that one. ( My C skills are rather limited, but here is what I have trying to find out what happened ) Initially 'make' created the following output: /php/php.net/php5-200308061330/ext/standard/dns.c: In function `zif_dns_check_record': /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: `T_MX' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: (Each undeclared identifier is reported only once /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: for each function it appears in.) /php/php.net/php5-200308061330/ext/standard/dns.c:238: error: `T_A' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:239: error: `T_NS' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:241: error: `T_PTR' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:242: error: `T_ANY' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:243: error: `T_SOA' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:244: error: `T_CNAME' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:264: error: `C_IN' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c: In function `zif_dns_get_mx': /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: `HEADER' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: `hp' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `C_IN' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `T_MX' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:753: error: parse error before ')' token /php/php.net/php5-200308061330/ext/standard/dns.c:754: error: `HFIXEDSZ' undeclared (first use in this function) /php/php.net/php5-200308061330/ext/standard/dns.c:756: error: `QFIXEDSZ' undeclared (first use in this function) I then did a grep for T_MX and found this in 'nameser8_comap.h' When doing #include <nameser8_compat.h> in ext/standard/dns.c the above error goes away, but now I get: ld: Undefined symbols: _res_9_dn_expand _res_9_dn_skipname _res_9_search _php_ob_gzhandler_check doing a grep for one of those gives me: [nucleuz:/php/php.net/php5-200308061330] nucleuz% grep -d recurse _res_9_dn_expand ext/ Binary file ext/standard/dns.o matches I don't know how to fix this last error, so does anyone have an idea on what I can do to make it compile? ------------------------- --- Håvard Eide --- www.eide.org www.phpvolcano.com

Dan Kalowsky

23 years ago
You're doing something wrong then, as it has worked for others. A configure line would help to debug this. On Tuesday, August 19, 2003, at 10:38 AM, nucleuz wrote:
> Hi! > I'm running OSX 10.3 ( Panther ) and the snaps fails to compile. > I got the Panther seed at the WWDC earlier this year, and there are > newer seeds out, but I don't have that > yet so I don't know if it will compile on that one. > > ( My C skills are rather limited, but here is what I have trying to > find out what happened ) > > Initially 'make' created the following output: > /php/php.net/php5-200308061330/ext/standard/dns.c: In function > `zif_dns_check_record': > /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: `T_MX' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: (Each > undeclared identifier is reported only once > /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: for each > function it appears in.) > /php/php.net/php5-200308061330/ext/standard/dns.c:238: error: `T_A' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:239: error: `T_NS' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:241: error: `T_PTR' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:242: error: `T_ANY' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:243: error: `T_SOA' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:244: error: > `T_CNAME' undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:264: error: `C_IN' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c: In function > `zif_dns_get_mx': > /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: `HEADER' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: `hp' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `C_IN' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `T_MX' > undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:753: error: parse > error before ')' token > /php/php.net/php5-200308061330/ext/standard/dns.c:754: error: > `HFIXEDSZ' undeclared (first use in this function) > /php/php.net/php5-200308061330/ext/standard/dns.c:756: error: > `QFIXEDSZ' undeclared (first use in this function) > > I then did a grep for T_MX and found this in 'nameser8_comap.h' > When doing > #include <nameser8_compat.h> > in ext/standard/dns.c > the above error goes away, but now I get: > > ld: Undefined symbols: > _res_9_dn_expand > _res_9_dn_skipname > _res_9_search > _php_ob_gzhandler_check > > doing a grep for one of those gives me: > [nucleuz:/php/php.net/php5-200308061330] nucleuz% grep -d recurse > _res_9_dn_expand ext/ > Binary file ext/standard/dns.o matches > > I don't know how to fix this last error, so does anyone have an idea > on what I can do to make it compile? > > ------------------------- > --- Håvard Eide --- > www.eide.org > www.phpvolcano.com > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > >---------------------------------------------------------------<
Dan Kalowsky "The future is always uncertain, http://www.deadmime.org/~dank and the end is always near." dank-nom@aps-deadmime.org - "Roadhouse Blues", kalowsky@php.net The Doors

nucleuz

23 years ago
My configure that worked on OSX 10.2.5 was: ./configure \ --with-apxs \ --with-dom=/sw \ --with-xsl=/sw \ --with-simplexml \ --with-zlib-dir=/sw \ --with-mysql=/usr/local/mysql Anyone with a OSX10.3 seed that has this working?
> You're doing something wrong then, as it has worked for others. A > configure line would help to debug this. > > > > On Tuesday, August 19, 2003, at 10:38 AM, nucleuz wrote: > >> Hi! >> I'm running OSX 10.3 ( Panther ) and the snaps fails to compile. >> I got the Panther seed at the WWDC earlier this year, and there are >> newer seeds out, but I don't have that >> yet so I don't know if it will compile on that one. >> >> ( My C skills are rather limited, but here is what I have trying to >> find out what happened ) >> >> Initially 'make' created the following output: >> /php/php.net/php5-200308061330/ext/standard/dns.c: In function >> `zif_dns_check_record': >> /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: `T_MX' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: (Each >> undeclared identifier is reported only once >> /php/php.net/php5-200308061330/ext/standard/dns.c:227: error: for >> each function it appears in.) >> /php/php.net/php5-200308061330/ext/standard/dns.c:238: error: `T_A' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:239: error: `T_NS' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:241: error: `T_PTR' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:242: error: `T_ANY' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:243: error: `T_SOA' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:244: error: >> `T_CNAME' undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:264: error: `C_IN' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c: In function >> `zif_dns_get_mx': >> /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: >> `HEADER' undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:717: error: `hp' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `C_IN' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:746: error: `T_MX' >> undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:753: error: parse >> error before ')' token >> /php/php.net/php5-200308061330/ext/standard/dns.c:754: error: >> `HFIXEDSZ' undeclared (first use in this function) >> /php/php.net/php5-200308061330/ext/standard/dns.c:756: error: >> `QFIXEDSZ' undeclared (first use in this function) >> >> I then did a grep for T_MX and found this in 'nameser8_comap.h' >> When doing >> #include <nameser8_compat.h> >> in ext/standard/dns.c >> the above error goes away, but now I get: >> >> ld: Undefined symbols: >> _res_9_dn_expand >> _res_9_dn_skipname >> _res_9_search >> _php_ob_gzhandler_check >> >> doing a grep for one of those gives me: >> [nucleuz:/php/php.net/php5-200308061330] nucleuz% grep -d recurse >> _res_9_dn_expand ext/ >> Binary file ext/standard/dns.o matches >> >> I don't know how to fix this last error, so does anyone have an idea >> on what I can do to make it compile? >> >> ------------------------- >> --- Håvard Eide --- >> www.eide.org >> www.phpvolcano.com >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > >---------------------------------------------------------------< > Dan Kalowsky "The future is always uncertain, > http://www.deadmime.org/~dank and the end is always near." > dank-nom@aps-deadmime.org - "Roadhouse Blues", > kalowsky@php.net The Doors > > >
------------------------- --- Håvard Eide --- www.eide.org www.phpvolcano.com

Melvyn Sopacua

23 years ago
Hi, firstly: 10.3 is still beta, AFAIK. So, they might wise up. On Tuesday 19 August 2003 16:38, nucleuz wrote:
> I then did a grep for T_MX and found this in 'nameser8_comap.h' > When doing > #include <nameser8_compat.h>
Apparently OSX has imported Bind9 into the main source and decided to do their own thing. The official bind9 sourcetree contains: find . -name "*.h" -print | xargs /usr/local/bin/pcregrep '#define\s+T_MX' ./lib/bind/include/arpa/nameser_compat.h:#define T_MX ns_t_mx find . -name "*.h" -print | xargs /usr/local/bin/pcregrep '#include\s+.arpa/nameser_compat.h' ./lib/bind/include/arpa/nameser.h:#include <arpa/nameser_compat.h> ext/standard/dns.c includes arpa/nameser.h if HAVE_ARPA_NAMESER_H is defined. Can you check config.h for this? (By the way: the win32 version tests for HAVE_ARPA_NAMESERV <-- the 'v' here - is that a typo?)
-- Melvyn

Jani Taskinen

23 years ago
On Sat, 23 Aug 2003, Melvyn Sopacua wrote:
>ext/standard/dns.c includes arpa/nameser.h if HAVE_ARPA_NAMESER_H is defined. >Can you check config.h for this? > >(By the way: the win32 version tests for HAVE_ARPA_NAMESERV <-- the 'v' here - >is that a typo?)
-----------8<-------------:dns.c #if HAVE_ARPA_NAMESERV_H #include "arpa/nameser.h" #endif ----------->8-------------:dns.c Yes, I would guess it's a typo. :) --Jani