[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unresolved Symbol
On Sun, Jan 06, 2002 at 12:42:30AM -0800, Usman S. Ansari wrote:
> I am compiling kernel module with a command line
>
> cc -D__KERNEL__ -DMODULE -Wall -O2 -g -I. -I/usr/src/linux/include -c -o
> file1.o file1.c
> ld -r file1.o file 2.o file3.o modbinary.o
>
> Module loads and executes fine. After applying the serial kdb patch
> (patch applied nicely) and recompiling the kernel, I was getting lot of
> unresolved symbols, which I understood was due to MODVERSION bug. I have over
> come the problem. However now I am getting only one unresolved symbol
>
> [root@karachi]# insmod modbinary.o
> modbinary.o: unresolved symbol schedule
>
> when I do, I get
>
> [root@karachi /root]# cat /proc/ksyms | grep schedule
> c0122900 schedule_task_R2d6c3d04
> c0122b20 flush_scheduled_tasks_R7c3242b4
> c01150f0 do_schedule_R26171012
> c0109318 kern_schedule_Rb32aaa1b
> c0115030 schedule_timeout_R17d59d01
> c0203540 tcp_tw_deschedule_Rae427462
>
> I donot see schedule() function in the list above, even though this is from
> schd.c file. What can I do to resolve this problem.
Recompile the module against the patched sources, kdb might have made
the schedule() function some kind of macro.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635
Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
--
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/