building 2.4.31 for a non-smp system
I'm upgrading a box from 2.4.23 to .31, but I'm seeing lots of errors along these lines:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.31/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=tty_ioctl
-DEXPORT_SYMTAB -c tty_ioctl.c
In file included from /usr/src/linux-2.4.31/include/linux modversions.h:177,
from /usr/src/linux-2.4.31/include/linux/module.h:22,
from tty_ioctl.c:21:/usr/src/linux-2.4.31/include/linux/modules/ksyms.ver:576:1: warning:
"del_timer_sync" redefined
In file included from /usr/src/linux-2.4.31/include/linux ext3_fs_sb.h:20,
from /usr/src/linux-2.4.31/include/linux/fs.h:715,
from /usr/src/linux-2.4.31/include/linux
capability.h:17,
from /usr/src/linux-2.4.31/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.31/include/linux/sched.h:9,
from tty_ioctl.c:14:/usr/src/linux-2.4.31/include/linux/timer.h:30:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.31/include/linux modversions.h:177,
from /usr/src/linux-2.4.31/include/linux/module.h:22,
from tty_ioctl.c:21:/usr/src/linux-2.4.31/include/linux/modules/ksyms.ver:660:1: warning:
"set_cpus_allowed" redefined
In file included from tty_ioctl.c:14:/usr/src/linux-2.4.31/include/linux/sched.h:159:1: warning: this is the location of the previous definition
The redefinition of "set_cpus_allowed" and "del_timer_sync" only happen
when CONFIG_SMP isn't set. I guess I could simply compile with CONFIG_SMP, but surely something's not right here?
Follow-up:
OK, I've built the kernel with SMP support, and I'm not seeing the above any longer. However, when I tried to load module nfsd, I get:
/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: unresolved symbol kernel_flag_cacheline /lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: unresolved symbol atomic_dec_and_lock /lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: insmod /lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o failed /lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: insmod nfsd failed
Per Jessen, Zurich
Quoted 24 lines · Per Jessen
I'm upgrading a box from 2.4.23 to .31, but I'm seeing lots of errors along these lines:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.31/include -Wall
(quoted diff) +0
-4-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=tty_ioctl -DEXPORT_SYMTAB -c tty_ioctl.cIn file included from
/usr/src/linux-2.4.31/include/linuxmodversions.h:177,from /usr/src/linux-2.4.31/include/linux/module.h:22, from tty_ioctl.c:21:
/usr/src/linux-2.4.31/include/linux/modules/ksyms.ver:576:1: warning:
"del_timer_sync" redefined
...
The redefinition of "set_cpus_allowed" and "del_timer_sync" only happen whenCONFIG_SMPisn't set.
I guess I could simply compile withCONFIG_SMP, but surely something's not right here?Follow-up:
OK, I've built the kernel with SMP support, and I'm not seeing the above any longer. However, when I tried to load module nfsd, I get:
Quoted 7 lines
/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: unresolved symbolkernel_flag_cacheline/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: unresolved symbolatomic_dec_and_lock/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: insmod/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.ofailed/lib/modules/2.4.31/kernel/net/sunrpc/sunrpc.o: insmod nfsd failed
Please send:
- your .config
- the output of "bash scripts/ver_linux"
Quoted 1 line
Per Jessen, Zurich
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed