This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: link error (no patch just a hitn maybe)


The template is new_net with DHCP turned off in ecos.ecc.
These are the link errors I get when not including the two files.Actually only the .inl is that counts, with hxx is still
erring but yesterday I threw them both in because other .cxx files in the same dir as mutex.cxx include them.
Oddly enough make tests passes for all tests.


/home/jani/work/build/edb/new_net/install/lib/libtarget.a(compat_posix_mutex.o): In function `pthread_cond_timedwait':
/home/jani/ecos/packages/compat/posix/current/src/mutex.cxx:527: undefined reference to `Cyg_Scheduler::lock(void)'
/home/jani/ecos/packages/compat/posix/current/src/mutex.cxx:534: undefined reference to `Cyg_Scheduler::unlock(void)'
collect2: ld returned 1 exit status


> Jani Monoses wrote:
> > Hi
> > I had unresolved symbol errors when linking an app (new_net template on edb7xxx)
> > in mutex.cxx in the posix compat package.
> > Including these two files made it go away I'm just not sure it's the right
> > fix and if it it how come nobody has seen this.
> > 
> > Jani.
> > 
> > diff -u -r1.4 mutex.cxx
> > --- compat/posix/current/src/mutex.cxx	10 Dec 2002 02:28:21 -0000	1.4
> > +++ compat/posix/current/src/mutex.cxx	12 Feb 2003 16:17:18 -0000
> > @@ -67,6 +67,9 @@
> >  
> >  #include <cyg/kernel/thread.inl>       // thread inlines
> >  
> > +#include <cyg/kernel/sched.hxx>
> > +
> > +#include <cyg/kernel/sched.inl>
> 
> It's indeed odd if we haven't seen this before ourselves. Was this the 
> default config? What symbols weren't defined?
> 
> Jifl
> -- 
> eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or you ]--
> --[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]