ID: 33607 Updated by: [EMAIL PROTECTED] Reported By: jccann at gmail dot com -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: Solaris 8 PHP Version: 5.0.4 New Comment:
It still isn't a PHP bug if your system is not installed properly. And we are not gonna start checking each and every system specific header file if they exist or not. Previous Comments: ------------------------------------------------------------------------ [2005-07-07 17:25:14] jccann at gmail dot com Description: ------------ Configure determines that my Solaris system is missing an include file, but does not cause the configure script to stop and report the error. There is background on this issue in another bug, which was marked bogus, because I logged it as a 'compile issue'. http://bugs.php.net/bug.php?id=33569 Reproduce code: --------------- # rm config.cache # ./configure --disable-all --disable-cgi # make clean && make Expected result: ---------------- I expected that configure would either stop and report the error (that it logged) or figure out the correct compilation flag. It does neither, so when I try to compile php, I receive the error shown below in actual result. Despite that configure did not report the error, it logged it in the config.log: configure:15613: checking for netdb.h configure:15623: gcc -E -D_POSIX_PTHREAD_SEMANTICS conftest.c >/dev/null 2>conftest.out In file included from /usr/include/netdb.h:98, from configure:15619: /usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <netdb.h> Accoring to the developer who responded to http://bugs.php.net/bug.php?id=33569, this net/if_dl.h is supplied by Solaris and apparently is required for php compilation. The configure script should either 1. enforce this requirement -OR- 2. change the solaris 8 compliation flags to avoid the inclusion of net/if_dl.h Actual result: -------------- ... Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating scripts/php-config creating sapi/cli/php.1 creating main/php_config.h creating main/internal_functions.c creating main/internal_functions_cli.c ... Thank you for using PHP. Step Two # make clean && make make clean && make find . -name \*.lo -o -name \*.o | xargs rm -f find . -name \*.la -o -name \*.a | xargs rm -f find . -name \*.so | xargs rm -f find . -name .libs -a -type d|xargs rm -rf rm -f libphp5.la sapi/cli/php modules/* libs/* gcc -Iregex/ -I/usr/local/php/php-5.0.4/regex/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/regex/regcomp.c -o regex/regcomp.o && echo > regex/regcomp.lo gcc -Iregex/ -I/usr/local/php/php-5.0.4/regex/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/regex/regexec.c -o regex/regexec.o && echo > regex/regexec.lo gcc -Iregex/ -I/usr/local/php/php-5.0.4/regex/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/regex/regerror.c -o regex/regerror.o && echo > regex/regerror.lo gcc -Iregex/ -I/usr/local/php/php-5.0.4/regex/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/regex/regfree.c -o regex/regfree.o && echo > regex/regfree.lo gcc -Iext/standard/ -I/usr/local/php/php-5.0.4/ext/standard/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/ext/standard/array.c -o ext/standard/array.o && echo > ext/standard/array.lo gcc -Iext/standard/ -I/usr/local/php/php-5.0.4/ext/standard/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/ext/standard/base64.c -o ext/standard/base64.o && echo > ext/standard/base64.lo gcc -Iext/standard/ -I/usr/local/php/php-5.0.4/ext/standard/ -DPHP_ATOM_INC -I/usr/local/php/php-5.0.4/include -I/usr/local/php/php-5.0.4/main -I/usr/local/php/php-5.0.4 -I/usr/local/php/php-5.0.4/TSRM -I/usr/local/php/php-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /usr/local/php/php-5.0.4/ext/standard/basic_functions.c -o ext/standard/basic_functions.o && echo > ext/standard/basic_functions.lo In file included from /usr/include/netdb.h:98, from /usr/local/php/php-5.0.4/ext/standard/basic_functions.c:54: /usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory make: *** [ext/standard/basic_functions.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33607&edit=1