This is the mail archive of the ecos-discuss@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]

Problem compiling synthetic target


Dear all,

I have a strange problem when I compile eCos for the synthetic target. The
library build stops with a link error. I cannot find the supposed multiple
defined symbols: ifnet is neither in sockio.c:181, nor in syntheth.c:182.

I joined my config file. I am running Linux Mandrake 9.2 (gcc 3.3.1,
glibc-2.3.2-14mdk). Thank you for your help.

make[1]: Entering directory `/home/riadh/ecos/Syntarget/hal/common/v2_0'
gcc -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -finit-priority -nostdlib -Wl,-r
-Wl,--whole-archive -o /home/riadh/ecos/Syntarget/install/lib/extras.o
/home/riadh/ecos/Syntarget/install/lib/libextras.a
/home/riadh/ecos/Syntarget/install/lib/libextras.a(net_tcpip_sockio.o)(.bss.
ifnet+0x0):/home/riadh/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/kern/so
ckio.c:181: multiple definition of `ifnet'
/home/riadh/ecos/Syntarget/install/lib/libextras.a(devs_eth_synth_ecosynth_s
yntheth.o)(.bss.ifnet+0x0):/home/riadh/ecos/ecos-2.0/packages/devs/eth/synth
/ecosynth/v2_0/src/syntheth.c:182: first defined here
/home/riadh/ecos/Syntarget/install/lib/libextras.a(net_tcpip_sockio.o)(.bss.
ifindex2ifnet+0x0): multiple definition of `ifindex2ifnet'
/home/riadh/ecos/Syntarget/install/lib/libextras.a(devs_eth_synth_ecosynth_s
yntheth.o)(.bss.ifindex2ifnet+0x0): first defined here
/home/riadh/ecos/Syntarget/install/lib/libextras.a(net_tcpip_sockio.o)(.bss.
if_index+0x0): multiple definition of `if_index'
/home/riadh/ecos/Syntarget/install/lib/libextras.a(devs_eth_synth_ecosynth_s
yntheth.o)(.bss.if_index+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [/home/riadh/ecos/Syntarget/install/lib/extras.o] Error 1
make[1]: Leaving directory `/home/riadh/ecos/Syntarget/hal/common/v2_0'
make: *** [build] Error 2

--------------------------------------------------------------
?
Riadh Elloumi
?



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


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