unresolved symbol Problem

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

 



On Redhat 7.1 kernel, my module loads and work fine. I had to regenerate the 
kernel after applying kdb patch for debugging over serial link (patch applied
very nicely).

When I try to load mymodule with the new kernel I get following messages. Funny
thing is that I can see all the unresolved symbols in the System.map file
generated.

[root@karachi /root]# insmod mymodule.o
mymodule.o: unresolved symbol send_sig
mymodule.o: unresolved symbol __generic_copy_from_user
mymodule.o: unresolved symbol sock_sendmsg
mymodule.o: unresolved symbol schedule
mymodule.o: unresolved symbol scsi_unregister_module
mymodule.o: unresolved symbol scsi_register
mymodule.o: unresolved symbol strstr
mymodule.o: unresolved symbol sock_recvmsg
mymodule.o: unresolved symbol scsi_register_module
mymodule.o: unresolved symbol sock_release
mymodule.o: unresolved symbol sock_create
mymodule.o: unresolved symbol kernel_thread
mymodule.o: unresolved symbol scsi_unregister

I compile mymodule with following flags

cc -D__KERNEL__ -DMODULE -Wall -O2 -g -DGATHER_STATISTICS  -I.
-I/usr/src/linux/include -I/usr/include -I/usr/src/linux/drivers/scsi
ld -r file1.o file2.o file3.o mymodule.o

I have also tried

cc -D__KERNEL__ -DMODULE -Wall -O2 -DGATHER_STATISTICS  -I.
-I/usr/src/linux/include -I/usr/include -I/usr/src/linux/drivers/scsi

and tried

cc -D__KERNEL__ -DMODULE -Wall -O -g -DTRACE    -DGATHER_STATISTICS  -I.
-I/usr/src/linux/include -I/usr/include -I/usr/src/linux/drivers/scsi

What am I missing ?

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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