LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-04-2004, 06:26 AM   #1
guam
LQ Newbie
 
Registered: Feb 2004
Location: Korea
Posts: 25

Rep: Reputation: 15
Adding system call in linux


Hello,

I am adding a system call in Linux. I am using Kernel 2.4.20-8.

The kernel compilation with my system call is fine. But When I compile the code calling this new system call the following message is produced.

/tmp/ccoNDmld.o(.text+0x23): In function 'myservice':
: undefined reference to 'errno'
collect2: ld returned 1 exit status

"myservice" is the new system call I have implemented.



Can someone point to the reason? And the solution to this problem. Am I missing some thing here?

I am following the "How to add a system call to linux on a i386" by Chad C.D. Clark.

Thanks in advance.

Devel

 
Old 12-04-2004, 01:35 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
This initally looks like a problem with the program you call the syscall in. Can you post the code? This is a linker error -- are there any compiler errotrs spit out before it?
 
Old 12-04-2004, 01:38 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in Programming, and has been moved accordingly to help your thread/question get the exposure it deserves.


Cheers,
Tink
 
  


Reply



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
problem with adding a system call newcat Programming 17 04-08-2006 06:50 AM
Adding a system call to SuSE Linux khcm8jw Linux - Newbie 3 10-23-2005 04:36 AM
Adding system call dumb82 Linux - Newbie 0 07-20-2004 02:25 AM
Adding new System Call to Kernel kurt_ram Linux - General 1 10-22-2002 03:59 PM
adding system call in linux udayan Programming 1 05-02-2002 03:26 AM

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

All times are GMT -5. The time now is 03:26 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