Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Tue Mar 09, 2004 10:54 am    Post subject: Compiling error Reply with quote

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
View user's profile Send private message
nuke
n00b
n00b


Joined: 14 Sep 2003
Posts: 30

PostPosted: Tue Mar 09, 2004 7:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Thu Mar 11, 2004 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
nuke
n00b
n00b


Joined: 14 Sep 2003
Posts: 30

PostPosted: Thu Mar 11, 2004 5:31 pm    Post subject: Reply with quote

Regardless, I bet you still need to 'make clean' in the kernel dir.

Cheers,
-B.
Back to top
View user's profile Send private message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Mon Mar 15, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Thu Mar 18, 2004 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Thu Mar 18, 2004 10:23 pm    Post subject: Reply with quote

seems to work now. many thanks.

regards

dscha
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum