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
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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 1.4.3.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -fPIC -fomit-frame-pointer -fmove-all-movables -freduce-all-givs"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
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"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs userpriv usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.linux.no/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://gentoo.linux.no/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
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 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
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
http://dev.gentoo.org/~brad_mssw/kernel_patches/2.6.0/genpatches-0.3/

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.

-Brad