[ECOS] Compile error, including udp_var.h
Thu Sep 21 06:42:00 GMT 2006
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:
> and when I do an 'nm' in libtarget.h I see:
> Our eCos Config project definetly has the FreeBSD stack selected.
> I am a little confused. Any ideas?
Take a look at sys/param.h
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss