Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129320 - modprobe nvsound fails with: "nvsound.ko needs unknown symbol remap_page_range" + HOWTO solve
Summary: modprobe nvsound fails with: "nvsound.ko needs unknown symbol remap_page_rang...
Status: RESOLVED DUPLICATE of bug 119284
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-09 01:54 UTC by Gabor Wnuk
Modified: 2006-04-09 03:21 UTC (History)
0 users

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 Gabor Wnuk 2006-04-09 01:54:12 UTC
Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-b"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://distfiles.gentoo.org http://src.gentoo.pl http://gentoo.zie.pg.gda.pl http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlay"
SYNC="rsync://student.prz.rzeszow.pl/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib aiglx amr apic apm audiofile avi berkdb bitmap-fonts bluetooth bzip2 canvas cdparanoia cdr cli cmov ctype cx8 dba de dga divx divx4linux dri dts dv dvb dvd dvdr dvdread eds emboss encode esd expat fastbuild ffmpeg flac foomaticdb force-cgi-redirect fortran ftp fxsr gd gdbm gif gimp gphoto2 gstreamer gtk gtk2 i8x0 imlib isdnlog java jpeg jpeg2k jpg kde libcaca libg++ libgsm libwww mad matroska mca mce memlimit mikmod mmx mmxext motif mp3 mpeg msr mtrr musepack ncurses nls nptl nsplugin ogg openal opengl oss pae pam pascal pat pcre pdf pdflib perl pge png posix pppd pse pse36 pu python qt quicktime readline real samba sdl sep session simplexml sndfile soap sockets spl sse ssl svg syscall tcpd tiff tokenizer truetype truetype-fonts tsc type1-fonts udev usb userlocales v4l v4l2 vcd vme vorbis win32codecs x264 xml xmms xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS

--------------------------------------------------------------------
SUMMARY:
--------------------------------------------------------------------
After emerge nvidia-sound, nvsound driver doesn't load. Following error occurs at the end of emerge:

(...)
>>> Original instance of package unmerged safely.
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16-gentoo-r1
 * Updating module dependencies for 2.6.16-gentoo-r1 ...
WARNING: //lib/modules/2.6.16-gentoo-r1/kernel/sound/oss/nvsound.ko needs unknown symbol remap_page_range
WARNING: //lib/modules/2.6.16-gentoo-r1/misc/nvsound.ko needs unknown symbol remap_page_range                                          [ ok ]
 * Adding module to moduledb.
 * If you want to restore your volume settings between sessions add this line to your
(...)

dmesg says:

(...)
nvsound: Unknown symbol remap_page_range
nvsound: Unknown symbol remap_page_range
(...)

--------------------------------------------------------------------
SUMMARY:
--------------------------------------------------------------------
How to solve?

You need to patch NFORCE-Linux-x86-1.0-0310-pkg1.run package as follows:

# sh NFORCE-Linux-x86-1.0-0310-pkg1.run +x
# cd NFORCE-Linux-x86-1.0-0310-pkg1
# nano nvsound.patch

then paste this code:

--- nvsound/main/conftest.sh.old        2006-01-17 15:13:03.816795328 +0100
+++ nvsound/main/conftest.sh    2006-01-17 15:14:06.446274200 +0100
@@ -12,9 +12,17 @@
 OUTPUT=$3

 CFLAGS="-D__KERNEL__ \
+-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\"
 -nostdinc -isystem $ISYSTEM \
 -Werror -Wimplicit-function-declaration"

+touch conftest$$.c
+$CC -Wno-attributes -c conftest$$.c > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    CFLAGS="$CFLAGS -Wno-attributes"
+fi
+rm -f conftest$$.*
+
 if [ "$OUTPUT" != "$SOURCES" ]; then
     CFLAGS="$CFLAGS -I$OUTPUT/include2 -I$OUTPUT/include \
 -I$HEADERS -I$HEADERS/asm/mach-default"

save it, and patch NFORCE package with:

# patch -p0 < nvsound.patch

Then install it:

# ./nforce-install

Install only nvsound module, without nvnet driver. Everything should be fine.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-09 03:21:56 UTC

*** This bug has been marked as a duplicate of 119284 ***