This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Build error in ecos-current
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Joshua Boyd <jdboyd at jdboyd dot net>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 9 Sep 2004 13:13:49 +0200
- Subject: Re: [ECOS] Build error in ecos-current
- References: <20040908210535.GA26210@jdboyd.zill.net>
On Wed, Sep 08, 2004 at 05:05:35PM -0400, Joshua Boyd wrote:
> I have an ecos current checked out from august 20th.
>
> In the file: packages/services/compress/zlib/current/src/zutil.h
> line 458
> extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
> /* (size given to avoid silly warnings with Visual C++) */
>
> What I don't understand is why the const keyword is used twice.
>
> My attention was drawn to this by the following build error:
> /home/jdboyd/projects/sw/ecos-current/packages/services/compress/zlib/current/src/zutil.c:16:
> conflicting types for `z_errmsg'
> make: Leaving directory `/home/jdboyd/tmp/dmxTest_build'
> /home/jdboyd/projects/sw/ecos-current/packages/services/compress/zlib/current/src/zutil.h:48:
> previous declaration of `z_errmsg'
>
> Now, it appears that neither file has changed in the last 3 months.
>
>
> I'm using GCC 3.2.1. The ecoscentric provided binaries in fact. Must I
> upgrade to 3.4.1 to use the current CVS versions? I was planning on
> testing 3.4.1, but I wanted to take one thing at a time.
Please could you give exact steps to reproduce the error. It works for
me.
lunn@londo:~/eCos/work2$ ecosconfig new ebsa
lunn@londo:~/eCos/work2$ ecosconfig add zlib
C CYGPKG_COMPRESS_ZLIB, "requires" constraint not satisfied: CYGPKG_CRC
lunn@londo:~/eCos/work2$ ecosconfig add crc
lunn@londo:~/eCos/work2$ ecosconfig tree
lunn@londo:~/eCos/work2$ make -s
headers finished
build finished
/home/lunn/eCos/anoncvs-clean/packages/services/compress/zlib/current/tests/zlib1.c: In function `entry0':
/home/lunn/eCos/anoncvs-clean/packages/services/compress/zlib/current/tests/zlib1.c:169: warning: implicit declaration of function `diag_printf'
/home/lunn/eCos/anoncvs-clean/packages/services/compress/zlib/current/tests/zlib1.c:170: warning: implicit declaration of function `diag_dump_buf'
/home/lunn/eCos/anoncvs-clean/packages/services/compress/zlib/current/tests/zlib1.c:177: warning: passing arg 2 of `z_uncompress' from incompatible pointer type
lunn@londo:~/eCos/work2$
ie just some warnings in the test programs, no fatal errors.
lunn@londo:~/eCos/work2$ arm-elf-gcc -v
Reading specs from /opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/specs
Configured with: /home/demonweb/tools/ecos-gnutools-v1.4/r2/arm-elf/x86_linux_lsb1_3/tar_bz2/source/gcc-3.2.1/configure --target=arm-elf --prefix=/home/demonweb/tools/ecos-gnutools-v1.4/r2/arm-elf/x86_linux_lsb1_3/tar_bz2/opt/ecos/gnutools/arm-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-dir=/home/demonweb/tools/ecos-gnutools-v1.4/r2/arm-elf/x86_linux_lsb1_3/tar_bz2/opt/ecos/gnutools/arm-elf/arm-elf/include
Thread model: single
gcc version 3.2.1
Thanks
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