Bug 63739
Summary: | unable to rebuild source rpm: libxml2mod.so links with -lxml2 | ||
---|---|---|---|
Product: | [Retired] Red Hat Public Beta | Reporter: | Ned Ulbricht <nedu> |
Component: | libxml2 | Assignee: | Daniel Veillard <veillard> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | skipjack-beta2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-04-18 13:19:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ned Ulbricht
2002-04-18 07:52:25 UTC
Could you retry with libxml2-2.4.20 which I released earlier this week at ftp://xmlsoft.org/ , I think this got fixed in that release, and if not I would really like to learn about it, Daniel New package libxml2-2.4.20-1.src.rpm builds successfully for me.
(RH 6.2 + some RH 7.2 build environment).
Supplementary note:
Fix is apparently in python/Makefile.am:
25c25
< libxml2mod_la_LDFLAGS = -module -avoid-version
---
> libxml2mod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/.libs
resulting in:
/bin/sh ../libtool --mode=link gcc3 -O2 -mcpu=i486 -Wall -o libxml2mod.la
-rpath /usr/lib/python1.5/site-packages -module -avoid-version -L../.libs
libxml.lo types.lo libxml2-py.lo ../libxml2.la
But cf. libtool 1.4 documentation note:
"(1) However, you should avoid using `-L' or `-l' flags to link
against an uninstalled libtool library. Just specify the relative path
to the `.la' file, such as `../intl/libintl.la'. This is a design
decision to eliminate any ambiguity when linking against uninstalled
shared libraries."
So, while this issue is resolved for me, I just don't know enough about libtool
internals
to predict what "ambiguity" might do in other configurations.
Yes this requires a "not too old" version of libtools. There is unfortunately now way to keep it working on all libtool versions/ platform combinations. At least for Red Hat Linux this seems to fix the problem. I have pushed libxml2-2.4.20 internally so I expect this get solved in RawHide. Thanks for the feedback, Daniel |