Bug #11761 Updated: LC_CTYPE undeclared

From: Date: Wed, 22 Aug 2001 16:53:58 +0000
Subject: Bug #11761 Updated: LC_CTYPE undeclared
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64060@lists.php.net to get a copy of this message
ID: 11761 Updated by: sniper Reported By: unix-guy@pacbell.net Old Status: Open Status: Closed Bug Type: Compile Failure Operating System: HP-UX 11.00 PHP Version: 4.0.6 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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> ------------------------------------------------------------------------ [2001-08-20 12:53:53] sniper@php.net What is in config.log about locale.h ? --Jani ------------------------------------------------------------------------ [2001-08-20 12:21:08] unix-guy@pacbell.net I pulled the latest snapshot and ran the same configure command. I still see the following in main/php_config.h: /* #undef HAVE_LOCALE_H */ It appears the problem still exists... ------------------------------------------------------------------------ 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

« previous php.dev (#64060) next »