Click to See Complete Forum and Search --> : ip masq error when compiling kernal


gritts
11-11-2000, 03:05 AM
I am attempting to re-compile my RH7 kernal to include sound support and to trim some of the fat. I have gone through the steps without any errors until the very last "make zImage". Here is what I get...

kgcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c ip_masq.c
ip_masq.c:578: `ip_masq_hash' undeclared here (not in a function)
ip_masq.c:578: initializer element for `__ksymtab_ip_masq_hash.value' is not constant
ip_masq.c:579: `ip_masq_unhash' undeclared here (not in a function)
ip_masq.c:579: initializer element for `__ksymtab_ip_masq_unhash.value' is not constant
ip_masq.c:518: warning: `masq_port_lock' defined but not used
make[3]: *** [ip_masq.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.16/net/ipv4'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.16/net/ipv4'
make[1]: *** [_subdir_ipv4] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.16/net'
make: *** [_dir_net] Error 2


Any ideas? I have tried several different variations on the configuration settings when using the "make menuconfig" and have also executed the "make mrproper".

c_guy
11-11-2000, 01:34 PM
I'm not sure why that is happening, but maybe you could try doing a make bzimage instead? I thought also that redhat 7 had a bug in the compiler for the kernel maybe your running into that as well.. check the redhat website for errata regarding the complier...

Good luck

{c}guy

Muzzafarath
11-11-2000, 03:48 PM
RH shipped two different versions of gcc with 7.0. They called one kgcc (gcc 2.95.x I think?) to compile the kernel and they called the other gcc (snapshot release) to compile everything else. Those errors are probably related to you using gcc to compile your kernel instead of kgcc. Change it and all should be fine http://www.linuxnewbie.org/ubb/wink.gif

[This message has been edited by Muzzafarath (edited 11 November 2000).]