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

Re: your mail



On Sat, 6 Jul 1996, Nir Soffer wrote:

> 
> Subject: Those darn includes again
> Hello again. :). Okay - THAT'S how my /usr/include/linux is defined.
> 
> lrwxrwxrwx   1 root     root           28 Jul  1 15:21 linux -> /usr/src/linux/include/linux
> 
> And that's how the /usr/include/linux/asm is defined.
> 
> lrwxrwxrwx   1 root     root           32 Jul  6 02:15 asm -> /usr/src/linux/include/asm-i386/
> 
> THIS - is a make running a long trying to compile something.
> As you can see - it didn't quite work. 
> Anyone know why/how/when and what I should do now, with a full explanation
> and not just saying what happened, but also what I should do? :)
> 
> As to your instructions, I downloaded the Linux kernel source code 
> and linked the /usr/include/linux to /usr/src/linux/include/linux
> What else?
> 
> make[1]: Entering directory `/home/scorpios/irc/ircii-2.8.2/source'
> gcc -g -O -DHAVE_CONFIG_H  -I../include -c alias.c
> In file included from /usr/include/endian.h:34,
>                from /usr/include/ctype.h:43,
>                from ../include/irc.h:33,
>                from alias.c:15:
> /usr/include/bytesex.h:6: linux/version.h: No such file or directory

It is not enough to copy the kernel sources, you have to actually build
it. "version.h" is created during the build, maybe is enough to go up
"make dep" but I am not sure about that.

> In file included from /usr/include/sys/types.h:4,
>                from ../include/irc.h:34,
>                from alias.c:15:
> /usr/include/linux/types.h:4: asm/types.h: No such file or directory
> In file included from /usr/include/netinet/in.h:78,
>                from ../include/irc.h:37,
>                from alias.c:15:

Not sure what is wrong here, do you see the files(try ls) ? On my system:
/usr/include/asm -> ../src/linux/include/asm

During the kernel build a symbolic link is created:
/usr/src/linux/include/asm -> asm-i386

> [snip] 
> 

Vlad
---
Vlad Moseanu                  | Office: vlad@tavosf.iso.dec.com
                              | Home:   vlad@main.aquanet.co.il 
---


References: