Mattias,

It looks like the development branch of GCC 4.5 has swithce a CPP
processor include file missing from just a wraning to an error.

The configure in HylaFAX is looking for the include files for the fchmod
declaration:
   $CXX -E t.c++ \
        | sed -e '/\/\*/,/\*\//d' -e 's;//.*$;;'
        | awk '{while($0~/[,(][ \t]*$/){printf"%s",$0;getline}print}' \
        | grep "fchmod[ ]*(.*)"

where t.c++ is (in this case):
  #include "unistd.h"
  #include "libc.h"
  #include "sys/stat.h"


Every other complier we've come across (GCC releases, Sun CC, Sco CC,
AIX CC, HUPX CC) issue pre-processor warnings on files not found (most
don't find "libc.h"), but none of them issue a fatal error that the GCC
HEAD branch is:
    t.c++:2:18: fatal error: libc.h: No such file or directory

For instance, any released GCC (4.4 and earlier) does:
    t.c++:2:18: error: libc.h: No such file or directory

But none of their pre-processors *stop* there, they finish including
sys/stat.h, which allows configure to see the fchmod declaration.  They
all exit with a non-zero exit, but all preprocess the rest of the input.

I'ld say this is a bug with GCC HEAD's pre-processor.

a.

-- 
Aidan Van Dyk                                             Create like a god,
[email protected]                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

Attachment: signature.asc
Description: Digital signature

Reply via email to