LinuxQuestions.org
Visit Jeremy's Blog.
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 11-03-2010, 08:05 AM   #1
el_jauzaa
Member
 
Registered: Jun 2010
Location: indonesia
Distribution: Slackware 14.1
Posts: 101

Rep: Reputation: 17
Smile error while compiling kernel 2.6.36 in slackware 13.1 -current


hi slackers !

i have problem when i try to compile kernel 2.6.36 in my pc.

#make bzImage

after that i encounter an error like this :

Code:
scripts/kconfig/conf --silentoldconfig arch/x86/Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  IKCFG   kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
  LD      drivers/ata/built-in.o
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h                                                                                                                                        CC     init/version.o                                                                                                                                                                       
  LD      init/built-in.o                                                                                                                                                                      
  LD      .tmp_vmlinux1                                                                                                                                                                        
drivers/built-in.o: In function `init_module':
(.text+0x3d4b42): undefined reference to `lirc_register_driver'
drivers/built-in.o: In function `cleanup_module':
(.text+0x3d4bce): undefined reference to `lirc_unregister_driver'
make: *** [.tmp_vmlinux1] Error 1

please enlighten me.


best regards.
 
Old 11-03-2010, 08:19 AM   #2
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 187

Rep: Reputation: 39
Quote:
Originally Posted by el_jauzaa View Post
CC kernel/configs.o
LD kernel/built-in.o
LD drivers/ata/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'

GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
drivers/built-in.o: In function `init_module':
(.text+0x3d4b42): undefined reference to `lirc_register_driver'
drivers/built-in.o: In function `cleanup_module':
(.text+0x3d4bce): undefined reference to `lirc_unregister_driver'
make: *** [.tmp_vmlinux1] Error 1[/CODE]
Sometimes reading through the output message from make gives clues as to the problem. I suggest you take the advice of the warning above and try again.
 
Old 11-03-2010, 08:23 AM   #3
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,371

Rep: Reputation: 163Reputation: 163
Check your config and make sure that CONFIG_MODULES=yes is set.
 
Old 11-03-2010, 08:29 AM   #4
el_jauzaa
Member
 
Registered: Jun 2010
Location: indonesia
Distribution: Slackware 14.1
Posts: 101

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by mlangdn View Post
Check your config and make sure that CONFIG_MODULES=yes is set.
it's already 'yes'
 
Old 11-03-2010, 06:30 PM   #5
el_jauzaa
Member
 
Registered: Jun 2010
Location: indonesia
Distribution: Slackware 14.1
Posts: 101

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by udaman View Post
Sometimes reading through the output message from make gives clues as to the problem. I suggest you take the advice of the warning above and try again.
ok. after i run this :

make CONFIG_DEBUG_SECTION_MISMATCH=y

the error is :

Code:
WARNING: vmlinux.o(.data+0x4c4a0): Section mismatch in reference from the variable isp1362_driver to the function .init.text:isp1362_probe()
The variable isp1362_driver references
the function __init isp1362_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, 

WARNING: vmlinux.o(.data+0x529d0): Section mismatch in reference from the variable intel_mid_dma_pci to the function .devinit.text:intel_mid_dma_probe()
The variable intel_mid_dma_pci references
the function __devinit intel_mid_dma_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, 

WARNING: vmlinux.o(.data+0x529d4): Section mismatch in reference from the variable intel_mid_dma_pci to the function .devexit.text:intel_mid_dma_remove()
The variable intel_mid_dma_pci references
the function __devexit intel_mid_dma_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, 

  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `init_module':
(.text+0x3ec2a2): undefined reference to `lirc_register_driver'
drivers/built-in.o: In function `cleanup_module':
(.text+0x3ec32e): undefined reference to `lirc_unregister_driver'
make: *** [.tmp_vmlinux1] Error 1
please enlighten me.


best regards
 
Old 11-04-2010, 03:23 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,493

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
Try read this solution by Randy Dunlap: http://lkml.org/lkml/2010/11/4/8
 
Old 08-29-2012, 12:32 PM   #7
MWH
LQ Newbie
 
Registered: Dec 2009
Location: Colombo(SL)
Distribution: Fedora10 and 12
Posts: 22
Blog Entries: 3

Rep: Reputation: 0
Unhappy kernel compilation error

Hi,

I tried to compile 2.6.35.13 kernel as given in this tutorial but um getting an error like this
Code:
  AS      arch/x86/lib/semaphore_32.o
  CC      arch/x86/lib/string_32.o
  CC      arch/x86/lib/strstr_32.o
  AS      arch/x86/lib/thunk_32.o
  CC      arch/x86/lib/usercopy_32.o
  AR      arch/x86/lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 46 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/built-in.o: In function `sys_call_table':
(.rodata+0x728): undefined reference to `sys_strcpy'
make: *** [.tmp_vmlinux1] Error 1
What can I do to get rid of this?
 
Old 08-29-2012, 03:19 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,175

Rep: Reputation: Disabled
Quote:
Originally Posted by MWH View Post
Hi,

I tried to compile 2.6.35.13 ....
You are reviving a 2-year dead thread in the Slackware forum for no reason. From your signature it seems you are not even using Slackware. Open your own thread in your own distro's forum instead of violating the dead (I mean, violating LQ etiquette).

Eric
 
Old 08-29-2012, 08:36 PM   #9
MWH
LQ Newbie
 
Registered: Dec 2009
Location: Colombo(SL)
Distribution: Fedora10 and 12
Posts: 22
Blog Entries: 3

Rep: Reputation: 0
Talking

Quote:
You are reviving a 2-year dead thread in the Slackware forum for no reason. From your signature it seems you are not even using Slackware. Open your own thread in your own distro's forum instead of violating the dead (I mean, violating LQ etiquette).
Yeah I already have
 
  


Reply

Tags
kernelerror


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware 11:0: Error in Compiling 2.6 kernel Cire_08 Slackware 6 07-16-2008 10:49 PM
Slackware 10 error compiling kernel 2.6.7 nirvanix Slackware 3 05-29-2006 11:52 PM
Kernel compiling, how to get current settings? pit-peng Linux - Newbie 4 04-23-2005 01:03 PM
Compiling freetype for Slackware-current slaxnoob Slackware 1 06-14-2004 03:39 AM
COmpiling problems on slackware-current Anibal Slackware 5 04-09-2004 08:12 AM


All times are GMT -5. The time now is 12:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration