Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 316855

Summary: dev-tex/luatex-0.50.0-r1 fails to build with sys-libs/zlib-1.2.5-r1
Product: Gentoo Linux Reporter: Daniel M. <gentoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: aballier, Adrian.Bassett, bugs+gentoo, chuck.wegrzyn, denys.duchier, disp.reg.bugs.gentoo, dkarasik, fcoiffie, ford_prefect, jarausch, pchrist, proteuss, rahul, rose, suertreus, zeekec
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Full buildlog
output of emerge --info

Description Daniel M. 2010-04-23 22:12:32 UTC
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.
Comment 1 Daniel M. 2010-04-23 22:13:48 UTC
Created attachment 228931 [details]
Full buildlog
Comment 2 Daniel M. 2010-04-23 22:14:15 UTC
Created attachment 228933 [details]
output of emerge --info
Comment 3 Andreas Proteus 2010-04-26 13:43:01 UTC
Recompiling zlib solved the problem for me.  
I hope it helps.
Comment 4 Andreas Proteus 2010-04-26 13:45:46 UTC
I forgot to say: zlib-1.2.5-r1
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-04-26 14:33:35 UTC
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.
Comment 6 Daniel M. 2010-04-27 15:03:37 UTC
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
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-28 00:09:35 UTC
*** Bug 317493 has been marked as a duplicate of this bug. ***
Comment 8 shinydoofy 2010-04-28 05:22:16 UTC
(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.
Comment 9 Frédéric COIFFIER 2010-04-28 08:56:49 UTC
Same problem with dev-tex/luatex-0.60.0
Comment 10 Roman Grebennikov 2010-04-28 19:25:53 UTC
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"
Comment 11 Rafał Mużyło 2010-04-29 00:41:27 UTC
*** Bug 317685 has been marked as a duplicate of this bug. ***
Comment 12 Philipp Riegger 2010-04-29 07:00:27 UTC
Same here, dev-tex/luatex-0.60.0, latest zlib, rebuilding does not help.
Comment 13 Alexis Ballier gentoo-dev 2010-04-29 12:30:30 UTC
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.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2010-04-29 21:13:59 UTC
*** Bug 317821 has been marked as a duplicate of this bug. ***
Comment 15 Andreas Proteus 2010-04-29 21:55:23 UTC
I can report that luatex-0.60.0 compiles corectly with sys-libs/zlib-1.2.5-r2 in my x86 system
Comment 16 Juergen Rose 2010-04-30 12:10:34 UTC
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.
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-04-30 12:51:28 UTC
(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.