Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77186 - Svgalib doesn't work with 2.6.10 kernel
Summary: Svgalib doesn't work with 2.6.10 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-01-08 16:48 UTC by Lucho[FLCL]
Modified: 2005-01-13 11:39 UTC (History)
4 users (show)

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


Attachments
svgalib-1.9.19-devfs.patch (drop-symlink-creation.patch,498 bytes, patch)
2005-01-09 09:13 UTC, Daniel Drake (RETIRED)
Details | Diff
svgalib.devfs (svgalib.devfs,219 bytes, text/plain)
2005-01-09 09:16 UTC, Daniel Drake (RETIRED)
Details
ebuild fix (svgalib-ebuild-fix,951 bytes, patch)
2005-01-09 09:19 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lucho[FLCL] 2005-01-08 16:48:24 UTC
When I try to load the module svgalib_helper (essential for svgalib output), I receive the following error:

bash-2.05b# modprobe svgalib_helper
FATAL: Error inserting svgalib_helper (/lib/modules/2.6.10/kernel/misc/svgalib_helper.ko): Unknown symbol in module, or unknown parameter (see dmesg)

and the message in dmesg is:

svgalib_helper: Unknown symbol devfs_mk_symlink

The kernel was patched with -ck2, but I don't think this has to do with -ck. I reemerged svgalib with no success (both with USE="build" and USE="-build")

Reproducible: Always
Steps to Reproduce:
1.modprobe svgalib_helper
Actual Results:  
bash-2.05b# modprobe svgalib_helper
FATAL: Error inserting svgalib_helper
(/lib/modules/2.6.10/kernel/misc/svgalib_helper.ko): Unknown symbol in module,
or unknown parameter (see dmesg)

Expected Results:  
The module should be loaded

bash-2.05b# emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.2-r3, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.6.7-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -mmmx -msse -fprefetch-loop-arrays
-funroll-loops -pipe -maccumulate-outgoing-args -falign-functions=4
-fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CHOST="i686-pc-linux-gnu"
COMPILER=""
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/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -mmmx -msse -fprefetch-loop-arrays
-funroll-loops -pipe -maccumulate-outgoing-args -falign-functions=4
-fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm avi berkdb bitmap-fonts cdr crypt cups dga directfb encode
esd fam fb fbcon foomaticdb fortran gdbm gif gpm gtk2 guile imagemagick imlib
ipv6 java jpeg junit kde libg++ libwww mad mikmod mmx mmx2 motif mpeg ncurses
nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime
readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv
xvid zlib"
Comment 1 Peter Gordon (RETIRED) gentoo-dev 2005-01-08 23:41:36 UTC
This happens to me as well, using a vanilla 2.6.10 kernel patched with vesafb-tng.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-01-09 09:13:52 UTC
Created attachment 48024 [details, diff]
svgalib-1.9.19-devfs.patch

Remove the symlink creation...
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-01-09 09:16:10 UTC
Created attachment 48025 [details]
svgalib.devfs

...and reimplement it in userspace
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-01-09 09:19:29 UTC
Created attachment 48028 [details, diff]
ebuild fix
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-01-09 09:19:53 UTC
vapier: ok to commit this as -r2 ?
Comment 6 Lucho[FLCL] 2005-01-11 18:18:20 UTC
Any news? If you want I can try the patches myself, just give me some hints on how to patch what I have to patch ;)

Thanks for the work so far!
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-01-12 11:43:16 UTC
in portage
Comment 8 Joerg Schaible 2005-01-13 11:15:20 UTC
svgalib is not compilable anymore, since applying the patch fails ... :(



>>> emerge (3 of 3) media-libs/svgalib-1.9.19-r1 to /
>>> md5 src_uri ;-) svgalib-1.9.19.tar.gz
>>> Unpacking source...
>>> Unpacking svgalib-1.9.19.tar.gz to /volatile/portage/svgalib-1.9.19-r1/work
7G  [ ok ]g svgalib-1.9.19-gentoo.patch ...
7G  [ ok ]g svgalib-1.9.19-linux2.6.patch ...
7G  [ ok ]g svgalib-1.9.18-utils-include.patch ...
7G  [ ok ]g svgalib-1.9.18-lrmi-gentoo-cflags.patch ...
7G  [ ok ]g svgalib-1.9.19-pic.patch ...
7G  [ ok ]g svgalib-1.9.19-dont-touch-ld.conf.patch ...
7G  [ ok ]g svgalib-1.9.19-pci-get-class.patch ...
 * Applying svgalib-1.9.19-devfs.patch ...

 * Failed Patch: svgalib-1.9.19-devfs.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /volatile/portage/svgalib-1.9.19-r1/temp/svgalib-1.9.19-devfs.patch-20066.out




PATCH COMMAND:  patch -p4 -g0 < /usr/portage/media-libs/svgalib/files/svgalib-1.9.19-devfs.patch

======================================
missing header for unified diff at line 8 of patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|No longer available in Linux 2.6.10
|
|- Daniel Drake <dsd@gentoo.org>
|
|diff -urNp svgalib-1.9.19/kernel/svgalib_helper/main.c svgalib-dsd/kernel/svgalib_helper/main.c
|--- svgalib-1.9.19/kernel/svgalib_helper/main.c        2004-05-07 10:10:22.000000000 +0100
|+++ svgalib-dsd/kernel/svgalib_helper/main.c   2005-01-09 18:25:13.094026296 +0000
--------------------------
No file to patch.  Skipping patch.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2005-01-13 11:39:22 UTC
This is fixed in cvs, just emerge sync again :)