[techtalk] 2.2.16-22 Kernel Compile errors

Anmol Khirbat anmol at teknema.com
Fri Nov 17 15:44:57 EST 2000


Hi

While recompiling your kernel might be a good idea, all you need to do to
support the second NIC is just modprobe the appropriate module
(smc-ultra?). If you don't have the module, you could get away with
building just the modules instead of the whole kernel.

Is the first NIC the same kind? In that case, if your first NIC is working
fine, then chances are that the second one is too and all it needs is
configuring. Does dmesg say anything about eth1 or does eth1 show up if
you do ifconfig -a ? 

Also check out 'Problems with SMC Ultra/EtherEZ and WD80*3 cards'
http://linuxdoc.org/HOWTO/Ethernet-HOWTO-3.html#ss3.5

You might want to try out the latest drivers. 
http://www.scyld.com/network/

Does your machine have more than one processor? Looks like you are trying
to build an smp kernel. Try building a kernel with no SMP support.

You could also try building the kernel with the source from kernel.org
instead of using the one supplied by redhat.

hth

bye :)
Anmol


On Fri, 17 Nov 2000, jeffrey wrote:

> Hi
> 
> I'm running RedHat 7.0 .I've been tryin to recompile
> my kernel to support a second NIC(an SMC Ultra) and when I do
>                  make  zImage
> the compile process starts but immediately stops with the following
> messages:
> 
> 
> >  > kgcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-
> >  > frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -D
> >  > UTS_MACHINE='"i386"' -c -o init/version.o init/version.c
> >  > make -C  kernel
> >  > make[1]: Entering directory `/usr/src/linux-2.2.16/kernel'
> >  > make all_targets
> >  > make[2]: Entering directory `/usr/src/linux-2.2.16/kernel'
> >  > kgcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-
> >  > frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386
> >  > -DEXPORT_SYMTAB -c ksyms.c
> >  > In file included from /usr/src/linux/include/linux/modversions.h:50,
> >  >                  from /usr/src/linux/include/linux/module.h:19,
> >  >                  from ksyms.c:14:
> >  > /usr/src/linux/include/linux/modules/i386_ksyms.ver:6: warning: `cpu_data' redef
> >  > ined
> >  > /usr/src/linux/include/asm/processor.h:96: warning: this is the location of the
> >  > previous definition
> >  > /usr/src/linux/include/linux/modules/i386_ksyms.ver:28: warning: `smp_num_cpus'
> >  > redefined
> >  > /usr/src/linux/include/linux/smp.h:77: warning: this is the location of the prev
> >  > ious definition
> >  > /usr/src/linux/include/linux/modules/i386_ksyms.ver:118: warning: `smp_call_func
> >  > tion' redefined
> >  > /usr/src/linux/include/linux/smp.h:83: warning: this is the location of the prev
> >  > ious definition
> >  > In file included from /usr/src/linux/include/linux/interrupt.h:51,
> >  >                  from ksyms.c:21:
> >  > /usr/src/linux/include/asm/hardirq.h:23: warning: `synchronize_irq' redefined
> >  > /usr/src/linux/include/linux/modules/i386_ksyms.ver:138: warning: this is the lo
> >  > cation of the previous definition
> >  > In file included from /usr/src/linux/include/linux/interrupt.h:52,
> >  >                  from ksyms.c:21:
> >  > /usr/src/linux/include/asm/softirq.h:75: warning: `synchronize_bh' redefined
> >  > /usr/src/linux/include/linux/modules/i386_ksyms.ver:142: warning: this is the lo
> >  > cation of the previous definition
> >  > /usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
> >  > In file included from ksyms.c:17:
> >  > /usr/src/linux/include/linux/kernel_stat.h:47: `smp_num_cpus' undeclared (first
> >  > use in this function)
> >  > /usr/src/linux/include/linux/kernel_stat.h:47: (Each undeclared identifier is re
> >  > ported only once
> >  > /usr/src/linux/include/linux/kernel_stat.h:47: for each function it appears in.)
> >  > make[2]: *** [ksyms.o] Error 1
> >  > make[2]: Leaving directory `/usr/src/linux-2.2.16/kernel'
> >  > make[1]: *** [first_rule] Error 2
> >  > make[1]: Leaving directory `/usr/src/linux-2.2.16/kernel'
> >  > make: *** [_dir_kernel] Error 2
> >  >
> >
> May someone help me.I've looked everywhere and I'm not getting anywhere.
> 
> Jeff
> 






More information about the Techtalk mailing list