public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: Re: [ECOS] Compile error, including udp_var.h
@ 2006-09-20 23:51 Andre-John Mas
  2006-09-21  6:42 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Andre-John Mas @ 2006-09-20 23:51 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [ECOS] Compile error, including udp_var.h
  2006-09-20 23:51 Re: [ECOS] Compile error, including udp_var.h Andre-John Mas
@ 2006-09-21  6:42 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2006-09-21  6:42 UTC (permalink / raw)
  To: Andre-John Mas; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [ECOS] Compile error, including udp_var.h
       [not found] <20060920220550.PNOK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca>
@ 2006-09-20 22:08 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2006-09-20 22:08 UTC (permalink / raw)
  To: Andre-John Mas; +Cc: ecos-discuss

On Wed, Sep 20, 2006 at 06:05:50PM -0400, Andre-John Mas wrote:
> 
> Andrew Lunn wrote:
> > 
> > On Wed, Sep 20, 2006 at 05:11:02PM -0400, Andre-John Mas wrote:
> > > Hi,
> > > 
> > > We are in the process of adapting the SNMP implementation to C++ for
> > > our needs, but we have hit a few problems. We are using the FreeBSD
> > > networking stack.
> > > 
> > > The error is as follows:
> > > 
> > > In file included from ../interface/snmp/src/UdpMib.cpp:28:
> > > application_install/include/netinet/udp_var.h:117: error: expected constructor, destructor, or type conversion before '(' token
> > > application_install/include/netinet/udp_var.h:117: error: expected `,' or `;' before '(' token
> > 
> > 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.

   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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [ECOS] Compile error, including udp_var.h
@ 2006-09-20 22:06 Andre-John Mas
  0 siblings, 0 replies; 4+ messages in thread
From: Andre-John Mas @ 2006-09-20 22:06 UTC (permalink / raw)
  To: ecos-discuss

Andrew Lunn wrote:
> 
> On Wed, Sep 20, 2006 at 05:11:02PM -0400, Andre-John Mas wrote:
> > Hi,
> > 
> > We are in the process of adapting the SNMP implementation to C++ for
> > our needs, but we have hit a few problems. We are using the FreeBSD
> > networking stack.
> > 
> > The error is as follows:
> > 
> > In file included from ../interface/snmp/src/UdpMib.cpp:28:
> > application_install/include/netinet/udp_var.h:117: error: expected constructor, destructor, or type conversion before '(' token
> > application_install/include/netinet/udp_var.h:117: error: expected `,' or `;' before '(' token
> 
> 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. Here is the what I see when I look at
UdpMib.o:

#define UDPCTL_CHECKSUM 1
#define UDPCTL_STATS 2
#define UDPCTL_MAXDGRAM 3
#define UDPCTL_RECVSPACE 4
#define UDPCTL_PCBLIST 5
#define UDPCTL_MAXID 6

#define UDPCTL_NAMES { { 0, 0 }, { "checksum", CTLTYPE_INT }, { "stats", CTLTYPE_STRUCT }, { "maxdgram", CTLTYPE_INT }, { "recvspace", CTLTYPE_INT }, { "pcblist", CTLTYPE_STRUCT } }
# 117 "C:/VWLocation/EZ-SC_SW_1.0_DEV_ALL/ez_ne/sc_cc/build/sc-application_install/include/netinet/udp_var.h"
SYSCTL_DECL(_net_inet_udp);

extern struct pr_usrreqs udp_usrreqs;
extern struct inpcbhead udb;
extern struct inpcbinfo udbinfo;
extern u_long udp_sendspace;
extern u_long udp_recvspace;
extern struct udpstat udpstat;
extern int log_in_vain;

void udp_ctlinput (int, struct sockaddr *, void *);
void udp_init (void);
void udp_input (struct mbuf *, int);

void udp_notify (struct inpcb *inp, int _errno);
int udp_shutdown (struct socket *so);
# 29 "../interface/snmp/src/UdpMib.cpp" 2


}
 


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-21  6:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 23:51 Re: [ECOS] Compile error, including udp_var.h Andre-John Mas
2006-09-21  6:42 ` Andrew Lunn
     [not found] <20060920220550.PNOK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca>
2006-09-20 22:08 ` Andrew Lunn
  -- strict thread matches above, loose matches on Subject: below --
2006-09-20 22:06 Andre-John Mas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).