This is the mail archive of the ecos-discuss@sourceware.org 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: Re: Compile error, including udp_var.h


On Wed, Sep 20, 2006 at 07:51:16PM -0400, Andre-John Mas wrote:
> 
> Andrew Lunn wrote:
> > 
> > > > What do you get at that line when you look at the output of cpp? ie
> > > > use -E to gcc. Has SYSCTL_DECL(_net_inet_udp); been expanded?
> > > > 
> > > 
> > > It doesn't look like it. 
> > 
> > So thats your problem then. Find out why.
> > 
> 
> Thanks, turns out I needed to include sys/sysctl.h.
> 
> Now that's sorted I am still left with one last issue, which seem
> to be related:
> 
> undefined reference to `udpstat'
> undefined reference to `udb'
> 
> They are both defined in the header 'udp_var.h' and from what I
> can gather their implementation is in:
> 
>    net\bsd_tcpip\v2_0_51\src\sys\netinet\udb_usrreq.h
> 
> and when I do an 'nm' in libtarget.h I see:
> 
>    net_bsd_tcpip_udp_usrreq.o
> 
> Our eCos Config project definetly has the FreeBSD stack selected.
> I am a little confused. Any ideas?

Take a look at sys/param.h

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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