LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-07-2003, 10:31 AM   #1
neerajcd
LQ Newbie
 
Registered: Nov 2003
Location: India
Distribution: LFS
Posts: 2

Rep: Reputation: 0
Unhappy Make error


Hi all,

This problem is related to make error produced while compiling nachos kernel on gcc 2.96. It has been edited by me. Now it compiles correctly but it produces linking errors. The errors are like this:

Code:
scheduler.o: In function `Scheduler::ReadyToRun(Thread *)':
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:72: undefined reference to `Thread::getStatus(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:74: undefined reference to `Thread::resetDispWait(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:75: undefined reference to `Thread::getPriority(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:75: undefined reference to `Thread::setPriority(int)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:76: undefined reference to `Thread::getPriority(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:76: undefined reference to `Thread::resetTimeLeft(int)'
scheduler.o: In function `update(int)':
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:193: undefined reference to `Thread::incrementDispWait(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:193: undefined reference to `Thread::getPriority(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:194: undefined reference to `Thread::getPriority(void)'
scheduler.o: In function `RunList::AddThread(Thread *)':
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:334: undefined reference to `Thread::getPriority(void)'
scheduler.o: In function `RunList::ChangeThreadPriority(Thread *, int)':
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:342: undefined reference to `Thread::getPriority(void)'
/home/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:343: undefined reference to `Thread::getPriority(void)'
scheduler.o:/users/chm/msci/neerajcd/nachos-3.4/code/threads/../threads/scheduler.cc:354: more undefined references to `Thread::getPriority(void)' follow
system.o: In function `Timer::~Timer(void)':
/home/neerajcd/nachos-3.4/code/threads/../machine/interrupt.h(.text+0x16): undefined reference to `Thread::decrementTimeLeft(void)'
/home/neerajcd/nachos-3.4/code/threads/../machine/interrupt.h(.text+0x30): undefined reference to `Thread::getPriority(void)'
/home/neerajcd/nachos-3.4/code/threads/../machine/interrupt.h(.text+0x54): undefined reference to `Thread::setPriority(int)'
/home/neerajcd/nachos-3.4/code/threads/../machine/interrupt.h(.text+0xad): undefined reference to `Thread::incrementDispWait(void)'
collect2: ld returned 1 exit status
make: *** [nachos] Error 1
This is when each of these functions exist. Please help me.

TIA
 
Old 11-09-2003, 01:57 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
are you linking to the proper libraries?
 
Old 11-10-2003, 07:21 AM   #3
neerajcd
LQ Newbie
 
Registered: Nov 2003
Location: India
Distribution: LFS
Posts: 2

Original Poster
Rep: Reputation: 0
I think I am, but any suggestions are welcome. The thing is a it was both compiling and linking before I edited the nachos kernel (I didnot remove anything). I edited the code (but added no new file). And now it is giving this error.

Thanks for response anyway,
Bye
 
Old 11-10-2003, 11:02 AM   #4
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
how are you compiling?
 
  


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
Really, really Weird trouble with make (make error 2) flyeater SUSE / openSUSE 5 06-20-2005 12:05 PM
xprobe2 "make" error make[1]: *** [config_set.o] Error 1 rsharma2000 Linux - Security 1 11-24-2004 04:10 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 03:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

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

All times are GMT -5. The time now is 09:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration