ID: 46020
Comment by: krish dot v at gmail dot com
Reported By: river at wikimedia dot org
Status: Open
Bug Type: Compile Failure
Operating System: HP-UX 11.11
PHP Version: 5.2.6
New Comment:
This happened for my Sun one webserver 6.1 running in HP UX 11.11. I
tried your work around and it worked fine. Thanks for the help.
This is really a useful one.
Krish.
Previous Comments:
------------------------------------------------------------------------
[2008-09-08 08:41:04] river at wikimedia dot org
Description:
------------
When compiling --with-nsapi on HP-UX 11.11 using Sun Java System Web
Server 7.0 Update 3, compilation fails inside <nsapi.h> because HPUX is
not #defined.
A workaround is to build with 'CPPFLAGS=-DHPUX'. I suggest detecting
HP-UX at compile time and defining HPUX if the NSAPI module is being
built.
Reproduce code:
---------------
I compiled PHP like this:
CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib
-Wl,+b,/usr/local/mysql/lib:/usr/local/lib' CC=gcc CXX=g++ ./configure
--prefix=/opt/php --with-mysql=/usr/local/mysql --enable-mbstring
--enable-fastcgi --with-nsapi=/opt/webserver7
Expected result:
----------------
I expected PHP to compile.
Actual result:
--------------
PHP didn't compile, with the following error:
In file included from /home/river/php/php-5.2.6/sapi/nsapi/nsapi.c:62:
/opt/webserver7/include/nsapi.h:315:24: error: sys/select.h: No such
file or directory
(This include is wrapped in "#ifndef HPUX", which HP's GCC doesn't
define by default.)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46020&edit=1