-   Linux - Desktop (
-   -   help! errors in compiling kernel (

wubai 05-26-2013 11:19 AM

help! errors in compiling kernel
Hi everybody!

I tried to have a taste of compiling kernel since I've been using linux for a while. I'm runing salix os 14.0, so i followed the instructions from the salix wiki:

downloaded kernel3.9.4
ln -s /usr/src/linux-3.9.4 /usr/src/linux
make mrproper
zcat /proc/config.gz > .config
make menuconfig [ I don't have a plan to tweak anything, like being said, just want to compile a new kernel for experence, so i didn't change anything]

then make, at this step there is always errors poped up:

fs/built-in.o: in function ‘gfs2_lock’ :
file.c:(.text+0x3f360f): ‘dlm_posix_lock’ Undefined references
file.c:(.text+0x3f364c): ‘dlm_posix_unlock’ Undefined references
file.c:(.text+0x3f366d): ‘dlm_posix_get’ Undefined references
fs/built-in.o:in function‘gdlm_cancel’ :
lock_dlm.c:(.text+0x407485): ‘dlm_unlock’ Undefined references
fs/built-in.o:in function‘gdlm_lock’ :
lock_dlm.c:(.text+0x407672): ‘dlm_lock’ Undefined references
fs/built-in.o:in function‘sync_unlock’ :
lock_dlm.c:(.text+0x407abd): ‘dlm_unlock’ Undefined references
fs/built-in.o:in function‘sync_lock’ :
lock_dlm.c:(.text+0x407c1b): ‘dlm_lock’ Undefined references
fs/built-in.o:in function‘gdlm_unmount’ :
lock_dlm.c:(.text+0x4087dc): ‘dlm_release_lockspace’ Undefined references
fs/built-in.o:in function‘gdlm_put_lock’ :
lock_dlm.c:(.text+0x408d7a): ‘dlm_unlock’ Undefined references
fs/built-in.o:in function‘gdlm_mount’ :
lock_dlm.c:(.text+0x40913c): ‘dlm_new_lockspace’ Undefined references
lock_dlm.c:(.text+0x409249): ‘dlm_release_lockspace’
make: *** [vmlinux] error 1

the terms "Undefined references" and "in function" above are chinese, I translated them through google translate, not sure they are accurate

Can anyone give me a hint what should I do to compile a new kernel? I have never used the newest kernel, for the stability's sake or whatever, really want to try some cutting edges for a change :)

Any advice would be aapreciated.

business_kid 05-26-2013 12:11 PM

I'd look in and tweak a bit.

Now that you have the distro kernel config, a good approach might be to run
make localmodconfig
That gives you the modules in use, so make sure everything is connected and on before you run that. Distro kernels give you every module anyone might want.

If you google dlm_posix, you get hits. It puked. You're straight into learning! Have fun, and stop just before you tear your hair out.

ButterflyMelissa 05-26-2013 01:04 PM


and stop just before you tear your hair out
+1... :)

All times are GMT -5. The time now is 02:40 PM.