Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31846 - kernel-2.6 module sk98lin won't load because of missing symbol ip_compute_csum
Summary: kernel-2.6 module sk98lin won't load because of missing symbol ip_compute_csum
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: (DEPRECATED)
Depends on:
Reported: 2003-10-23 13:59 UTC by Mikko Tiihonen
Modified: 2003-10-30 05:50 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Tiihonen 2003-10-23 13:59:08 UTC
In development-sources-2.6.0_beta[78]:

The sk98lin giga-ethernet driver builds without warnings but cannot be loaded
because it cannot find the symbol ip_compute_csum. The message in
/var/log/messages is: sk98lin: Unknown symbol ip_compute_csum

This is because the include/asm-x86_64/checksum.h declares the variable as
extern, but doesn't EXPORT_SYMBOL it (as alpha does for example). The i386 on
the othe hand has the ip_compute_csum as an inline function which is why it
doesn't need to be inlined.

btw. the same problem occurs also for the module ipt_REJECT.

Reproducible: Always
Steps to Reproduce:
1. install development-sources-2.6.0_beta8
2. enable sk98lin or ipt_REJECT as a module
3. try to load the module

Actual Results:  
The module didn't load but complained about missing ip_compute_csum symbol.

Expected Results:  
The module was loaded into the kernel.

Portage 2.0.49-r15 (default-amd64-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.6.0-test8)
System uname: 2.6.0-test8 x86_64 4
Gentoo Base System version
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O3 -fPIC -fomit-frame-pointer -fmove-all-movables -freduce-all-givs"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
FEATURES="sandbox ccache autoaddcvs userpriv usersandbox"
USE="amd64 oss 3dnow apm avi crypt -cups encode foomaticdb gif -java jpeg libg++
libwww mikmod mmx mpeg ncurses nls pdflib png -qt quicktime sdl spell sse
truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline ruby X gpm tcpd pam
ssl perl python imlib oggvorbis opengl mozilla gnome gtk doc ethereal freetype
gtk2 mozsvg -cups -java -qt -esd -kde -arts -svga -motif"
Comment 1 Kris Kersey (RETIRED) gentoo-dev 2003-10-23 19:11:04 UTC
This driver does compile into the kernel fine though.  I'm using right now
on test8.
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2003-10-23 22:58:38 UTC
While we don't officially support development-sources, we'll see what we
can find out for you.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-10-24 04:39:33 UTC
As you've pretty much outlined the problem, and as this is upstream, please
post this over to the LKML.
Comment 4 Mikko Tiihonen 2003-10-30 02:37:47 UTC
I sent a mail to and they replied that they already have the fix
in their patch set, but Linus hasn't accepted it yet (and won't accept non-x86
fixes for a while).

Could it be possible to apply the patches from
on top of the development-sources for amd64 or maybe create a new amd64-sources
for it?
Comment 5 Brad House 2003-10-30 05:50:20 UTC
this is already fixed on the livecd, and is in genpatches-2.6-0.3.tar.bz2
we actually fixed it before there was a patch for it.
If you bump the GPV to 0.3 in the development-sources-2.6.0_beta9.ebuild
you'll get that patch.  Also, a gentoo-dev-sources is about to be
released which will bring development-sources back down to vanilla,
and include all my patches.

To see my current patches, look in

Also, it appears that as of -test9-bk3 that sk98lin patch has been accepted
into the kernel.

Also, I've been denied adding amd64-sources, and told to just put my
patches in gentoo-dev-sources.  If gentoo-dev-sources becomes like
gentoo-sources is for the 2.4 kernel, I'll have to split it though.