Bug #11761 Updated: LC_CTYPE undeclared
| From: | unix-guy at pacbell dot net | Date: | Wed, 22 Aug 2001 17:21:13 +0000 |
| Subject: | Bug #11761 Updated: LC_CTYPE undeclared | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64071@lists.php.net to get a copy of this message | ||
ID: 11761
User updated by: unix-guy@pacbell.net
Reported By: unix-guy@pacbell.net
Old Status: Closed
Status: Open
Bug Type: Compile Failure
Operating System: HP-UX 11.00
PHP Version: 4.0.6
New Comment:
I'll try a newer version of GCC and see what happens...
Previous Comments:
------------------------------------------------------------------------
[2001-08-22 12:55:42] sniper@php.net
I forgot to add this: I found couple of mentions
about this same problem. You could try with different
version of GCC.
--Jani
------------------------------------------------------------------------
[2001-08-22 12:53:58] sniper@php.net
Reason for the HAVE_LOCALE_H to get set to 0 is this:
"In file included from /usr/include/locale.h:157,
from configure:6318:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning:
`__va__list' redefined
/usr/include/locale.h:26: warning: this is the location of the previous definition"
Now, we could discuss whether it's a bug in autoconf or
in gcc (on HP-UX)..but I'd rather not. :)
Anyway, not a bug in PHP.
--Jani
------------------------------------------------------------------------
[2001-08-22 11:21:45] unix-guy@pacbell.net
I haven't tried this on another system, but it was freshly installed and patched at the time I
first encountered this problem. All associated software (gcc, flex, bison, etc) was installed just
prior to building PHP.
What's even more confusing is that the config.log shows that it FOUND /usr/include/locale.h:
In file included from /usr/include/locale.h:157
So how is it that configure thinks locale.h can't be found?
I don't really have time to pursue the issue on another system at this time. Since I was able
to successfully build PHP by simply adding the #define to php_config.h, I wasn't overly
concerned.
I'm sure it's possible that the problem is compiler related - maybe nobody else has used
gcc 2.95.3 on HP-UX 11 to build PHP4, but I doubt it.
------------------------------------------------------------------------
[2001-08-22 04:15:51] sniper@php.net
Are you sure your system isn't a bit broken here?
Nobody else has reported this problem but you.
--Jani
------------------------------------------------------------------------
[2001-08-20 13:16:24] unix-guy@pacbell.net
The file config.log contains the following block regarding locale.h:
configure:6312: checking for locale.h
configure:6322: gcc -E -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -DSHARED_CORE conftest.c >/dev/null
2>conftest.out
In file included from /usr/include/locale.h:157,
from configure:6318:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: `__va__list'
redefined
/usr/include/locale.h:26: warning: this is the location of the previous definition
configure: failed program was:
#line 6317 "configure"
#include "confdefs.h"
#include <locale.h>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11761
Edit this bug report at http://bugs.php.net/?id=11761&edit=1