Summary: | svgalib_helper won't load with all_devices error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Walter Meinl <wuno> |
Component: | [OLD] Core system | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caster, pdenapo |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
patch for making all_devices parameter non static svgalib-1.9.24.ebuild with this patch added |
Description
Walter Meinl
2006-05-21 04:00:47 UTC
Created attachment 87190 [details]
emerge --info
I'm having the same trouble, but I'm not sure if it is related to udev (in fact, I'm using udev-087) modprobe svgalib_helper gives the message FATAL: Error inserting svgalib_helper (/lib/modules/2.6.16.18/misc/svgalib_helper.ko): Invalid argument I'm using linux-2.6.16.18 (with 2.6.16 headers) on a Gentoo x86 host. module-init-tools-3.2.2 (I've tested it also with 3.2.1) glibc 3.2.1 gcc-4.1.1 binutils-2.16.1 and dmesg muestra el mensaje svgalib_helper: falsely claims to have parameter all_devices In fact, I've also tried udev-079-r1 (the version that I was using before the upgrade), and it didn't work either. In my opinion, this issue is related to the upgrade of binutils. Which version of binutils are you using? (In reply to comment #3) > Which version of binutils are you using? > binutils-2.16.1-r2 marked x86 stable I've suceded to load svgalib_helper into the 2.6.16.18 kernel by comenting out the lines declaring the all_devices parameter in /kernel/svgalib_helper/main.c and building the module from the source: MODULE_PARAM(all_devices,"i") MODULE_PARAM_DESC(all_devices,....) Of course, this is just a temporary work around if you don't really need the all_devices parameter. a mistake in my previous report: I'm using glibc-2.4 and svgalib-1.9.24 I've succeded in fixing this bug! The solution is very simple: remove the static keyword in the line static int all_devices=0; in kernel/svgalib_helper/main.c (this causes the symbol not to be exported by the linker) I'm submitting a patch for this issue. Since don't have write access, please someone add this patch to portage. Created attachment 88297 [details, diff]
patch for making all_devices parameter non static
file name: all_devices_non_static.patch
Created attachment 88298 [details]
svgalib-1.9.24.ebuild with this patch added
fix looks good to me ... could you e-mail this to the upstream author please ? you can find his contact info at the bottom of: http://www.arava.co.il/matan/svgalib/ *** Bug 141090 has been marked as a duplicate of this bug. *** |