View previous topic :: View next topic |
Author |
Message |
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Tue Mar 09, 2004 10:54 am Post subject: Compiling error |
|
|
dear all
i have 2.6.3 on my system and additionally i emerge the 2..4.22 sources. then i used genkernel to compile the 2.4.22. everything fine.
afterwards i wanted to configure the 2.4.22 by myself and it worked (the compiling), but i couldnt boot. the i wanted to start the old 2.4.22 kernel again (the genkernel version) and i got loads of errormessages.
anyway, i tried to compile the kernel again with m own .config an now i always geht error messages:
----------------
make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r7/arch/i386/math-emu'
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r7/arch/i386/math-emu'
gcc -E -C -P -I/usr/src/linux-2.4.22-gentoo-r7/include -imacros /usr/src/linux-2.4.22-gentoo-r7/include/linux/config.h -imacros /usr/src/linux-2.4.22-gentoo-r7/include/asm-i386/segment.h -imacros /usr/src/linux-2.4.22-gentoo-r7/include/asm-i386/page_offset.h -Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux-2.4.22-gentoo-r7/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/systrace/str.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o drivers/media/media.o drivers/input/inputdrv.o drivers/sensors/sensor.o arch/i386/math-emu/math.o \
net/network.o \
grsecurity/grsec.o \
/usr/src/linux-2.4.22-gentoo-r7/arch/i386/lib/lib.a /usr/src/linux-2.4.22-gentoo-r7/lib/lib.a /usr/src/linux-2.4.22-gentoo-r7/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
fs/fs.o(.text+0x264f1): In function `nfsacl_decode':
: undefined reference to `posix_acl_alloc'
fs/fs.o(.text+0x6841c): In function `nfs3_proc_getacl':
: undefined reference to `posix_acl_equiv_mode'
fs/fs.o(.text+0x68752): In function `nfs3_proc_setacl':
: undefined reference to `posix_acl_from_mode'
fs/fs.o(.text+0x6addf): In function `nfs_getxattr':
: undefined reference to `posix_acl_to_xattr'
fs/fs.o(.text+0x6ae8a): In function `nfs_setxattr':
: undefined reference to `posix_acl_from_xattr'
fs/fs.o(.text+0x76586): In function `nfsd3_proc_getacl':
: undefined reference to `posix_acl_from_mode'
make: *** [vmlinux] Error 1
----------
i checked the .config several times, no chages.
does this error mean that something is missing? do i have to make a emerge sync again? can there be a conflict between the 2.6.3 and 2.4.22 sources ? of course the two kernel sources are in separeted paths and the link "linux" was adjusted.
i aks for some hints.
many regards
dscha |
|
Back to top |
|
|
nuke n00b
Joined: 14 Sep 2003 Posts: 30
|
Posted: Tue Mar 09, 2004 7:32 pm Post subject: |
|
|
Maybe genkernel doesn't do "make clean" ? It looks like fs.o is stale. Try doing "make clean" in /usr/src/linux-2.4* and then genkernel again.
Good luck,
-B. |
|
Back to top |
|
|
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Thu Mar 11, 2004 12:01 am Post subject: |
|
|
hi nuke
i did not use genkernel and i dont want to use it.
Genrkernel was only to get a first version very quickly.
regards
dscha |
|
Back to top |
|
|
nuke n00b
Joined: 14 Sep 2003 Posts: 30
|
Posted: Thu Mar 11, 2004 5:31 pm Post subject: |
|
|
Regardless, I bet you still need to 'make clean' in the kernel dir.
Cheers,
-B. |
|
Back to top |
|
|
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Mon Mar 15, 2004 2:06 pm Post subject: |
|
|
i made "make clean", no change. maybe i have some conifguration error or i mixed up the .config of the kernel (what i dont believe)
any other ideas?
regards
dscha |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu Mar 18, 2004 9:51 pm Post subject: |
|
|
Ahh looks like you need to make it _really_ clean!! Try:
Code: | cp .config working_config
make mrproper
cp working_config .config
make dep etc... |
This solves the majority of undefined reference kernel compile errors. If it doesn't work, the usual course of action is to try vanilla sources and to start reading the linux kernel mailing lists.... |
|
Back to top |
|
|
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Thu Mar 18, 2004 10:23 pm Post subject: |
|
|
seems to work now. many thanks.
regards
dscha |
|
Back to top |
|
|
|