zlib build problem
Sebastien Bourdeauducq
sebastien at milkymist.org
Fri Jul 29 22:38:23 UTC 2011
Anyone managed to build the zlib from CVS head lately? 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.
Thanks,
Sébastien
More information about the users
mailing list