Bug #11761 Updated: LC_CTYPE undeclared
| From: | sniper@php.net | Date: | Sat, 30 Jun 2001 00:40:11 +0000 |
| Subject: | Bug #11761 Updated: LC_CTYPE undeclared | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58506@lists.php.net to get a copy of this message | ||
ID: 11761
Updated by: sniper
Reported By: unix-guy@pacbell.net
Status: Open
Bug Type: Compile Failure
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
User feedback (next time, use the WEB interface to answer):
-----------------------------------------------------------
I do have /usr/include/locale.h. In the php_config.h file, the only line
matching 'HAVE_LOCALE_H' is:
/* #undef HAVE_LOCALE_H */
Is configure not finding my header file?
-----------------------------------------------------------
Previous Comments:
---------------------------------------------------------------------------
[2001-06-29 17:48:56] unix-guy@pacbell.net
I was able to work around the problem by adding:
#define HAVE_LOCALE_H 1
in main/php_config.h
However, I am still concerned at why that particular header file was not found.
---------------------------------------------------------------------------
[2001-06-29 17:14:05] unix-guy@pacbell.net
I was able to work around the problem by adding:
#define HAVE_LOCALE_H 1
in main/php_config.h
However, I am still concerned at why that particular header file was not found.
---------------------------------------------------------------------------
[2001-06-29 17:12:30] unix-guy@pacbell.net
I do have /usr/include/locale.h. In the php_config.h file, the only line matching
'HAVE_LOCALE_H' is:
/* #undef HAVE_LOCALE_H */
Is configure not finding my header file?
---------------------------------------------------------------------------
[2001-06-28 11:33:59] sniper@php.net
Do you have /usr/include/locale.h ?
Can you find this line in php4/main/php_config.h:
#define HAVE_LOCALE_H 1
---------------------------------------------------------------------------
[2001-06-27 20:44:14] unix-guy@pacbell.net
Compile with either that static or DSO method fails on HP-UX 11.00.
Config command (from static):
./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-track-vars
--enable-yp --enable-ftp --without-mysql --without-oracle --without-oci8
End of make output:
gcc -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix -I/tmp/php-4.0.6/Zend
-I/tmp/php-4.0.6/ext/xml/expat/xmltok -I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c php_pcre.c && touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
from /tmp/php-4.0.6/Zend/zend_config.h:1,
from /tmp/php-4.0.6/Zend/zend.h:44,
from /tmp/php-4.0.6/main/php.h:34,
from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: `__va__list'
redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is the location
of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Tried with LANG=C and LANG undefined - no difference...
---------------------------------------------------------------------------
The remainder of the comments for this report are too long.
To view the rest of the comments, please
view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11761&edit=2