PHP 4.0 Bug #7725 Updated: configure fails to found system headers during `Running system checks' phase
| From: | p dot pastori at acsys dot it | Date: | Thu, 23 Nov 2000 11:25:55 +0000 |
| Subject: | PHP 4.0 Bug #7725 Updated: configure fails to found system headers during `Running system checks' phase | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38987@lists.php.net to get a copy of this message | ||
ID: 7725
User Update by: p.pastori@acsys.it
Old-Status: Feedback
Status: Open
Bug Type: *Install and Config
Description: configure fails to found system headers during `Running system checks' phase
I tried the last version available (that is php4-200011220845) as asked by Jani. Sorry the bug is
present as i stated the first time, following there are the config.log lines which may explain
better the problem:
configure:5704: checking for sys/socket.h
configure:5714: /lib/cpp conftest.c >/dev/null 2>conftest.out
cpp: warning /usr/include/sys/socket.h:169: AF_LINK redefined
configure: failed program was:
#line 5709 "configure"
#include "confdefs.h"
#include <sys/socket.h>
A simple warning let you assume i miss the header...
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 06:31:40] sniper@php.net
Could you try latest snapshot from http://snaps.php.net/
to verify if this is fixed in it?
--Jani
---------------------------------------------------------------------------
[2000-11-09 10:08:46] p.pastori@acsys.it
Rightly you simply use the prepocessor during the check phase, instead of try to compile. Standard
autoconf macros AC_CHECK_HEADER and AC_CHECK_HEADERS would probably invoke the compiler. Anyway be
carefull to properly parse the prepocessor output before take any assumption, on my OS the
preprocessor simply prints `warning' lines which let you assume that i miss the
header under check.
I had to manually change the configure script at line 5499 to solve the problem but
you may do something better (i suppose).
Following there is the modified configure's line:
ac_err=
grep -v '^ *+' conftest.out | grep -v 'warning' | grep -v
"^conftest.${ac_ext}$"
as you note i simply add a pipe into a `grep -v 'warning'' and now it's ok.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7725