This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Here's a patch for the synthetic eCos on Linux
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Mark Hamilton <mark at alliantnetworks dot com>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Mon, 12 May 2003 13:21:47 +0200
- Subject: Re: Here's a patch for the synthetic eCos on Linux
- References: <3EBC1FB6.5050909@alliantnetworks.com>
On Fri, May 09, 2003 at 02:37:58PM -0700, Mark Hamilton wrote:
> 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.
Humm. Im not sure about this... Ive not come across this problem
before. If the symbol is defined multiple times in a library and they
are the same size, the linker will combine them. So my guess is you
are using icmp_var.h in your own code. But the declaration is
protected by ifdef _KERNEL, which should not be set, so this symbol
should not be in your code.....
Please can you tell us where these multiple defined symbols are and
check you don't have _KERNEL defined.
Andrew