This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: MicroWindows test fails to build
- From: "Hans Kester" <hans at ellips dot nl>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 1 Mar 2004 11:55:37 +0100
- Subject: RE: [ECOS] MicroWindows test fails to build
Now I seem to have two of them. I had to include SNMP agent as well,
otherwise it complaint about a missing header file.
make -r -C services/gfx/mw/current
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/bin/ecos_mw.elf
make[1]: Entering directory
`/ecos-e/cygwin/ecos/workdir/eCos/demo_build/services/gfx/mw/current'
i386-elf-gcc -c -I/ecos-e/cygwin/ecos/workdir/eCos/demo_install/include
-I/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current
-I/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src
-I/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/tests -I.
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions
-I/ecos-e/cygwin/ecos/workdir/eCos/demo_install/include/microwin
-D__ECOS=1 -DMSDOS=0 -DELKS=0 -D__rtems__=0 -D_MINIX=0 -DNOTYET=0
-DUNIX=1 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_PNM_SUPPORT=1
-DHAVE_XPM_SUPPORT=1 -DxHAVE_JPEG_SUPPORT=1 -DHAVESELECT=1
-DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -o
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/ecos_app.o
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/ecos/ecos_
app.c
i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static
-L/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib -Ttarget.ld -o
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/bin/ecos_mw.elf
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/ecos_app.o
make[1]: Leaving directory
`/ecos-e/cygwin/ecos/workdir/eCos/demo_build/services/gfx/mw/current'
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(net_snmp_l
ib_system.o): In function `get_uptime':
make: Leaving directory `/ecos-e/cygwin/ecos/workdir/eCos/demo_build'
/ecos-e/cygwin/ecos/ecos/packages/net/snmp/lib/current/src/system.c:837:
multiple definition of `gettimeofday'
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/ecos_app.o:/ecos-e/cyg
win/ecos/ecos/packages/services/gfx/mw/current/src/ecos/ecos_app.c:174:
first defined here
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(net_snmp_l
ib_system.o): In function `get_uptime':
/ecos-e/cygwin/ecos/ecos/packages/net/snmp/lib/current/src/system.c:837:
multiple definition of `strcasecmp'
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/ecos_app.o:/ecos-e/cyg
win/ecos/ecos/packages/services/gfx/mw/current/src/ecos/ecos_app.c:174:
first defined here
/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i3
86-elf/bin/ld: Warning: size of symbol `strcasecmp' changed from 124 to
24 in
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(net_snmp_l
ib_system.o)
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(net_snmp_l
ib_system.o): In function `get_uptime':
/ecos-e/cygwin/ecos/ecos/packages/net/snmp/lib/current/src/system.c:837:
multiple definition of `strdup'
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/ecos_app.o:/ecos-e/cyg
win/ecos/ecos/packages/services/gfx/mw/current/src/ecos/ecos_app.c:174:
first defined here
/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i3
86-elf/bin/ld: Warning: size of symbol `strdup' changed from 53 to 61 in
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(net_snmp_l
ib_system.o)
collect2: ld returned 1 exit status
make[1]: ***
[/ecos-e/cygwin/ecos/workdir/eCos/demo_install/bin/ecos_mw.elf] Error 1
make: *** [build] Error 2
Hans
-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: Monday, March 01, 2004 10:58 AM
To: Hans Kester
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] MicroWindows test fails to build
On Mon, Mar 01, 2004 at 10:28:31AM +0100, Hans Kester wrote:
> When I
> 1. choose the NET template for an x86 PC
> 2. add the MicroWindows package
> 3. enable CYGBLD_MICROWINDOWS_ECOS_APP
> 4. build the eCos library
> 5. build the tests
>
> I get the following error messages:
>
> [snip]
> make[1]: Leaving directory
`/ecos-e/cygwin/ecos/workdir/eCos/demo_build/io/pci/current'
>
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(services_g
fx_mw_srvmain.o): In function `SVR_GrBell':
> make: Leaving directory `/ecos-e/cygwin/ecos/workdir/eCos/demo_build'
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/nanox/srvm
ain.c:902: undefined reference to `gettimeofday'
>
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(services_g
fx_mw_srvfunc.o): In function `SVR_GrSetPortraitMode':
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/nanox/srvf
unc.c:2945: undefined reference to `strdup'
>
/ecos-e/cygwin/ecos/workdir/eCos/demo_install/lib/libtarget.a(services_g
fx_mw_devtimer.o): In function `time_to_expiry':
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/engine/dev
timer.c:211: undefined reference to `gettimeofday'
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/engine/dev
timer.c:211: undefined reference to `gettimeofday'
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/engine/dev
timer.c:211: undefined reference to `gettimeofday'
>
/ecos-e/cygwin/ecos/ecos/packages/services/gfx/mw/current/src/engine/dev
timer.c:211: undefined reference to `gettimeofday'
> collect2: ld returned 1 exit status
> make[1]: ***
[/ecos-e/cygwin/ecos/workdir/eCos/demo_install/tests/io/pci/current/test
s/pci1] Error 1
> make: *** [tests] Error 2
>
> Do we have a 'gettimeofday'?
Add the snmp library.
Some day we should clean this up.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss