kernel module: unresolved symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I urgently need to setup a demo with a kernel module I programmed
recently.   Unfortunately, many things of my environment changed since
run last time.  

The problem: I get the following output whenever the kernel module
should be loaded:

promethos_WV.o: unresolved symbol vfree_R2fd1d81c
promethos_WV.o: unresolved symbol vsnprintf_Rb81a20a5
promethos_WV.o: unresolved symbol get_fast_time_R60743022
promethos_WV.o: unresolved symbol printk_R1b7d4074
promethos_WV.o: unresolved symbol __vmalloc_R79995c5b

I compile the module with gcc 2.95.4 and the following parameters:
CFLAGS = -x c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
CFLAGS+= -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
CFLAGS+= -march=i686 -DMODULE -DMODVERSIONS
CFLAGS+= -include $(LINUX)/include/linux/modversions.h
CFLAGS+= -D__KERNEL__

I link the module with ld 
GNU ld version 2.13.90.0.10 20021010 Debian GNU/Linux

and option "-r", i.e.

  ld -r -o promethos_WV.o promethos_wv.o

Since it's very urgent for me to solve the problem, I would be very
happy for any support!

Thanks in advance,

wbr,
Lukas
-- 
Lukas Ruf
http://www.lpr.ch                                http://www.maremma.ch
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux