|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33607 configure detects error but does not fail
Submitted: 2005-07-07 17:25 UTC Modified: 2005-07-07 18:44 UTC
From: jccann at gmail dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.0.4 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
13 + 37 = ?
Subscribe to this entry?

 [2005-07-07 17:25 UTC] jccann at gmail dot com
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'.

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, 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
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 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-07 18:44 UTC]
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 00:01:31 2024 UTC