public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] [ecos]application compile problem(arm-elf target, linux host)
@ 2004-04-28 13:51 기영택
  2004-04-28 15:50 ` [ECOS] " Kelvin Lawson
  0 siblings, 1 reply; 2+ messages in thread
From: 기영택 @ 2004-04-28 13:51 UTC (permalink / raw)
  To: ecos-discuss

Hello,
I've tried build application for my customized sa-110 port
ecos(kernel version 2.0) with gcc( version 3.2.1, 3.3.3, 3.4.0) , host linux(kernel version 2.4.20-31.9smp)

configtool work well (i made kernel library using template net) but ican't compile application(just print "hello") with kernel library(made by linux version configtool), but most weird thing is compile application with kernel library(made by windows version configtool) is work well.
I've tested that application and kernel source on windows(with cygwin).

compiler error is " multiple definition of 'cyg_icmpstat' " in freebsd stack component.

I hope some one will help me.
thanks.

Regards,
Peter Ki.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Re: [ecos]application compile problem(arm-elf target, linux host)
  2004-04-28 13:51 [ECOS] [ecos]application compile problem(arm-elf target, linux host) 기영택
@ 2004-04-28 15:50 ` Kelvin Lawson
  0 siblings, 0 replies; 2+ messages in thread
From: Kelvin Lawson @ 2004-04-28 15:50 UTC (permalink / raw)
  To: ecos-discuss

> I've tried build application for my customized sa-110 port
> ecos(kernel version 2.0) with gcc( version 3.2.1, 3.3.3, 3.4.0) , host linux(kernel version 2.4.20-31.9smp)
> 
> configtool work well (i made kernel library using template net) but ican't compile application(just print "hello") with kernel library(made by linux version configtool), but most weird thing is compile application with kernel library(made by windows version configtool) is work well.
> I've tested that application and kernel source on windows(with cygwin).
> 
> compiler error is " multiple definition of 'cyg_icmpstat' " in freebsd stack component.

This is because you are using a more recent GCC version. The version
recommended for eCos 2.0 combined the common cyg_icmpstat symbols, but
this is not done by the newer GCC.

Take a look at ip_icmp.c and icmp_var.h in CVS to see what needs to be
done. Basically you should make icmpstat an extern in icmp_var.h, and
declare it in one place (ip_icmp.c).

See revision 1.2 here:
http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c?cvsroot=ecos

Kelvin.



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-28 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-28 13:51 [ECOS] [ecos]application compile problem(arm-elf target, linux host) 기영택
2004-04-28 15:50 ` [ECOS] " Kelvin Lawson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).