ID: 11761
Updated by: sniper
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
What is in config.log about locale.h ?
--Jani
------------------------------------------------------------------------
[2001-08-20 12:21:08] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]