zlib build problem

Ralf Corsepius ralf.corsepius at rtems.org
Sat Jul 30 05:06:13 UTC 2011


On 07/30/2011 12:38 AM, Sebastien Bourdeauducq wrote:
> Anyone managed to build the zlib from CVS head lately?

Yes, last time a couple of minutes ago in a try to reproduce your issue.

 > I get this
> problem:
>
> lm32-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
> -I../../cpukit/../../../milkymist/lib/include  -Werror=overflow
> -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast
> -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled
> -msign-extend-enabled -O2 -g -Wall -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT adler32.o -MD -MP -MF
> $depbase.Tpo -c -o
> adler32.o ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c&&\
> mv -f $depbase.Tpo $depbase.Po
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:12:58: error:
> expected declaration specifiers or '...' before 'z_off64_t'
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c: In function
> 'adler32_combine_':
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:134:5: error:
> expected declaration specifiers before 'z_off64_t'
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:135:1: error:
> number of arguments doesn't match prototype
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:12:13: error:
> prototype declaration
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c: In function
> 'z_adler32_combine':
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:160:5: error:
> too many arguments to function 'adler32_combine_'
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:131:13: note:
> declared here
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c: In function
> 'z_adler32_combine64':
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:166:5: error:
> expected declaration specifiers before 'z_off64_t'
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:163:15: error:
> argument 'len2' doesn't match prototype
> ../../../../../../rtems/c/src/../../cpukit/zlib/zutil.h:164:27: error:
> prototype declaration
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:168:5: error:
> too many arguments to function 'adler32_combine_'
> ../../../../../../rtems/c/src/../../cpukit/zlib/adler32.c:131:13: note:
> declared here
> gmake[5]: *** [adler32.o] Error 1
>
> Defining "typedef long z_off64_t" in the zlib headers works around the
> problem.

Are you using a home-grown toolchain?

The breakdown you describe, could indicate you to be using a toolchain 
which doesn't have the RTEMS newlib-patches applied (c.f. the latest 
newlib patch in contrib/crossrpms/patches on CVS-HEAD).

Ralf




More information about the users mailing list