Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232335 - sys-kernel/{vanilla,gentoo}-sources-* - section mismatches
Summary: sys-kernel/{vanilla,gentoo}-sources-* - section mismatches
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 14:32 UTC by fturtle
Modified: 2008-08-28 18:10 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My kernel configuration file for gentoo-sources-2.6.25-r7 (.config,40.19 KB, text/plain)
2008-07-24 21:16 UTC, Otávio Cipriani
Details
Kernel Configuration for tuxonice-sources-2.6.26 (.config,48.90 KB, text/plain)
2008-07-26 12:15 UTC, Rahul Jain
Details
Kernel Build Log for tuxonice-sources-2.6.26 (kern.log,63.41 KB, text/plain)
2008-07-26 12:15 UTC, Rahul Jain
Details
Warnings during the compile process for tuxonice-sources-2.6.26 (errors.txt,2.73 KB, text/plain)
2008-07-26 12:17 UTC, Rahul Jain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fturtle 2008-07-19 14:32:01 UTC
During kernel build, I received message of section mismatches in kernel

WARNING: modpost: Found 5 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'

This is happening with every kernel source I've tried from default gentoo-sources to vanilla-sources 2.6.19.7
Note that testing has also shown the same error using the 2.6.26 vanilla-sources

Reproducible: Always

Steps to Reproduce:
1.build kernel
2.
3.



Expected Results:  
No Errors or Warning Messages

Don't know if the problem is related but unable to get sound operational using snd_hda_intel kernel drivers

Emerge --Info
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r6 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Timestamp of tree: Thu, 17 Jul 2008 23:06:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi amd64 dbus hal ipv6 kdeenablefinal kerberos multilib nls opengl symlink threads unicode xinerama" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbcon i810 nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-19 14:45:08 UTC
(In reply to comment #0)
> WARNING: modpost: Found 5 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'

And what was the output of that command? We could hardly be expected to act without some more of these "full details" now could we? :)

> This is happening with every kernel source I've tried from default
> gentoo-sources to vanilla-sources 2.6.19.7

Please note that apart from you, no one knows what "default gentoo-sources" is.

> Don't know if the problem is related but unable to get sound operational using
> snd_hda_intel kernel drivers

That's very likely entirely unrelated (and is a well known configuration problem that you can probably solve yourself after browsing the appropriate forums, like forums.gentoo.org, or perhaps <irc://chat.freenode.net/#gentoo>.
Comment 2 fturtle 2008-07-20 12:50:00 UTC
These are the warnings/errors from make DEBUG=y

1) WARNING: arch/x86/kernel/built-in.o(.data+0x5d0): Section mismatch in reference from the variable cpu_vsyscall_notifier_nb.11540 to the function .cpuinit.text:cpu_vsyscall_notifier()
The variable cpu_vsyscall_notifier_nb.11540 references
the function __cpuinit cpu_vsyscall_notifier()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

2) WARNING: arch/x86/kernel/built-in.o(.data+0x5d0): Section mismatch in reference from the variable cpu_vsyscall_notifier_nb.11540 to the function .cpuinit.text:cpu_vsyscall_notifier()
The variable cpu_vsyscall_notifier_nb.11540 references
the function __cpuinit cpu_vsyscall_notifier()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

3) WARNING: arch/x86/kernel/built-in.o(.data+0x5d0): Section mismatch in reference from the variable cpu_vsyscall_notifier_nb.11540 to the function .cpuinit.text:cpu_vsyscall_notifier()
The variable cpu_vsyscall_notifier_nb.11540 references
the function __cpuinit cpu_vsyscall_notifier()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

4) fs/autofs4/symlink.c: In function 'autofs4_follow_link':
fs/autofs4/symlink.c:18: warning: passing argument 2 of 'nd_set_link' discards qualifiers from pointer target type

5) fs/cifs/dir.c: In function 'cifs_ci_compare':
fs/cifs/dir.c:583: warning: passing argument 1 of '__memcpy' discards qualifiers from pointer target type
fs/cifs/dir.c:583: warning: passing argument 1 of '__builtin_memcpy' discards qualifiers from pointer target type

6) fs/cifs/asn1.c: In function 'asn1_oid_decode':
fs/cifs/asn1.c:403: warning: comparison is always false due to limited range of data type

7) WARNING: drivers/base/built-in.o(.data+0xb20): Section mismatch in reference from the variable topology_cpu_callback_nb.11148 to the function .cpuinit.text:topology_cpu_callback()
The variable topology_cpu_callback_nb.11148 references
the function __cpuinit topology_cpu_callback()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

8) drivers/net/tun.c: In function 'tun_chr_aio_read':
drivers/net/tun.c:442: warning: passing argument 3 of 'tun_put_user' discards qualifiers from pointer target type
drivers/net/tun.c: In function 'tun_chr_aio_write':
drivers/net/tun.c:341: warning: passing argument 2 of 'tun_get_user' discards qualifiers from pointer target type

