Compile fails dns.c Fails on Mac OS X 10.6 (Snow Leopard)

[email protected] (Keith Vance)
Newsgroups php.install
Message-ID <[email protected]>
I'm having some trouble recompiling PHP 5.3.2 on my fresh install of Mac OS X 10.6 (Snow Leopard).

Here's the partial 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’:

But issue I think occurs when running ./configure. 

Here's my configure script.
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"
export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET
cd php-5.3.2
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=shared \
--with-kerberos=/usr \
--with-zlib=/usr \
--enable-bcmath \
--with-bz2=/usr \
--enable-calendar \
--with-curl=/usr \
--enable-exif \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-mbregex \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/var/mysql/mysql.sock \
--with-iodbc=/usr \
--enable-shmop \
--with-snmp=/usr \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-xmlrpc \
--with-iconv-dir= /usr \
--with-xsl=/usr \
--enable-zend-multibyte \
--enable-zip \
--with-pcre-regex \
--with-pdo-pgsql=/Library/PostgreSQL/8.4 \
--with-png-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local/lib

I'm seeing this error when running compile.
checking build system type... Invalid configuration `/usr': machine `/usr' not recognized

Any thoughts? It appears that either my ./configure command is incorrect or I'm missing a library or something. I haven't installed fink or ports.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.