LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   UNDEFINED SYMBOL!! though the symbol defined in System.map (https://www.linuxquestions.org/questions/programming-9/undefined-symbol-though-the-symbol-defined-in-system-map-476438/)

raklo 08-22-2006 11:05 PM

UNDEFINED SYMBOL!! though the symbol defined in System.map
 
hi everybody,
I am writing a code to tweak the working of tty a bit.In my code i m using the function devpts_get_tty(int number) which is defined in <linux/devpts_fs.h> and it is also there in my System.map file.
But when i m compiling the program it is showing
devpts_get_tty, undefined symbol.

why is it showing such n error.do i need to explicitly do something other than #include ing the header file

ANY INPUT IS APPRECIATED.
waiting for reply
regards
rakesh

xhi 08-22-2006 11:07 PM

can you post the relevant portion of the error message

raklo 08-23-2006 12:48 AM

Undefined symbol,though symbol defined in System.map
 
[root@pc-00064 proclist]# make -C /usr/src/linux-2.6.11.1/ SUBDIRS=$PWD modules
make: Entering directory `/usr/src/linux-2.6.11.1'
CC [M] /root/proclist/proclist.o
/root/proclist/proclist.c: In function `proc_init':
/root/proclist/proclist.c:85: warning: ISO C90 forbids mixed declarations and code
/root/proclist/proclist.c: At top level:
/root/proclist/proclist.c:18: warning: 'test' defined but not used
Building modules, stage 2.
MODPOST
*** Warning: "devpts_get_tty" [/root/proclist/proclist.ko] undefined!
CC /root/proclist/proclist.mod.o
LD [M] /root/proclist/proclist.ko
make: Leaving directory `/usr/src/linux-2.6.11.1'
[root@pc-00064 proclist]# insmod -f proclist.ko
insmod: error inserting 'proclist.ko': -1 Unknown symbol in module

vickyqasim 01-05-2011 02:52 AM

WARNING: "rt_intr_disable" [/home/user/drive.ko] undefined
 
Hi,

I also Got the same problem, the same code is running in the oher machine but when I copied it here and and tried to compile and run. At the time of compiling. it has given the following mesage:
{"WARNING: "rt_intr_disable" [/home/user/drive.ko] undefined"}

and when I have given insmod then it has give error
"insmod: error inserting 'men_ll_icanl2.ko': -1 Unknown symbol in module"

when I did DMESG then I found "Unknown symbol rt_intr_disable (err 0)"

Can anyone Help me to find the Solution of the same.

Thanks and Regards,
zafar


All times are GMT -5. The time now is 01:46 AM.