From: Bjorn dot Wiberg at its dot uu dot se Operating system: IBM AIX 5.3 5300-08-01-0819 PHP version: 5.2.12 PHP Bug Type: Compile Failure Bug description: Conflicting HEADER type declarations
Description: ------------ Compilation fails due to both and HAVE_ARPA_NAMESER_COMPAT_H and HAVE_ARPA_NAMESER_H being defined in main/php_config.h, with ext/standard/dns.c pulling in both <arpa/nameser_compat.h> and <arpa/nameser.h>, both declaring the HEADER type. Reproduce code: --------------- bwib...@melody-lp04:~/rpm/BUILD/php-5.2.12$ cat config.nice #! /bin/sh # # Created by configure CC='gcc' \ './configure' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-cli' \ '--enable-dba' \ '--enable-dbase' \ '--enable-debug' \ '--enable-exif' \ '--enable-embedded-mysqli' \ '--enable-flatfile' \ '--enable-ftp' \ '--enable-gd-jis-conv' \ '--enable-gd-native-ttf' \ '--enable-inifile' \ '--enable-mbstring' \ '--enable-shmop' \ '--enable-soap' \ '--enable-sockets' \ '--enable-sqlite-utf8' \ '--enable-sysvmsg' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-zip' \ '--enable-zend-multibyte' \ '--prefix=/apache/php' \ '--with-apxs2=/apache/bin/apxs' \ '--with-bz2' \ '--with-cdb' \ '--with-curl' \ '--with-freetype-dir' \ '--with-gd' \ '--with-gdbm' \ '--with-gettext' \ '--with-jpeg-dir' \ '--with-ldap' \ '--with-libxml-dir=/usr/local' \ '--with-mime-magic' \ '--with-mysql=/usr/local/mysql' \ '--with-openssl=/opt/freeware' \ '--with-png-dir' \ '--with-ttf' \ '--with-xmlrpc' \ '--with-xpm-dir' \ '--with-xsl' \ '--with-zlib' \ '--with-zlib-dir' \ "$@" bwib...@melody-lp04:~/rpm/BUILD/php-5.2.12$ Expected result: ---------------- No compilation failures. Actual result: -------------- gcc -Iext/standard/ -I/home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/ -DPHP_ATOM_INC -I/home/bwiberg/rpm/BUILD/php-5.2.12/include -I/home/bwiberg/rpm/BUILD/php-5.2.12/main -I/home/bwiberg/rpm/BUILD/php-5.2.12 -I/home/bwiberg/rpm/BUILD/php-5.2.12/ext/date/lib -I/usr/local/include/libxml2 -I/opt/freeware/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/home/bwiberg/rpm/BUILD/php-5.2.12/ext/mbstring/oniguruma -I/home/bwiberg/rpm/BUILD/php-5.2.12/ext/mbstring/libmbfl -I/home/bwiberg/rpm/BUILD/php-5.2.12/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include -I/home/bwiberg/rpm/BUILD/php-5.2.12/TSRM -I/home/bwiberg/rpm/BUILD/php-5.2.12/Zend -I/usr/include -g -g -O0 -Wall -c /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c -DPIC -o ext/standard/.libs/dns.o In file included from /usr/include/arpa/nameser.h:645, from /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:62: /usr/include/arpa/onameser_compat.h:265: error: conflicting types for 'HEADER' /usr/include/arpa/nameser_compat.h:244: error: previous declaration of 'HEADER' was here /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c: In function 'php_parserr': /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:471: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:475: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:493: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:522: warning: pointer targets in assignment differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:531: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:560: warning: pointer targets in assignment differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:575: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:599: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:651: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:654: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /home/bwiberg/rpm/BUILD/php-5.2.12/ext/standard/dns.c:657: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness make: *** [ext/standard/dns.lo] Error 1 Bad exit status from /var/opt/freeware/tmp/rpm-tmp.6825 (%build) bwib...@melody-lp04:~/rpm/SPECS$ -- Edit bug report at http://bugs.php.net/?id=50508&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50508&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50508&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50508&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50508&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50508&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50508&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50508&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50508&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50508&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50508&r=support Expected behavior: http://bugs.php.net/fix.php?id=50508&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50508&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50508&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50508&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50508&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50508&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50508&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50508&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50508&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50508&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50508&r=mysqlcfg