* Patrick Goldbronn - SYSCO/LGLS <[EMAIL PROTECTED]> [010330 04:41]:
> I have the same trouble than Alexandros with a mandrake 6.1 and kernel
> 2.2.13 (with plex86-2001-0302-1106.tar.gz)
Patrick, when I was writing a kernel module myself a week ago, I found
this same problem. I was less than thrilled, too. *My* solution was
tweaking the Makefile to include the correct set of headers for my
running kernel.
The GNU libc library (aka glibc, glibc 2, libc 6, and more) contains
with it the kernel headers against which it was compiled. (For Debian
unstable systems, this is 2.4.2-pre2, last week. For you, I haven't got
a clue, but you should be able to find out by editing
/usr/include/linux/version.h.)
Now to the solution: I installed the kernel headers for my running
kernel somewhere else (don't muck with /usr/include, lest other
software fail to run quite correctly...) and used a
-I/usr/src/kernel-headers-2.2.18/include switch to gcc (through the
Makefile). I think I also required the -nostdinc switch -- YMMV.
(Installing the kernel headers was *very* easy thanks to Debian's
kernel-package routines; perhaps just having the kernel source around is
sufficient.)
Or, you could check the archives of this list, if there are any :), and
see if turning off (on?) KERNEL_MOD_VERSIONS (I think) did the trick for
anyone else.
> ./../kernel/plex86.o: unresolved symbol proc_register
> ./../kernel/plex86.o: unresolved symbol remap_page_range
> ./../kernel/plex86.o: unresolved symbol __generic_copy_from_user
> ./../kernel/plex86.o: unresolved symbol schedule
> ./../kernel/plex86.o: unresolved symbol unregister_chrdev
> ./../kernel/plex86.o: unresolved symbol register_chrdev
> ./../kernel/plex86.o: unresolved symbol __get_free_pages
> ./../kernel/plex86.o: unresolved symbol vfree
> ./../kernel/plex86.o: unresolved symbol boot_cpu_data
> ./../kernel/plex86.o: unresolved symbol free_pages
> ./../kernel/plex86.o: unresolved symbol proc_unregister
> ./../kernel/plex86.o: unresolved symbol vmalloc
> ./../kernel/plex86.o: unresolved symbol __verify_write
> ./../kernel/plex86.o: unresolved symbol mem_map
> ./../kernel/plex86.o: unresolved symbol proc_root
> ./../kernel/plex86.o: unresolved symbol sprintf
> ./../kernel/plex86.o: unresolved symbol printk
> ./../kernel/plex86.o: unresolved symbol __generic_copy_to_user
> The kernel module failed to load
--
Earthlink: The #1 provider of unsolicited bulk email to the Internet.