Mike Jagdis wrote:
> No. You need 2.2 kernel headers and you need linux/include/asm
> to point to one of the asm-* directories (usually linux/include/asm-i386
> I guess). This is something that is done when you compile the
> kernel source but it is sufficient just to make the link.
I've been struggling to compile 0.99 or 0.99.1 for quite a while. All during
this time:
[root@oldbox]# ls -l /usr/src/linux/include
total 17
lrwxrwxrwx 1 root root 8 Jun 26 06:37 asm -> asm-i386
drwxr-xr-x 2 1046 1046 1024 Aug 3 1998 asm-generic
drwxr-xr-x 2 1046 1046 2048 May 10 11:32 asm-i386
... and ...
[root@oldbox]# ls -l /usr/src/linux/include/asm/types.h
-rw-r--r-- 1 1046 1046 883 Jan 26 1998
/usr/src/linux/include/asm/types.h
The problem was that the compiler was indicating a parsing error around line 19
in netlink.h (a file included in proxy_tap.c), where the type '__u32' appears.
I tracked '__u32' back through types.h (another file included higher up in
proxy_tap.c) to asm/types.h (a file included in types.h): there it is written
'typedef unsigned int __u32'.
When I replaced '__u32' with 'unsigned int'on line 19 in netlink.h, everything
was fine. So, I place the line
'#include </usr/src/linux/include/asm/types.h>'
on one of the first lines of netlink.h, and compiled without errors.
Questions:
1. Why was I having that problem?
2. My compile still has three warnings (see below).
a. Are these warnings significant?
b. Why am I getting them? (I've seen very few postings which mention
compile errors or warnings)
Here are the warnings:
[root@oldbox]# cd /usr/src/diald-0.99.1
[root@oldbox]# make
...
timer.c: In function `validate_function':
timer.c: 87: warning: comparison of distinct pointer types lacks a cast
timer.c: 88: warning: comparison of distinct pointer types lacks a cast
...
proxy_dev.c: In function `proxy_dev_init':
proxy_dev.c: 146: `d' might be used uninitialized in this function
...
TIA for your help!
Mark
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]