This is the mail archive of the ecos-patches@sources.redhat.com 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]

Here's a patch for the synthetic eCos on Linux


I get multiply defined symbol when I compile the Default synthetic eCos with the net option. I'm trying to use the bsd stack. The structure icmpstat is defined in a header. This is unfortunate since the header file is included in two files, so the structure is defined twice. I've attached my minor changes to resolve this problem.
Index: icmp_var.h
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/include/netinet/icmp_var.h,v
retrieving revision 1.1
diff -r1.1 icmp_var.h
95c95
< struct icmpstat icmpstat;
---
> extern struct icmpstat icmpstat;
Index: ip_icmp.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c,v
retrieving revision 1.1
diff -r1.1 ip_icmp.c
89a90
> struct icmpstat icmpstat; /* Added this line. */

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