#39192 [Opn->Fbk]: Not including nsapi.h properly with SJSWS 7
| From: | tony2001@php.net | Date: | Thu, 19 Oct 2006 14:54:58 +0000 |
| Subject: | #39192 [Opn->Fbk]: Not including nsapi.h properly with SJSWS 7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103738@lists.php.net to get a copy of this message | ||
ID: 39192
Updated by: tony2001@php.net
Reported By: ormandj at corenode dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 10 6/06
PHP Version: 5.1.6
New Comment:
Look into sapi/nsapi/config.m4, this is the file you need to edit (and
run ./buildconf --force after that).
I fail to see how -I/sun/webserver7/include may be missing, but I don't
have a SJSWS to try it.
Previous Comments:
------------------------------------------------------------------------
[2006-10-19 01:42:41] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39192&edit=1