[EMAIL PROTECTED] writes:
> On 17-Apr-2000 Bart Oldeman wrote:
> > On Mon, 17 Apr 2000 [EMAIL PROTECTED] wrote:
> >
> >> Hi!
> >>
> >> It's been quite a long time since I last used dosemu (must have
> >> been something like 0.7) and I've decided to give it a new try.
> >> Unfortunately I've been unable to build the 1.0 release
> >> with my 2.3.99pre5 kernel. The build fails with:
> >
> >> In file included from /usr/include/linux/fs.h:23,
> >> from disks.c:28:
> >> /usr/include/linux/string.h:12: parse error before `__extension__'
> >
> > Is your /usr/include/linux a symlink into the kernel tree?
> Yes it is (with /usr/include/asm -> /usr/src/linux/include/asm as well).
>
> > This is not
> > recommended anymore, AFAIK.
> Huh? I didn't know about that! How long has this been the case?
> On the other hand I know that including kernel headers in an
> application is no longer considered a good practice since libc6
> is supposed to expose all the necessary API's (how true THAT is,
> I don't know).
I think it's a bit of both you shouldn't need to touch your
kernel headers as nothing should look at them...
FWIW Last time I did a manual install of glibc-2.0.x the symlinks
where indeed expected to point to your real kernel headers...
dosemu is much older than glibc-2.x.x and lately has been
primarily in maitenance mode, so it's primarily lazyness on our
part that those headers are still included. Our best supported
target is still libc5 although glibc isn't too bad. Right now
you can't compile a static application with glibc-2.x :(
On the question of porting it looks like what needs to be
done is go through and audit all of the includes from the linux,
and the asm hierarchies and make them conditional on not having
libc6....
However you should be able to compile with 2.2 and be fine.
Eric