[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help for newbie



> creating ./config.status
> creating Makefile
> local/include -I../tclcl -I../otcl -I../../ns/tkbox/include -I../../ns/tclbox/include  -o scheduler.o scheduler.cc
> mem-trace.h: In method `void MemInfo::checkpoint()':
> In file included from scheduler.cc:49:
> mem-trace.h:67: warning: implicit declaration of function `int getrusage(...)'
> scheduler.cc: In method `void RealTimeScheduler::run()':
> scheduler.cc:735: warning: implicit declaration of function `int Tcl_DoOneEvent(...)'
> scheduler.cc:735: `TCL_DONT_WAIT' undeclared (first use this function)
> scheduler.cc:735: (Each undeclared identifier is reported only once
> scheduler.cc:735: for each function it appears in.)
> scheduler.cc: In method `int RealTimeScheduler::rwait(double)':
> scheduler.cc:752: `TCL_DONT_WAIT' undeclared (first use this function)
> make: *** [scheduler.o] Error 1
> Ns make failed! Exiting ...
> 
> Couldn't find anything in the online docs to help out so I thought I'd see if anyone else has
> seen this, or can lend a brain.
> 
> Thanks in advance.
> Please cc [email protected] in any replies
> 
> -Jeff

That kind of bug is explained in the FAQ page
(Download Instructions and Installation Problems and Bug Fixes)

You only need to remove -I/usr/local/include in your Makefile.


Make fails: 
scheduler.cc: In method `void RealTimeScheduler::run()':
scheduler.cc:735: warning: implicit declaration of function `int
Tcl_DoOneEvent(...)'
scheduler.cc:735: `TCL_DONT_WAIT' undeclared (first use this function)
scheduler.cc:735: (Each undeclared identifier is reported only once
scheduler.cc:735: for each function it appears in.)
scheduler.cc: In method `int RealTimeScheduler::rwait(double)':
scheduler.cc:752: `TCL_DONT_WAIT' undeclared (first use this function)
 
Fix: 
Once Makefile produced with configure, remove -I/usr/local/include
from include files (INCLUDE = ...)



Cheers,
Thierry.