Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-22-2006, 11:05 PM   #1
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
UNDEFINED SYMBOL!! though the symbol defined in

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 file.
But when i m compiling the program it is showing
devpts_get_tty, undefined symbol.

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

waiting for reply
Old 08-22-2006, 11:07 PM   #2
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
can you post the relevant portion of the error message
Old 08-23-2006, 12:48 AM   #3
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
Undefined symbol,though symbol defined in

[root@pc-00064 proclist]# make -C /usr/src/linux- SUBDIRS=$PWD modules
make: Entering directory `/usr/src/linux-'
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.
*** 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-'
[root@pc-00064 proclist]# insmod -f proclist.ko
insmod: error inserting 'proclist.ko': -1 Unknown symbol in module
Old 01-05-2011, 02:52 AM   #4
LQ Newbie
Registered: Jul 2010
Posts: 6

Rep: Reputation: 0
WARNING: "rt_intr_disable" [/home/user/drive.ko] undefined


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,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbol lookup error: /usr/lib/ undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
Undefined symbol movitto Programming 2 02-18-2006 01:11 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM
undefined symbol errors ??? gkiagia Linux - Software 0 06-22-2005 02:00 PM
undefined symbol: _Unwind_Resume aa2bi Linux - Newbie 2 07-09-2004 02:50 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration