From:             ormandj at corenode dot com
Operating system: Solaris 10 6/06
PHP version:      5.1.6
PHP Bug Type:     Compile Failure
Bug description:  Not including nsapi.h properly with SJSWS 7

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 bug report at http://bugs.php.net/?id=39192&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39192&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39192&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39192&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39192&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39192&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39192&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39192&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39192&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39192&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39192&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39192&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39192&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39192&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39192&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39192&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39192&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39192&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39192&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39192&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39192&r=mysqlcfg

Reply via email to