Re: test7-pre3 netfilter compile error

From: list.kernel@iahastie.clara.net
Date: Sun Aug 13 2000 - 14:29:26 EST


On Sun, 13 Aug 2000 10:07:45 +0200 (CEST), Pau Aliagas <pau@readysoft.es> wrote:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
> -fno-strict-aliasing -DMODULE -DMODVERSIONS -include
> /usr/src/linux/include/linux/modversions.h -c -o ipt_owner.o ipt_owner.c
> In file included from /usr/src/linux/include/linux/modversions.h:15,
> from ipt_owner.c:0:
> /usr/src/linux/include/linux/modules/bttv.ver:11:41: warning: "__ver_bttv_get_gpio_queue" redefined
> /usr/src/linux/include/linux/modules/bttv-if.ver:11:1: warning: this is
> the location of the previous definition
> In file included from /usr/src/linux/include/net/sock.h:91,
> from ipt_owner.c:9:
> /usr/src/linux/include/net/irda/irda.h:70:46: warning: nothing can be
> pasted after this token
> ipt_owner.c: In function `match_sid':
> ipt_owner.c:59: warning: assignment from incompatible pointer type
> ipt_owner.c:61: structure has no member named `file_lock'
> ipt_owner.c:62: structure has no member named `max_fds'
> ipt_owner.c:63: warning: passing arg 1 of `fcheck_files' from incompatible
> pointer type
> {standard input}: Assembler messages:
> {standard input}:8: Warning: Ignoring changed section attributes for
> .modinfo
> make[2]: *** [ipt_owner.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/net/ipv4/netfilter'
> make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
> make[1]: Leaving directory `/usr/src/linux/net'
> make: *** [_mod_net] Error 2

Looks like the fix is a simple change in line 54 of ipt_owner.c.
Just change it from:

struct file *files;

to:

struct files_struct *files;

-- 
Ian.

I don't have a sig either!

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



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:30 EST