This is the mail archive of the ecos-discuss@sourceware.org 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: 80321 extros.o build problem.




Drew Kranak wrote:

Anyone:
I am trying to build the 80321 eCos lib and get the following error:


    make[1]: Entering directory
    `/ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_build/hal/common/v2_0'

    xscale-elf-gcc -mcpu=xscale -Wall -Wpointer-arith
    -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
    -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
    -fvtable-gc -mapcs-frame -nostdlib -Wl,-r -Wl,--whole-archive -o
    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/extras.o
    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(net_tcpip_sockio.o)(.bss.ifnet+0x0):
    In function `bsd_sendit':

    /ecos-c/ARM/eCos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/kern/sockio.c:185:
    multiple definition of `ifnet'

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(devs_eth_intel_i82544_if_i82544.o)(.bss.ifnet+0x0):/ecos-c/ARM/eCos/ecos-2.0/packages/devs/eth/intel/i82544/v2_0/src/if_i82544.c:544:
    first defined here

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(net_tcpip_sockio.o)(.bss.ifindex2ifnet+0x0):
    multiple definition of `ifindex2ifnet'

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(devs_eth_intel_i82544_if_i82544.o)(.bss.ifindex2ifnet+0x0):
    first defined here

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(net_tcpip_sockio.o)(.bss.if_index+0x0):
    multiple definition of `if_index'

    /ecos-c/ARM/eCos/eCos-321_ROM/eCos-331_ROM_install/lib/libextras.a(devs_eth_intel_i82544_if_i82544.o)(.bss.if_index+0x0):
    first defined here

collect2: ld returned 1 exit status

My best understanding of what is trying to be accomplished is that eCos is trying to add extras.o to the archive libextras.a Looking at the sorce files, it is not obvious that ifnet is redefined unless it is happening in a macro I am overlooking.


Thanks for any input that helps resolve my dificultiy.


Drew


-- 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]