LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-01-2005, 11:06 PM   #1
Elonch
LQ Newbie
 
Registered: Aug 2004
Location: P.R.C
Distribution: SuSE 9.1
Posts: 8

Rep: Reputation: 0
Unresolved symbol?


I export a symbol to the kernel, where i can find it in /proc/ksyms
but when i call the symbol in a new program ,it does't work.
and displays the error "Unresolved symbol" ,what's the problem?
thanks !
 
Old 03-01-2005, 11:33 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
Are you trying to use the symbol in a userspace program or a kernel module? Userspace programs cannot see into the kernel. If you're doing stuff with kernel modules or in the kernel itself, I'm not an expert, but make sure you called export_symbol properly.
 
Old 03-01-2005, 11:48 PM   #3
Elonch
LQ Newbie
 
Registered: Aug 2004
Location: P.R.C
Distribution: SuSE 9.1
Posts: 8

Original Poster
Rep: Reputation: 0
I'am a newbie...
In the first module ,i exported a symbol and then insmoded it ,so i could get it in /proc/ksyms .
Then I wrote another module where i called the symbol ,after gcc -c ,no problem occurred.
but when insmod, i got the error "Unresolved symbol ***"
 
  


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
unresolved symbol haddon Linux - Hardware 3 03-11-2005 02:24 PM
unresolved symbol unregister_sound_special Daeljan Slackware 3 11-19-2004 06:22 PM
Unresolved symbol: xtime_lock stuartx Linux - General 0 10-27-2004 02:05 PM
modprobe unresolved symbol DJSpaceMouse Linux - Software 3 08-08-2003 02:55 PM
SB Audigy Unresolved Symbol Metal Linux - Hardware 2 10-16-2002 07:05 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration