bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib breakage on Tru64 UNIX with commercial C compiler


From: Eric Blake
Subject: Re: gnulib breakage on Tru64 UNIX with commercial C compiler
Date: Wed, 04 Apr 2007 21:14:12 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Albert Chin on 4/4/2007 8:59 PM:
> 
> Unfortunately, "#include_next <stdio.h>" doesn't include
> /usr/include/stdio.h. It includes "./stdio.h", the gnulib version of
> stdio.h.

If you were to change the gnulib stdio.h to use #include_next instead of
#include, would that help matters any?  Maybe we need to teach the
absolute-header module to check for include_next, and use it when
supported?  Although I seem to recall the concern over this was whether
preprocessors that don't understand #include_next would choke; so it would
have to be done by one of the sed expressions that creates stdio.h from
stdio_.h rather than something directly in stdio_.h.

> 
> So, how do we fix this? There is a -nodtk option to the commercial C
> compiler which reverts to the system cc but that would need to be done
> for _most_ gnulib-using programs, something that is not desirable.

Doable in gnulib (similar to how we turn on c99 mode on as many compilers
as possible), but still awkward.  Also, is there a different sequence of
- -I flags that would pick up the system headers correctly?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFGmE84KuGfSFAYARAuZ/AJ0XXJ+V+aiZRW/KzyHQj1gNJ2JCfQCeI4S8
q4R1sZqob9Ip7ai8vSY1kTM=
=C/TM
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]