[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linrad] SVGALIB 1.9 working in Debian, (quick dirty fix )
I have just tried to install svgalib 1.9.19 in my Debian box. Compiling
and installing was ok but when ran "modprobe svgalib_helper", the error
was "-1 Invalid module format", as Kohjin said in a previous post.
The problem is that svgalib installs the file
instead of the right one for this kernel:
The "quick dirty fix" to solve the problem is:
1- Compile svgalib as usual:
to compile the demo test programs.
2- Copy the right kernel module to the right location. (I asume that
svgalib-1.9.19 is the compiling directory)
3- update the module dependencies:
4- load the module:
5- run the test programs
And that is all!
I have to investigate it slowly. I do not know why even if svgalib
generates both *.o and *.ko modules, it installs the *.o instead the *.ko.
I watched the screen carefully at the latest stages of the "make
install" of svgalib installation. I saw this command:
install -m 0644 -c svgalib_helper.o /lib/modules/2.6.6/kernel/misc ||
install -m 0644 -c svgalib_helper.ko /lib/modules/2.6.6/kernel/misc
It seems that it does this two commands with a "or" operator
command1 || command2
It means that if command1 is successfull, command2 will never be executed.
An extract from the bash manual:
The control operators `&&' and `||' denote AND lists and OR lists,
respectively. An AND list has the form
COMMAND1 && COMMAND2
COMMAND2 is executed if, and only if, COMMAND1 returns an exit status
An OR list has the form
COMMAND1 || COMMAND2
COMMAND2 is executed if, and only if, COMMAND1 returns a non-zero exit
Hope this helps, and sorry for the quick dirty fix.