php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7725 configure fails to found system headers during `Running system checks' phase
Submitted: 2000-11-09 10:08 UTC Modified: 2000-11-29 05:06 UTC
From: p dot pastori at acsys dot it Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.3pl1 OS: IRIX 6.5 (6.5.8m)
Private report: No CVE-ID: None
 [2000-11-09 10:08 UTC] p dot pastori at acsys dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-21 06:31 UTC] sniper@php.net
Could you try latest snapshot from http://snaps.php.net/
to verify if this is fixed in it?

--Jani
 [2000-11-23 06:25 UTC] p dot pastori at acsys dot it
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...
 [2000-11-28 06:05 UTC] sniper@php.net
This isn't any bug in PHP but in either your cpp or
autoconf. Please try using GNU tools to build PHP.

--Jani
 [2000-11-29 05:06 UTC] p dot pastori at acsys dot it
Please take a look to my previous mail, you'll discover that the cpp warning is due to a problem in the header file, so eventually a have to use a new header (that is probably a completely new operative system because it is a sys include, and this is not a good solution i think).
Further notice that i simply run the configure script, which is build with YOUR autoconf macro on YOUR system, please...
Finally note too that GNU tools (which is almost a general suggestion) is totally unusefull in this case.
My conclusion are that:
1) You are not able or do not want to address the question or
2) May be you do not want PHP run on modern SGI machines
In any case SGI developers are smart enough to resolve such kind of problems due to the fact that the platform is generally bad served, so why do this?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC