Compiling dev-tex/luatex-0.50.0-r1 failed (on ~x86). The significant part of the buildlog: In file included from /usr/include/png.h:511, from luatexdir/image/image.h:26, from luatexdir/image/epdf.h:45, from luatexdir/image/pdftoepdf.cc:59: /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 make[2]: *** [libluatex_a-pdftoepdf.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.50.0-r1/work/luatex-beta-0.50.0/source/texk/web2c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.50.0-r1/work/luatex-beta-0.50.0/source/texk/web2c' make: *** [all] Error 2 * ERROR: dev-tex/luatex-0.50.0-r1 failed: * failed to build luatex * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2862: Called die * The specific snippet of code: * emake || die "failed to build luatex" Installed version of zlib is 1.2.5, reinstalling did not solve the problem.
Created attachment 228931 [details] Full buildlog
Created attachment 228933 [details] output of emerge --info
Recompiling zlib solved the problem for me. I hope it helps.
I forgot to say: zlib-1.2.5-r1
It's fixed by this commit: *zlib-1.2.5-r1 (25 Apr 2010) 25 Apr 2010; Diego E. Pettenò <flameeyes@gentoo.org> +zlib-1.2.5-r1.ebuild, +files/zlib-1.2.5-lfs-decls.patch: Revision bump, add patch from bug #316377.
Sorry for reopening, but it did not solve the problem for me. I've zlib-1.2.5-r1 installed, according to the logs, the corresponding patch was applied. I could successfully compile libxml2 (which did not work in the related bug #316377), but luatex still fails with the same message. Is there any additional information that I should provide? regards
*** Bug 317493 has been marked as a duplicate of this bug. ***
(In reply to comment #6) > Sorry for reopening, but it did not solve the problem for me. > I've zlib-1.2.5-r1 installed, according to the logs, the corresponding patch > was applied. I could successfully compile libxml2 (which did not work in the > related bug #316377), but luatex still fails with the same message. Same here with zlib-1.2.5-r1 on ~x86. It fails with both gcc 4.3.4 and -4.4.3-r2.
Same problem with dev-tex/luatex-0.60.0
confirm this bug for luatex-0.60.0, gcc-4.4.3 and zlib-1.2.5-r1 Rebuilding zlib didn't help. Important part of buildlog: i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./.. -I./.. -DPOPPLER_VERSION=\"0.12.4\" -I/usr/include/poppler -I/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/libs/obsdcompat -I/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/libs/obsdcompat -I./libmd5 -Iluatexdir -I./luatexdir -I./luatexdir/lua51 -DpdfTeX -O2 -march=native -mfpmath=sse -pipe -MT libluatex_a-pdftoepdf.o -MD -MP -MF .deps/libluatex_a-pdftoepdf.Tpo -c -o libluatex_a-pdftoepdf.o `test -f 'luatexdir/image/pdftoepdf.cc' || echo './'`luatexdir/image/pdftoepdf.cc In file included from /usr/include/png.h:511, from luatexdir/image/image.h:26, from luatexdir/image/epdf.h:81, from luatexdir/image/pdftoepdf.cc:25: /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 luatexdir/image/pdftoepdf.cc: In function 'void write_epdf1(pdf_output_file*, image_dict*)': luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:606: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:663: warning: deprecated conversion from string constant to 'char*' luatexdir/image/pdftoepdf.cc:673: warning: deprecated conversion from string constant to 'char*' make[2]: *** [libluatex_a-pdftoepdf.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/texk/web2c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/texk/web2c' make: *** [all] Error 2 * ERROR: dev-tex/luatex-0.60.0 failed: * failed to build luatex * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2685: Called die * The specific snippet of code: * emake || die "failed to build luatex"
*** Bug 317685 has been marked as a duplicate of this bug. ***
Same here, dev-tex/luatex-0.60.0, latest zlib, rebuilding does not help.
the patch in zlib-1.2.5-r1 is definitely wrong; I get a zlib.h with the following: #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 [...] ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); [...] #endif #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && \ _LFS64_LARGEFILE-0 && _LARGEFILE64_SOURCE [...] # define gzseek gzseek64 [...] ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); [...] #endif with z_off64_t != z_off_t this aint gonna work; removing the group of definitions in the second #if makes luatex compile again on x86.
*** Bug 317821 has been marked as a duplicate of this bug. ***
I can report that luatex-0.60.0 compiles corectly with sys-libs/zlib-1.2.5-r2 in my x86 system
luatex-0.60.0 with zlib-1.2.5-r2 does not compile for me at a x86_64 system, because of missing mplib.h, mplibps.h and mplibsvg.h. It seems to be the same error as bug Bug 317843.
(In reply to comment #16) > luatex-0.60.0 with zlib-1.2.5-r2 does not compile for me at a x86_64 system, > because of missing mplib.h, mplibps.h and mplibsvg.h. It seems to be the same > error as bug Bug 317843. > Then why are you discussing it here? (In reply to comment #15) > I can report that luatex-0.60.0 compiles corectly with sys-libs/zlib-1.2.5-r2 > in my x86 system > Closing this as fixed by zlib-1.2.5-r2.