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:

We do NOT include net/if_dl.h anywhere in our sources.
We only include socket.h and THAT tries to include the non-existing
file -> not our problem. 


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

[2005-07-06 00:33:45] jccann at gmail dot com

I understand that you may think it's an operating system environment
problem.  But, I checked three other Solaris 8 installations and none
of them have the net/if_dl.h file.

Are you testing this on a solaris 8 box?  Can you post the uname -a
information, please?

Thanks

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

[2005-07-05 22:57:34] [EMAIL PROTECTED]

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)

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

[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__) */

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

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