9) drivers/pci/search.c: In function 'pci_find_slot':
drivers/pci/search.c:135: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:506)
drivers/pci/search.c: At top level:
drivers/pci/search.c:478: warning: 'pci_find_device' is deprecated (declared at drivers/pci/search.c:283)
drivers/pci/search.c:478: warning: 'pci_find_device' is deprecated (declared at drivers/pci/search.c:283)
drivers/pci/search.c:479: warning: 'pci_find_slot' is deprecated (declared at drivers/pci/search.c:132)
drivers/pci/search.c:479: warning: 'pci_find_slot' is deprecated (declared at drivers/pci/search.c:132)

10) WARNING: drivers/built-in.o(.data+0xb340): Section mismatch in reference from the variable topology_cpu_callback_nb.11148 to the function .cpuinit.text:topology_cpu_callback()
The variable topology_cpu_callback_nb.11148 references
the function __cpuinit topology_cpu_callback()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

11) WARNING: modpost: Found 14 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'

This is just the make command - it continues with these from make modules

1) fs/cifs/asn1.c: In function 'asn1_oid_decode':
fs/cifs/asn1.c:403: warning: comparison is always false due to limited range of data type

Appears as a duplicate of warning 6 during initial make.

2) net/ipv4/netfilter/ipt_ULOG.c: In function 'ipt_ulog_packet':
net/ipv4/netfilter/ipt_ULOG.c:213: warning: passing argument 1 of '__net_timestamp' discards qualifiers from pointer target type

3) net/netfilter/xt_time.c: In function 'time_mt':
net/netfilter/xt_time.c:173: warning: passing argument 1 of '__net_timestamp' discards qualifiers from pointer target type

4) WARNING: drivers/char/tpm/tpm_nsc.o(.init.text+0xd4): Section mismatch in reference from the function init_module() to the function .devexit.text:tpm_nsc_remove()
The function __init init_module() references
a function __devexit tpm_nsc_remove().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
tpm_nsc_remove() so it may be used outside an exit section.

Performed clean install to see if the problem was result of initial attempt that went bad

my current emerge --info
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.2.3, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r6 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Timestamp of tree: Thu, 17 Jul 2008 23:06:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/archives/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"       
Comment 3 Mike Pagano gentoo-dev 2008-07-24 17:36:59 UTC
May I see your .config, please?
Comment 4 Otávio Cipriani 2008-07-24 21:16:23 UTC
Created attachment 161311 [details]
My kernel configuration file for gentoo-sources-2.6.25-r7

This kernel configuration file generates several section mismatches.
Comment 5 Rahul Jain 2008-07-26 12:14:27 UTC
I have one section mismatch with tuxonice-sources-2.6.26. Attaching my config, kernel build log, and the errors and warnings generated. My emerge --info is:

Portage 2.2_rc3 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-tuxonice i686)
=================================================================
System uname: Linux-2.6.26-tuxonice-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.0
Timestamp of tree: Sat, 26 Jul 2008 09:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="hi en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/mpd /usr/local/portage/layman/zen-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt css ctype cups curl curlwrappers cxx dbus dga djvu dri dts dvd dvdr esd exif fam fbcon ffmpeg flac fontconfig fortran gd gdbm gif gimp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtkhtml hal hddtemp iconv ieee1394 imagemagick ipv6 isdnlog java java6 javascript joystick jpeg jpeg2k libnotify lm_sensors mad midi mmx mono motif mp3 mpeg mudflap ncurses nls nptl nptlonly ogg openmp oss pam pcmcia pcre perl png posix ppds pppd python quicktime readline real reflection samba scanner session smp sndfile spell spl sse sse2 sse3 ssl startup-notification svg svga syslog tcpd theora threads tiff truetype type1 unicode usb v4l v4l2 vcd vim-syntax vorbis wavpack win32codecs wmf x86 xcomposite xinerama xml xorg xpm xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hi en" USERLAND="GNU" VIDEO_CARDS="i810 v4l fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Rahul Jain 2008-07-26 12:15:14 UTC
Created attachment 161408 [details]
Kernel Configuration for tuxonice-sources-2.6.26
Comment 7 Rahul Jain 2008-07-26 12:15:47 UTC
Created attachment 161410 [details]
Kernel Build Log for tuxonice-sources-2.6.26
Comment 8 Rahul Jain 2008-07-26 12:17:47 UTC
Created attachment 161412 [details]
Warnings during the compile process for tuxonice-sources-2.6.26
Comment 9 Mike Pagano gentoo-dev 2008-08-28 18:10:34 UTC
Section matches are generally harmless and are in many kernel versions and seem to come and go. Please feel free to take these upstream at http://bugzilla.kernel.org.