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


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


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