Re: Linux Kernel include files

From: Adrian Bunk
Date: Wed Jun 27 2007 - 12:39:59 EST


On Wed, Jun 27, 2007 at 03:58:43PM +0200, Joerg Schilling wrote:
> Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:
>
> > On Mon, Jun 25, 2007 at 04:53:55PM +0200, Joerg Schilling wrote:
> > >
> > > star needs "ext2_fs.h". This file is not usable at all on many Linux
> > > distributions, even with GCC.
> >
> > I was curious so I did:
> >
> > $ mkdir ~/foo
> > $ cd ~/kernel/linux-2.6
> > $ make INSTALL_HDR_PATH=~/foo
> > $ cd ~/foo
> > $ cat j.c
> > #include <stdio.h>
> > #include "etx2_fs.h"
> >
> > main()
> > {
> > printf("helloo\n");
> > }
> >
> > $ gcc -o j j.c
> > => No warning, no errors
> >
>
> On Suse Linux 10.0, I get e.g.:
>
> cat t.c
> #include <stdio.h>
> #include <linux/ext2_fs.h>
>
> gcc -c t.c
> In file included from /usr/include/linux/ext2_fs.h:20,
> from t.c:2:
> /usr/include/linux/ext2_fs_sb.h:40: error: syntax error before Ãuid_tÃ
> /usr/include/linux/ext2_fs_sb.h:49: error: syntax error before Ãs_next_generationÃ
> /usr/include/linux/ext2_fs_sb.h:51: error: syntax error before Ã*Ã token
> /usr/include/linux/ext2_fs_sb.h:56: error: syntax error before Ã}Ã token

Already fixed since kernel 2.6.18.

Our header were a mess and we are working on getting them better.
But we can't timetravel and fix old distributions.

> JÃrg

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/