LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2012, 07:07 AM   #1
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Get compilation error with Kernel 3.4.x


Dear All,

I try to compile the new stable kernel 3.4.1 but get errors. I have right now kernel 3.3.7, Slackware 64 bit current with multilib enabled (multilib is upgraded as well).

This is the error:

Code:
 LD      .tmp_vmlinux1
fs/built-in.o: In function `gfs2_lock':
file.c:(.text+0x401e5f): undefined reference to `dlm_posix_lock'
file.c:(.text+0x401e9c): undefined reference to `dlm_posix_unlock'
file.c:(.text+0x401ebd): undefined reference to `dlm_posix_get'
fs/built-in.o: In function `gdlm_cancel':
lock_dlm.c:(.text+0x414aa5): undefined reference to `dlm_unlock'
fs/built-in.o: In function `sync_unlock':
lock_dlm.c:(.text+0x414e4d): undefined reference to `dlm_unlock'
fs/built-in.o: In function `sync_lock':
lock_dlm.c:(.text+0x414fab): undefined reference to `dlm_lock'
fs/built-in.o: In function `gdlm_unmount':
lock_dlm.c:(.text+0x415580): undefined reference to `dlm_release_lockspace'
fs/built-in.o: In function `gdlm_lock':
lock_dlm.c:(.text+0x41622a): undefined reference to `dlm_lock'
fs/built-in.o: In function `gdlm_put_lock':
lock_dlm.c:(.text+0x416549): undefined reference to `dlm_unlock'
fs/built-in.o: In function `gdlm_mount':
lock_dlm.c:(.text+0x416936): undefined reference to `dlm_new_lockspace'
lock_dlm.c:(.text+0x416a43): undefined reference to `dlm_release_lockspace'
make: *** [.tmp_vmlinux1] Error 1
Any idea what may be wrong? I have redownload the kernel several time but still same error, I also tried with kernel 3.4.0.
 
Old 06-06-2012, 08:33 AM   #2
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Do you need GFS2 support? If so, you also need DLM.

See Filesystems > Distributed Lock Manager (DLM) during the kernel config process.
 
1 members found this post helpful.
Old 06-06-2012, 11:22 AM   #3
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Excuse the obvious, but don't forget kernel configuration step (make menuconfig, etc).
 
Old 06-06-2012, 01:22 PM   #4
kkady32
Member
 
Registered: Dec 2010
Distribution: Slackware64-current
Posts: 115

Rep: Reputation: 42
put CONFIG_DLM=m and CONFIG_GFS2_FS=m

http://comments.gmane.org/gmane.linux.kernel/1301181

Last edited by kkady32; 06-06-2012 at 01:25 PM.
 
Old 06-08-2012, 06:33 PM   #5
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Ok, I compiled without GFS2-support and it succeed. Thanks all for help.
 
Old 06-05-2013, 03:21 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by hf2046 View Post
Do you need GFS2 support? If so, you also need DLM.

See Filesystems > Distributed Lock Manager (DLM) during the kernel config process.
Just wanted to say thanks as this solved my compile issue just now -- though I disabled GFS support rather than DLM (for the time being at least).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error after kernel compilation parsist Linux - Newbie 2 08-24-2011 09:56 AM
kernel compilation error suresh.j Linux - Kernel 1 07-31-2010 11:45 AM
Kernel compilation error shariefbe Linux - Newbie 3 10-07-2009 06:39 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel compilation error bunty Linspire/Freespire 0 09-08-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration