This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Compile error, including udp_var.h
- From: Andre-John Mas <ajmas at sympatico dot ca>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 20 Sep 2006 19:51:16 -0400
- Subject: Re: Re: [ECOS] Compile error, including udp_var.h
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?
Andre
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss