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).

> You could try the string.h included with your
> version of glibc. Or has that one been changed as well? (I'm using glibc
> 2.1.3).
I'm using 2.1.2. However it seems to me that dosemu specifically requires
header files from the kernel tree: if I remove the symlinks, the build fails
with
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr2/home/alain/dosemu-1.0.0/src/tools/periph'
make[1]: *** No rule to make target `/usr/include/linux/errno.h', needed by
`emu.o'.  Stop.
make[1]: Leaving directory `/usr2/home/alain/dosemu-1.0.0/src'
make: *** [default] Error 2



> 
>> <SNIP>
>> Is there something that must be done to "port" dosemu to 2.3.99 (and the
>> future 2.4.X), or am I doing somthing wrong?
> 
> Maybe. If the string.h dosemu complains about gets included in glibc.
> 
> Bart
> 
No luck so far, but thanks anyway

----------------------------------
Date: 18-Apr-2000    Time: 06:29:23

Reply via email to