RE: 2.2.2-pre5 compile error

Terry Katz (katz@advanced.org)
Sat, 20 Feb 1999 00:38:01 -0500


I get this same problem ...

How have others gotten pre5 to compile? loopback.c seems to be a basic
requirement of configuring with Networking capabilities, and it causes this
error for me on three different systems...

Terry Katz
katz@advanced.org

> -----Original Message-----
> From: owner-linux-kernel@vger.rutgers.edu
> [mailto:owner-linux-kernel@vger.rutgers.edu]On Behalf Of Mike Black
> Sent: Friday, February 19, 1999 8:57 AM
> To: linux-kernel@vger.rutgers.edu
> Subject: 2.2.2-pre5 compile error
>
>
> Trying to compile 2.2.2-pre5 with CONFIG_FILTER and CONFIG_PACKET
> produces:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -O2 -fom
> it-frame-pointer -pipe -fno-strength-reduce -m486 -malig
> n-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o loopback.o
> loopback.c
> /usr/src/linux/include/net/sock.h: In function `sk_filter':
> In file included from loopback.c:51:
> /usr/src/linux/include/net/sock.h:796: dereferencing pointer to incomplete
> type
> /usr/src/linux/include/net/sock.h:796: dereferencing pointer to incomplete
> type
> /usr/src/linux/include/net/sock.h:796: warning: passing arg 1 of
> `sk_run_filter' from incompatible pointer type
> /usr/src/linux/include/net/sock.h:796: too few arguments to function
> `sk_run_filter'
> /usr/src/linux/include/net/sock.h: In function `sk_filter_release':
> /usr/src/linux/include/net/sock.h:807: warning: implicit declaration of
> function `sk_filter_len'
> /usr/src/linux/include/net/sock.h:811: dereferencing pointer to incomplete
> type
> /usr/src/linux/include/net/sock.h: In function `sk_filter_charge':
> /usr/src/linux/include/net/sock.h:817: dereferencing pointer to incomplete
> type
> make[3]: *** [loopback.o] Error 1
> make[3]: Leaving directory `/usr/src/linux/drivers/net'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux/drivers/net'
> make[1]: *** [_subdir_net] Error 2
> make[1]: Leaving directory `/usr/src/linux/drivers'
> make: *** [_dir_drivers] Error 2
>
> Looks like sock.h needs a change to sk_run_filter but I'm not sure exactly
> what to do here...
> ________________________________________
> Michael D. Black Principal Engineer
> mblack@csi.cc 407-676-2923,x203
> http://www.csi.cc Computer Science Innovations
> http://www.csi.cc/~mike My home page
> FAX 407-676-2355
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

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