php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jccann at gmail dot com
New email:
PHP Version: OS:

 

 [2005-07-07 17:25 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-07 18:44 UTC] sniper@php.net
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 01:01:32 2024 UTC