LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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
 
Old 08-22-2006, 11:07 PM   #2
xhi
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
raklo
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
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
 
Old 01-05-2011, 02:52 AM   #4
vickyqasim
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Rep: Reputation: 0
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
 
  


Reply


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/libgtk-x11.2.0.so.0: 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:33 PM.

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