This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Compilation problem
- From: rpai at it dot iitb dot ac dot in
- To: gary at mlbassoc dot com
- Cc: ecos-discuss at ecos dot sourceware dot org,andrew at lunn dot ch
- Date: Tue, 5 Apr 2005 12:07:19 +0530 (IST)
- Subject: [ECOS] Compilation problem
hai ,
i wrote a simple hello world program and added 3 packages networking ,
common ethernet support and open bsd . and i build the library and the
template i used is linux syntetic target .
when i compiled it there was a huge error . why does so many error
came as there was only the use of stdio.h file .
this was how i compiled
" i386-elf-gcc -I /root/proj/test/tr3_install/include/ hello.c -L
/root/proj/test/tr3_install/lib/ -Ttarget.ld -nostdlib "
and the error was
" /root/proj/test/tr3_install/lib//libtarget.a(io_eth_eth_drv.o): In
function `eth_drv_tickle_devices':
/opt/ecos-2.0/packages/io/eth/v2_0/src/net/eth_drv.c:340: multiple
definition of `ifnet'
/root/proj/test/tr3_install/lib//extras.o:/opt/ecos-2.0/packages/io/common/v2_0/src/ioinit.cxx:72:
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(io_eth_eth_drv.o)(.bss.ifindex2ifnet+0x0):
multiple definition of `ifindex2ifnet'
/root/proj/test/tr3_install/lib//extras.o:/opt/ecos-2.0/packages/io/serial/v2_0/src/common/serial.c:225:
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(io_eth_eth_drv.o)(.bss.if_index+0x0):
multiple definition of `if_index'
/root/proj/test/tr3_install/lib//extras.o:/opt/ecos-2.0/packages/io/serial/v2_0/src/common/tty.c:132:
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o): In
function `show_network_tables':
/opt/ecos-2.0/packages/net/tcpip/v2_0/src/ecos/support.c:91: multiple
definition of `ifnet'
/root/proj/test/tr3_install/lib//extras.o:/opt/ecos-2.0/packages/io/serial/v2_0/src/common/haldiag.c:96:
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o)(.bss.mclfree+0x0):
multiple definition of `mclfree'
/root/proj/test/tr3_install/lib//libtarget.a(io_eth_eth_drv.o)(.bss.mclfree+0x0):
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o)(.bss.ifindex2ifnet+0x0):
multiple definition of `ifindex2ifnet'
.................
.................
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o)(.bss.rtstat+0x0):
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_sys_socket.o)(.bss.rt_tables+0x0):
multiple definition of `rt_tables'
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o)(.bss.rt_tables+0x0):
first defined here
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_sys_generic.o): In
function `sys_ioctl':
/opt/ecos-2.0/packages/net/tcpip/v2_0/src/sys/kern/sys_generic.c:130:
multiple definition of `sb_max'
/root/proj/test/tr3_install/lib//libtarget.a(net_tcpip_support.o)(.bss.sb_max+0x0):
first defined here
collect2: ld returned 1 exit status
"
this is wht happened
can u tell me what went wrong . i did bcoz i read in the documenttion
that these 3 packages is to be included . when i incuded a package it
was showing conflict when building .
can u tell me a solution and wht is wrong i have done .
Thanks
Pai
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss