Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47173 - the symbol of preempt_schedule exported by kernel is with a wrong version
Summary: the symbol of preempt_schedule exported by kernel is with a wrong version
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 20:00 UTC by Jack Bauer
Modified: 2004-06-02 18:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Bauer 2004-04-07 20:00:49 UTC
I compiled a kernel from gentoo-sources-2.4.25 with options of Symmetric Multi-processing support and Preemptible kernel. cat /proc/ksyms and find that preempt_schedule_R__ver_preempt_schedule, which shall be preempt_schedule_Rsmp_xxxxxxxx ( xxxxxxxx are hex digits). when I insmod the vmware driver vmhgfs.o, it complains that there's unresolved symbol "preempt_schedule". I replace EXPORT_SYMBOL(preempt_schedule) in /usr/src/linux/kernel/ksyms.c(line 479) with EXPORT_SYMBOL_NOVERS(preempt_schedule) and recompile the kernel. Then the vmhgfs.o can be insmoded successfully.  

Reproducible: Always
Steps to Reproduce:
1.configure the linux kernel of gentoo-sources-2.4.25 with options of Symmetric Multi-processing support ,Preemptible kernel and Set version on all module symbols.
2. compile the kernel and boot with it.
3. cat /proc/ksyms | grep preempt_schedule

Actual Results:  
preempt_schedule_R__ver_preempt_schedule

Expected Results:  
preempt_schedule_Rsmp_xxxxxxxx (xxxxxxxx are hex digits).

Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo-
r1)
=================================================================
System uname: 2.4.25-gentoo i686 Pentium III (Coppermine)
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://beer.ux6.net/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm 
gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla 
mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime 
readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Jason Cox (RETIRED) gentoo-dev 2004-04-09 08:58:00 UTC
Can you attach your config for us to look at?
And possibly disable Set version on all module symbols to see if that fixes it.
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-06-02 18:09:25 UTC
I'm assuming he found a fix already. Possibly by a kernel upgrade.