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]

Re: Here's a patch for the synthetic eCos on Linux


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


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