Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: Arslan S. on June 11, 2010, 08:36:58 AM

Title: zlib 1.2.5 bug
Post by: Arslan S. on June 11, 2010, 08:36:58 AM
on TC 3.0a6, compiling qbittorent fails with following error message
( all extensions are up to date)
Code: [Select]
In file included from /usr/local/include/libtorrent/hasher.hpp:41,
                 from /usr/local/include/libtorrent/storage.hpp:59,
                 from createtorrent_imp.cpp:44:
/usr/include/zlib.h:1583: error: declaration of C function 'off_t gzseek64(void*, off_t, int)' conflicts with
/usr/include/zlib.h:1567: error: previous declaration 'off64_t gzseek64(void*, off64_t, int)' here
/usr/include/zlib.h:1584: error: declaration of C function 'off_t gztell64(void*)' conflicts with
/usr/include/zlib.h:1568: error: previous declaration 'off64_t gztell64(void*)' here
/usr/include/zlib.h:1585: error: declaration of C function 'off_t gzoffset64(void*)' conflicts with
/usr/include/zlib.h:1569: error: previous declaration 'off64_t gzoffset64(void*)' here
/usr/include/zlib.h:1586: error: declaration of C function 'uLong adler32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1570: error: previous declaration 'uLong adler32_combine64(uLong, uLong, off64_t)' here
/usr/include/zlib.h:1587: error: declaration of C function 'uLong crc32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1571: error: previous declaration 'uLong crc32_combine64(uLong, uLong, off64_t)' here

related bug report for archlinux
http://bugs.archlinux.org/task/19280 (http://bugs.archlinux.org/task/19280)
gentoo uses this patch
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/zlib/files/zlib-1.2.5-lfs-decls.patch?revision=1.2&view=markup (http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/zlib/files/zlib-1.2.5-lfs-decls.patch?revision=1.2&view=markup)
subject at zlib-devel mail
http://mail.madler.net/pipermail/zlib-devel_madler.net/2010-May/002301.html (http://mail.madler.net/pipermail/zlib-devel_madler.net/2010-May/002301.html)
another proposed patch that claims gentoo patch will cause problems
http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/zlib/zlib-lfs.patch?rev=1.2 (http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/zlib/zlib-lfs.patch?rev=1.2)
Title: Re: zlib 1.2.5 bug
Post by: ^thehatsrule^ on June 11, 2010, 09:58:20 AM
We are aware of the problem (fyi)