Description of problem: pdfedit fails to compile on i686 with zlib.h errors: g++ -c -O2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions -pipe -posix -ansi -std=c++98 -pedantic -I. -I/builddir/build/BUILD/pdfedit-0.4.5/src -I/builddir/build/BUILD/pdfedit-0.4.5/src/xpdf/ -I/usr/include -I/usr/include/freetype2 -I/usr/include -o pdfwriter.o pdfwriter.cc In file included from pdfwriter.cc:32: /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 See http://koji.fedoraproject.org/koji/taskinfo?taskID=2180724 for builds Version-Release number of selected component (if applicable): 1.2.5-1.fc14
Apparently there has been some discussion of this on the zlib mailing list but no official resolution it seems. Gentoo apparently has a patch in their 1.2.5-r2 package for this.
The same happens with the latest TeX Live 2010 build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2219242
Gentoo uses this simple 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 and no further breakages are reported for a while. Please apply this patch as well.
Thanks, fixed in zlib-1.2.5-2.fc14,
*** Bug 599815 has been marked as a duplicate of this bug. ***