<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <pre wrap="">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../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>cpukit<span class="moz-txt-tag">/</span></i>../../../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
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c &&\
mv -f $depbase.Tpo $depbase.Po
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c:12:58:
error: unknown type name 'z_off64_t'
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c:131:13:
warning: function declaration isn't a prototype [-Wstrict-prototypes]
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c: In
function 'adler32_combine_':
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c:134:5:
error: unknown type name 'z_off64_t'
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c: In
function 'z_adler32_combine64':
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c:166:5:
error: unknown type name 'z_off64_t'
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/adler32.c:166:15:
error: argument 'len2' doesn't match prototype
../../../../../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>git_new/git/c/src<span class="moz-txt-tag">/</span></i>../../cpukit/zlib/zutil.h:164:27:
error: prototype declaration
gmake[5]: *** [adler32.o] Error 1

Thanks,
Marta Rybczynska
</pre>
  </body>
</html>