Welcome to the most active Linux Forum on the web.
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 12-04-2004, 06:26 AM   #1
LQ Newbie
Registered: Feb 2004
Location: Korea
Posts: 25

Rep: Reputation: 15
Adding system call in linux


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.


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

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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



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
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 > Forums > Non-*NIX Forums > Programming

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