LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2011, 04:22 AM   #1
lefteris80
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
Question WARNING: modpost: found X section mismatch(es) !?!


Hello everybody, thank you for reading this post hoping that you bring along some very helpful ideas.

I am trying to compile and install a new kernel. I have downloaded the 2.6.37 version from kernel.org and I have extracted it in usr/src/linux-2.6.37/ folder.

I have tried to compile it and install it according to the instruction given in the following web site and which I found very useful: http://www.digitalhermit.com/linux/K...WTO.html#INTRO

Nevertheless, I am encountering some problems during the make install modules process as I get some warnings (i.e. The title of this post).

I thought to ignore the warnings and continue by copying the modules in /lib/modules/linux-2.6.37 but this is not possible since at that directory there is no folder created with the new kernel I am trying to install and thus I get a msg saying: FATAL: could not load /lib/modules/2.6.37/modules.dep.

The warning message: WARNING: modpost: found X section mismatch(es) suggests to run a make CONFIG_DEBUG_SECTION_MISMATCH=y.
At the moment I am running a make again and saving the output to a file so that I can see later on what are the mismatches that I get. In any case we are talking about more than 50 mismatches so I am wondering if these mismatches are not that serious and the problem I cannot install and copy the modules is something else that I am missing as I am new to Linux.

Any help would be appreciated!

Last edited by lefteris80; 01-17-2011 at 09:02 AM. Reason: clarify better the problem
 
Old 01-17-2011, 09:07 AM   #2
lefteris80
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Some examples of the warning messages I get during the compilation process of the 2.6.37 kernel are:

WARNING: drivers/net/tokenring/madgemc.o(.data+0x0): Section mismatch in reference from the variable madgemc_driver to the variable .init.data:madgemc_adapter_ids
The variable madgemc_driver references
the variable __initdata madgemc_adapter_ids
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: drivers/video/geode/gx1fb.o(.data+0x50): Section mismatch in reference from the variable gx1fb_driver to the function .init.text:gx1fb_probe()
The variable gx1fb_driver references
the function __init gx1fb_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: drivers/video/geode/gx1fb.o(.data+0x50): Section mismatch in reference from the variable gx1fb_driver to the function .init.text:gx1fb_probe()
The variable gx1fb_driver references
the function __init gx1fb_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,

Last edited by lefteris80; 01-17-2011 at 09:09 AM.
 
  


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
Compile linux kernel error: WARNING: modpost: Found 1 section mismatch(es) xmzhu Linux - Kernel 9 04-29-2011 02:14 AM
Kernel Section Mismatch with regards to i386 C-Sniper Slackware 2 06-19-2009 12:12 AM
kernel modpost mismatch Undeadzz Linux - Software 0 02-03-2009 09:50 PM
What is a kernel section mismatch C-Sniper Linux - Kernel 4 08-10-2008 12:09 AM
WARNING: drivers/... - Section mismatch: dasoberdick Slackware 1 06-15-2007 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 PM.

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