ID:               33569
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jccann at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Solaris
 PHP Version:      5CVS-2005-07-04
 New Comment:

This is really a problem in your system installation.
Something is either been deleted accidently or not installed at all.
(that same configure line works just fine on properly
configured/installed Solaris 8)


Previous Comments:
------------------------------------------------------------------------

[2005-07-05 21:42:03] jccann at gmail dot com

Hi - Thanks for the suggestion.

I tried the following commands with both php 5.0.4 and snapshot
php5-200507050430

# rm config.cache 
# ./configure --disable-all --disable-cgi --enable-sockets
# make clean && make

Although both do not fail in the same location, the same issue appears
: net/if_dl.h: No such file or directory.  

[full output below]

I'm guessing by your suggestion that this is not an NSAPI problem per
se, but perhaps caused by something else in my environment?  Is it a
solaris 8 issue?  gcc version?  Am I missing some solaris package that
should be installed.  Maybe my LD_LIBRARY_PATH or PATH are incorrect?

I'm willing to continue to try various suggestions.  I would like to
help resolve this problem.

Thanks,
Jeff

Here's the output.

------------- php 5.0.4 --------------------
 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  -Iext/sockets/ -I/usr/local/php/php-5.0.4/ext/sockets/
-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/sockets/sockets.c -o ext/sockets/sockets.o
 && echo > ext/sockets/sockets.lo
In file included from
/usr/local/php/php-5.0.4/ext/sockets/sockets.c:39:
/usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory
make: *** [ext/sockets/sockets.lo] Error 1




------------ output for php5-200507050430 ----------

$ 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/*
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/php_date.c -o
ext/date/php_date.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/dow.c -o
ext/date/lib/dow.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/parse_date.c -o
ext/date/lib/parse_date.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/parse_tz.c -o
ext/date/lib/parse_tz.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/timelib.c -o
ext/date/lib/timelib.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/tm2unixtime.c -o
ext/date/lib/tm2unixtime.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/usr/local/php/php5-200507050430/ext/date/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/date/lib/unixtime2tm.c -o
ext/date/lib/unixtime2tm.lo 
/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/sockets/
-I/usr/local/php/php5-200507050430/ext/sockets/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g
-O2  -c /usr/local/php/php5-200507050430/ext/sockets/sockets.c -o
ext/sockets/sockets.lo 
In file included from
/usr/local/php/php5-200507050430/ext/sockets/sockets.c:39:
/usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory
make: *** [ext/sockets/sockets.lo] Error 1

------------------------------------------------------------------------

[2005-07-05 10:08:49] [EMAIL PROTECTED]

Does this work:

# rm config.cache 
# ./configure --disable-all --disable-cgi --enable-sockets
# make clean && make



------------------------------------------------------------------------

[2005-07-05 08:05:30] jccann at gmail dot com

Just to clarify my post on the snapshot test.  The configure script
runs to success, but the compilation continues to fail.

Is it possible that there is a simple workaround such as an extra
compilation flag to avoid using the sys/socket.h include file?

    97 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
    98 #include <sys/socket.h>
    99 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */

------------------------------------------------------------------------

[2005-07-05 07:25:44] jccann at gmail dot com

Hi,

With today's snapshot [php5-200507050430], it still fails in the same
way as in php 5.0.4 - configure runs to success.  But, when I check the
config.log for the net/if_dl.h test, it fails:

configure:9795: checking for NSAPI support
configure:9815: checking for NSAPI include files
configure:9868: checking for /apps/SUNWwbsvr/plugins/include/nsapi.h
configure:9878: gcc -E  -D_POSIX_PTHREAD_SEMANTICS conftest.c
>/dev/null 2>conftest.out
In file included from /apps/SUNWwbsvr/plugins/include/nsapi.h:278,
                 from configure:9874:
/usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory
configure: failed program was:
#line 9873 "configure"
#include "confdefs.h"
#include </apps/SUNWwbsvr/plugins/include/nsapi.h>


Here's the compilation failure.

/bin/sh /usr/local/php/php5-200507050430/libtool --silent
--preserve-dup-deps --mode=compile
/usr/local/php/php5-200507050430/meta_ccld  -Iext/mysql/
-I/usr/local/php/php5-200507050430/ext/mysql/ -DPHP_ATOM_INC
-I/usr/local/php/php5-200507050430/include
-I/usr/local/php/php5-200507050430/main
-I/usr/local/php/php5-200507050430 -I/apps/SUNWwbsvr/plugins/include
-I/opt/csw/include/libxml2 -I/usr/local/mysql/include
-I/usr/local/php/php5-200507050430/TSRM
-I/usr/local/php/php5-200507050430/Zend  -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -g -O2 -pthreads -DZTS   -c
/usr/local/php/php5-200507050430/ext/mysql/php_mysql.c -o
ext/mysql/php_mysql.lo
In file included from /usr/include/netdb.h:98,
                 from
/usr/local/php/php5-200507050430/ext/mysql/php_mysql.c:53:
/usr/include/sys/socket.h:202: net/if_dl.h: No such file or directory
make: *** [ext/mysql/php_mysql.lo] Error 1

------------------------------------------------------------------------

[2005-07-04 22:44:23] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33569

-- 
Edit this bug report at http://bugs.php.net/?id=33569&edit=1

Reply via email to