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.
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
The module didn't load but complained about missing ip_compute_csum symbol.
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 184.108.40.206
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"
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"
This driver does compile into the kernel fine though. I'm using right now
While we don't officially support development-sources, we'll see what we
can find out for you.
As you've pretty much outlined the problem, and as this is upstream, please
post this over to the LKML.
I sent a mail to x86-64.org 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 ftp://ftp.x86-64.org/pub/linux/v2.6/
on top of the development-sources for amd64 or maybe create a new amd64-sources
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.