LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-02-2005, 12:06 AM   #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-02-2005, 12:33 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,164

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


All times are GMT -5. The time now is 05:13 AM.

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