Summary: | dev-libs/libxml2-2.7.7 fails due to gzopen64' implicitly converted to pointer w/ zlib-1.2.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Edward Hervey <bilboed> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ao, base-system, bertrand, da5id2001, gnome, h.leppkes, leonchik1976, marduk |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to fix zlib LFS defines |
Description
Edward Hervey
2010-04-20 16:17:25 UTC
With what version of zlib? Note that 1.2.5 was added to tree today. with zlib-1.2.5 And indeed, I updated it on my other machine... and libxml2 fails in exactly the same way (other machine is also ~amd64) reproduced also here libxml.h should perhaps add to the top of it: #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif Created attachment 228589 [details, diff]
Patch to fix zlib LFS defines
I think the fix for this should go into zlib. zlib.h does a #define gzopen gzopen64 but then conditionally declares the function (based on _LARGEFILE64_SOURCE). The define and the declaration should be controlled by the same condition.
Attaching a patch that does this (and fixes the problem here).
fwiw, debian experimental have applied this patch : http://patch-tracker.debian.org/patch/series/view/zlib/1:1.2.3.5.dfsg-1/fix-exports Patch applied to zlib worked for me (which ended up fixing some other issues once libxml2 was recompiled). Worked for me too, please commit to portage. This problem also occurs with zlib-1.2.4 Reassigning to base-system, as mentioned in comment #5, I believe this needs to be fixed in zlib. *** Bug 317073 has been marked as a duplicate of this bug. *** Fixed by adding the patch attached here to -r1. Arun, I'll assume you sent that upstream already; if not please do it, thanks! (In reply to comment #12) > Fixed by adding the patch attached here to -r1. Thanks, it solved also bug 316855 (luatex failed to compile). I'm trying to get on zlib-devel to discuss this fix. Fwiw, Ubuntu/Debian have this issue as well, and Debian alludes to some upstream fix ca. 1.2.4. Let's see what upstream has to say. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439980 https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/402178 |