This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.95.3 destruction in Linux header


> Date: Fri, 23 Mar 2001 19:21:21 -0500 (EST)
> From: Stephen L Moshier <moshier@mediaone.net>
> Reply-To: moshier@moshier.ne.mediaone.net
> cc: gcc-bugs@gcc.gnu.org
> 
> >From Geoff Keating <geoffk@geoffk.org>:
> > /usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
> >
> > On my system, if you're building the linux kernel, it gets defined in
> > <linux/types.h>.  Is it defined in your linux/types.h?
> 
> No, it is not, on linux 2.2.14.  I think this would get it,
> from /usr/include/sys/types.h:
>   /usr/include/bits/types.h:typedef __u_long __ino_t;

That's still not 'ino_t'.  Perhaps somewhere ino_t is defined to be
__ino_t.

> The code fragment was boiled down from a device driver, and
> apparently various things are left undefined by the system headers
> that the program includes.
> The effect seems to be that the program works with old gcc's but not
> with 2.95.3.

This seems very odd.  Are both gcc versions really using the same headers?

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]