Hi,
I have Sun ONE Web Server 6.1 SP4, on solaris 8 [SunOS spapp7 5.8
Generic_117350-24 sun4u sparc SUNW,Sun-Fire]. I'm trying to compile
php 5.0.4.
Here's my configure options:
$ ./configure --with-mysql=/usr/local/mysql --enable-libgcc
--with-nsapi=/opt/SUNWwbsvr \
--with-libxml-dir=/opt/csw/
The configure script does not error out but when I compile, the
compiler is looking for a system header : if_dl.h from netdb.h:
/mysql/php_mysql.o && echo > ext/mysql/php_mysql.lo
In file included from /usr/include/netdb.h:98,
from /usr/local/php-5.0.4/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
Here's the relevant lines from /usr/include/netdb.h :
90 #ifndef _NETDB_H
91 #define _NETDB_H
92
93 #pragma ident "@(#)netdb.h 1.25 01/05/08 SMI"
94
95 #include <sys/types.h>
96 #include <netinet/in.h>
97 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
98 #include <sys/socket.h>
99 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
100 #include <sys/feature_tests.h>
I'm assuming this is an invalid compilation path (because of the
missing .h file). So shouldn't the configure script figure out that
the script needs to set the compilation pragma XPG4_2?
In any case, I'm not sure how to set this or what other php configure
flag to turn on XPG4_2 compliance.
Also, I just tried the same compilation flags against Sun ONE Web
Server 6.0 SP5 and observed the same result.
Finally there was an open php 4 bug
http://bugs.php.net/bug.php?id=7423 on this which didn't seem to get
final resolution.
I appreciate any suggestions.
Thanks
Jeff