|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-19 01:42 UTC] ormandj at corenode dot com
Description: ------------ When I first ran: ./configure --prefix=/opt/php --with-nsapi=/sun/webserver7 --with-libxml-dir=/opt/libxml --with-mysql=/opt/mysql --with-mysqli=/opt/mysql/bin/mysql_config --enable-libgcc It ran with no errors. I then attempted to "gmake" and got an error that nsapi.h was not found when compiling nsapi.c. # ls /sun/webserver7/include/nsapi.h /sun/webserver7/include/nsapi.h # I had to edit "configure" and change this line (this is not the correct fix I think, I just did it as a quick fix because I don't know how configure scripts work): *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; To: *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir -I$NSAPI_INCLUDE" ;; Then, ran configure as so: ./configure --prefix=/opt/php --with-nsapi=/sun/webserver7 --with-libxml-dir=/opt/libxml --with-mysql=/opt/mysql --with-mysqli=/opt/mysql/bin/mysql_config --enable-libgcc At this point, it compiled fine, and is now running fine. In other words, something is wrong with configure and this webserver. If more output is needed it can be provided. :) Thanks, David PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
I think the problem is somewhere in this code in "configure", as it seems to be where it adds it to the "includes". If you have any idea what I should do, I'll give it a try: for ac_i in $NSAPI_INCLUDE; do case $ac_i in -I*) ac_ii=`echo $ac_i|cut -c 3-` if test "$ac_ii" != "/usr/include"; then if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then ai_p=$ac_ii else ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`" ep_realdir="`(cd \"$ep_dir\" && pwd)`" ai_p="$ep_realdir/`basename \"$ac_ii\"`" fi unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "INCLUDEPATH$unique=set" if test ""; then INCLUDES="-I$ai_p $INCLUDES" else INCLUDES="$INCLUDES -I$ai_p" fi fi fi ;; esac doneThe problem appears to be due to an incomplete fix for #19290. The following diff against 5.1.6 works here: --- sapi/nsapi/config.m4 Wed Oct 25 22:44:33 2006 +++ /home/elving/39192/php-5.1.6/sapi/nsapi/config.m4 Wed Oct 25 23:14:16 2006 @@ -6,3 +6,3 @@ AC_ARG_WITH(nsapi, -[ --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/SunONE],[ +[ --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun],[ PHP_NSAPI=$withval @@ -15,3 +15,3 @@ if test ! -d $PHP_NSAPI/bin ; then - AC_MSG_ERROR(Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR) + AC_MSG_ERROR(Please specify the path to the root of your Netscape/iPlanet/Sun server using --with-nsapi=DIR) fi @@ -19,5 +19,7 @@ if test -d $PHP_NSAPI/include ; then + test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE" NSAPI_INCLUDE=$PHP_NSAPI/include - AC_MSG_RESULT(Netscape-Enterprise 3.x style) + AC_MSG_RESULT(Netscape 3.x style / Sun 7.x style) AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h]) + NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE" fi @@ -26,3 +28,3 @@ NSAPI_INCLUDE="$PHP_NSAPI/plugins/include" - AC_MSG_RESULT(iPlanet 4.x / SunONE 6.x style) + AC_MSG_RESULT(iPlanet 4.x / Sun 6.x style) AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h]) @@ -36,3 +38,3 @@ PHP_BUILD_THREAD_SAFE - AC_DEFINE(HAVE_NSAPI,1,[Whether you have a Netscape/iPlanet/SunONE Server]) + AC_DEFINE(HAVE_NSAPI,1,[Whether you have a Netscape/iPlanet/Sun server]) PHP_SELECT_SAPI(nsapi, shared, nsapi.c) The critical change is to define NSAPI_INC_DIR. The message changes are cosmetic and reflect that Sun Java System Web Server 7.0 is now supported.