ID:               26564
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mmokrejs at natur dot cuni dot cz
-Status:           Open
+Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: solaris 2.6
 PHP Version:      4CVS-2003-12-09 (stable)
-Assigned To:      
+Assigned To:      sniper
 New Comment:

testing a fix now..



Previous Comments:
------------------------------------------------------------------------

[2003-12-09 12:43:21] mmokrejs at natur dot cuni dot cz

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 this bug report at http://bugs.php.net/?id=26564&edit=1

Reply via email to