2.2.2 doesn't compile with CONFIG_FILTER

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Mon, 8 Mar 1999 01:54:33 +0100


While trying to compile 2.2.2, I encountered the following error
message.

- <net/sock.h> fails to include <linux/filter.h>, which it needs for
sk_run_filter and other. This breaks loopback.c and ethertap.c (at least).

- Various things refer to `struct sk_filter', but I can't find the
definition anywhere in the source tree. This is an untar of
linux-2.2.2.tar.gz from an ftp.kernel.org mirror. Am I half asleep
or am I missing a file?

-- Jamie

gcc -D__KERNEL__ -I/usr/src/linux-2.2/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o
loopback.o loopback.c
/usr/src/linux-2.2/include/net/sock.h: In function `sk_filter':
In file included from loopback.c:51:
/usr/src/linux-2.2/include/net/sock.h:796: dereferencing pointer to
incomplete type
/usr/src/linux-2.2/include/net/sock.h:796: dereferencing pointer to
incomplete type
/usr/src/linux-2.2/include/net/sock.h:796: warning: passing arg 1 of
`sk_run_filter' from incompatible pointer type
/usr/src/linux-2.2/include/net/sock.h:796: too few arguments to function
`sk_run_filter'
/usr/src/linux-2.2/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.2/include/net/sock.h:807: warning: implicit declaration
of function `sk_filter_len'
/usr/src/linux-2.2/include/net/sock.h:811: dereferencing pointer to
incomplete type
/usr/src/linux-2.2/include/net/sock.h: In function `sk_filter_charge':
/usr/src/linux-2.2/include/net/sock.h:817: dereferencing pointer to
incomplete type
make[3]: *** [loopback.o] Error 1

-
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/