[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tru64 5.1 cc #include_next header name expansion
From: |
Ralf Wildenhues |
Subject: |
Tru64 5.1 cc #include_next header name expansion |
Date: |
Sun, 17 Jan 2010 12:46:35 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
This one is funny: Tru64 5.1 cc, which is
Compaq C V6.5-303 (dtk) on Compaq Tru64 UNIX V5.1 (Rev. 732)
treats include_next different from include:
$ echo '#define foo bar
#include <foo.h>' | cc -E -
# 1 ""
cc: Error: , line 2: Cannot find file <foo.h> specified in #include
directive. (noinclfile)
#include <foo.h>
-^
$ echo '#define foo bar
#include_next <foo.h>' | cc -E -
# 1 ""
cc: Error: , line 2: Cannot find file <bar.h> specified in #include
directive. (noinclfile)
#include_next <foo.h>
-^
Consequently, it fails like this when building gnulib:
source='../../gllib/accept4.c' object='accept4.o' libtool=no \
DEPDIR=.deps depmode=tru64 /bin/ksh ../../build-aux/depcomp \
cc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" -I.
-I../../gllib -I.. -I../intl -ieee -g -c -o accept4.o ../../gllib/accept4.c
cc: Severe: ./fcntl.h, line 46: Cannot find file <rpl_fcntl.h> specified in
#include directive. (noinclfilef)
#include_next <fcntl.h>
-^
gmake[4]: *** [accept4.o] Error 1
I'm not sure how to best avoid this for the two include_next instances
in fcntl.h. Suggestions?
Thanks,
Ralf
- Tru64 5.1 cc #include_next header name expansion,
Ralf Wildenhues <=