This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Here's a patch for the synthetic eCos on Linux
- From: Mark Hamilton <mark at alliantnetworks dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 09 May 2003 14:37:58 -0700
- Subject: 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. */