Here's a patch for the synthetic eCos on Linux
Andrew Lunn
andrew.lunn@ascom.ch
Mon May 12 11:23:00 GMT 2003
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
More information about the Ecos-patches
mailing list