HEAD: zlib compilation problem

Marta Rybczynska marta.rybczynska at kalray.eu
Thu Sep 8 10:02:30 UTC 2011


Hello,
I have a problem when compiling HEAD for sparc. Zlib compilation fails
as it cannot find z_off64_t. Does anyone has the same problem? I applied the
attached patch and it seems to fix it.

The commands:
../git_new/git/configure --target=sparc-rtems4.11 --enable-smp
--enable-tests=samples --disable-itron

make RTEMS_BSP=leon2

And the error is:
sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
-I../../cpukit/../../../leon2/lib/include  -Werror=overflow
-Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -mcpu=cypress
-msoft-float -O2 -g -Wall -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -MT adler32.o -MD -MP -MF $depbase.Tpo
-c -o adler32.o
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c&&\
mv -f $depbase.Tpo $depbase.Po
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c:12:58:
error: unknown type name 'z_off64_t'
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c:131:13:
warning: function declaration isn't a prototype [-Wstrict-prototypes]
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c: In
function 'adler32_combine_':
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c:134:5:
error: unknown type name 'z_off64_t'
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c: In
function 'z_adler32_combine64':
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c:166:5:
error: unknown type name 'z_off64_t'
../../../../../../git_new/git/c/src/../../cpukit/zlib/adler32.c:166:15:
error: argument 'len2' doesn't match prototype
../../../../../../git_new/git/c/src/../../cpukit/zlib/zutil.h:164:27:
error: prototype declaration
gmake[5]: *** [adler32.o] Error 1

Thanks,
Marta Rybczynska

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110908/6e865df6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib_compile.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20110908/6e865df6/attachment.bin>


More information about the users mailing list