From: mmokrejs at natur dot cuni dot cz Operating system: solaris 2.6 PHP version: 4CVS-2003-12-09 (stable) PHP Bug Type: Compile Failure Bug description: ncurses5 has headers in ncurses/ subdir
Description: ------------ It seems the ncurses support in PHP4 is for old ncurses4. The headers used to be in $prefix/include/ncurses.h for example. Nowadays, they are in $prefix/include/ncurses/ncurses.h. I believe configure should take care of that. Reproduce code: --------------- gcc -Iext/ncurses/ -I/scratch/php4-200312091230/ext/ncurses/ -DPHP_ATOM_INC -I/scratch/php4-200312091230/include -I/scratch/php4-200312091230/main -I/scratch/php4-200312091230 -I/scratch/php4-200312091230/Zend -I/usr/local/openssl-0.9.6l/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/mysql/include/mysql -I/scratch/php4-200312091230/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/scratch/php4-200312091230/TSRM -O3 -mcpu=v8 -Wa,-xarch=v8plusa -felide-constructors -fno-exceptions -fno-rtti -c /scratch/php4-200312091230/ext/ncurses/ncurses.c -o ext/ncurses/ncurses.o && echo > ext/ncurses/ncurses.lo /scratch/php4-200312091230/ext/ncurses/ncurses.c: In function `zm_startup_ncurses': /scratch/php4-200312091230/ext/ncurses/ncurses.c:212: `KEY_RESIZE' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:212: (Each undeclared identifier is reported only once /scratch/php4-200312091230/ext/ncurses/ncurses.c:212: for each function it appears in.) /scratch/php4-200312091230/ext/ncurses/ncurses.c:243: `BUTTON4_PRESSED' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:244: `BUTTON4_RELEASED' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:245: `BUTTON4_CLICKED' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:246: `BUTTON4_DOUBLE_CLICKED' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:247: `BUTTON4_TRIPLE_CLICKED' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:248: `BUTTON_SHIFT' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:249: `BUTTON_CTRL' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c:250: `BUTTON_ALT' undeclared (first use in this function) /scratch/php4-200312091230/ext/ncurses/ncurses.c: In function `zm_info_ncurses': /scratch/php4-200312091230/ext/ncurses/ncurses.c:297: `NCURSES_VERSION' undeclared (first use in this function) make: *** [ext/ncurses/ncurses.lo] Error 1 Actual result: -------------- I can fix by adding -I/usr/local/include/ncurses gcc -Iext/ncurses/ -I/usr/local/include/ncurses -I/scratch/php4-200312091230/ext/ncurses/ -DPHP_ATOM_INC -I/scratch/php4-200312091230/include -I/scratch/php4-200312091230/main -I/scratch/php4-200312091230 -I/scratch/php4-200312091230/Zend -I/usr/local/openssl-0.9.6l/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/mysql/include/mysql -I/scratch/php4-200312091230/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/scratch/php4-200312091230/TSRM -O3 -mcpu=v8 -Wa,-xarch=v8plusa -felide-constructors -fno-exceptions -fno-rtti -c /scratch/php4-200312091230/ext/ncurses/ncurses.c -o ext/ncurses/ncurses.o && echo > ext/ncurses/ncurses.lo -- Edit bug report at http://bugs.php.net/?id=26564&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26564&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26564&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26564&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26564&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26564&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26564&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26564&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26564&r=support Expected behavior: http://bugs.php.net/fix.php?id=26564&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26564&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26564&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26564&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26564&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26564&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26564&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26564&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26564&r=float
