From: river at wikimedia dot org Operating system: HP-UX 11.11 PHP version: 5.2.6 PHP Bug Type: Compile Failure Bug description: With Sun Java System Web Server 7.0 on HPUX, #define HPUX
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 bug report at http://bugs.php.net/?id=46020&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46020&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46020&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46020&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46020&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46020&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46020&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46020&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46020&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46020&r=support Expected behavior: http://bugs.php.net/fix.php?id=46020&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46020&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46020&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46020&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46020&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46020&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46020&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46020&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46020&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46020&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46020&r=mysqlcfg