From:             jccann at gmail dot com
Operating system: Solaris 8
PHP version:      5.0.4
PHP Bug Type:     *Configuration Issues
Bug description:  configure detects error but does not fail

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 bug report at http://bugs.php.net/?id=33607&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33607&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33607&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33607&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33607&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33607&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33607&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33607&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33607&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33607&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33607&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33607&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33607&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33607&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33607&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33607&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33607&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33607&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33607&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33607&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33607&r=mysqlcfg

Reply via email to