Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518728 - dev-libs/libxslt-1.1.28-r[23] - /usr/lib32/libxml2.so: error adding symbols: File in wrong format
Summary: dev-libs/libxslt-1.1.28-r[23] - /usr/lib32/libxml2.so: error adding symbols: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 09:47 UTC by David Holm
Modified: 2014-09-13 16:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-libs/libxslt-1.1.28-r3::gentoo' (libxslt-1.1.28-r3.info,4.06 KB, text/plain)
2014-08-01 09:48 UTC, David Holm
Details
emerge -pqv '=dev-libs/libxslt-1.1.28-r3::gentoo' (libxslt-1.1.28-r3.pqv,182 bytes, text/plain)
2014-08-01 09:48 UTC, David Holm
Details
dev-libs/libxslt-1.1.28-r3::gentoo build log (libxslt-1.1.28-r3.build.log,57.46 KB, application/octet-stream)
2014-08-01 09:49 UTC, David Holm
Details
dev-libs/libxslt-1.1.28-r3::gentoo build environment (libxslt-1.1.28-r3.environment,151.41 KB, text/plain)
2014-08-01 09:49 UTC, David Holm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm 2014-08-01 09:47:51 UTC
dev-libs/libxslt-1.1.28-r[23] fails when trying to link the 64-bit version of libxslt.so because it sets the library search path to /usr/lib32 which results in libtool picking up the 32-bit version of libxml2.

    libtool: link: mips64-unknown-linux-gnu-gcc -mabi=64 -shared  -fPIC -DPIC  .libs/attrvt.o .libs/xslt.o .libs/xsltlocale.o .libs/xsltutils.o .libs/pattern.o .libs/templates.o .libs/variables.o .libs/keys.o .libs/numbers.o .libs/extensions.o .libs/extra.o .libs/functions.o .libs/namespaces.o .libs/imports.o .libs/attributes.o .libs/documents.o .libs/preproc.o .libs/transform.o .libs/security.o   -Wl,--as-needed -L/usr/lib32 -lxml2 -lz -lm -ldl  -mabi=64 -O2 -march=octeon -mplt -Wl,--version-script=/var/tmp/portage/d
ev-libs/libxslt-1.1.28-r3/work/libxslt-1.1.28/libxslt/libxslt.syms -Wl,-O1   -Wl,-soname -Wl,libxslt.so.1 -o .libs/libxslt.so.1.1.28
    /usr/lib32/libxml2.so: error adding symbols: File in wrong format

I only have a multilib setup on my MIPS systems so I do not know if this issue is specific to MIPS or if it exists on other architectures using multilib as well.

Reproducible: Always

Steps to Reproduce:
1. Set ABI_MIPS="n32 n64"
2. emerge --oneshot dev-libs/libxml2  (to ensure multilib version of libxml2)
3. emerge --oneshot '=dev-libs/libxslt-1.1.28-r3'
Actual Results:  
Installation of libxslt fails.

Expected Results:  
Successful installation.

dev-libs/libxslt-1.1.28-r1 is not affected by this issue as it does not support multilib and can be installed successfully.
Comment 1 David Holm 2014-08-01 09:48:38 UTC
Created attachment 381990 [details]
emerge --info '=dev-libs/libxslt-1.1.28-r3::gentoo'
Comment 2 David Holm 2014-08-01 09:48:58 UTC
Created attachment 381992 [details]
emerge -pqv '=dev-libs/libxslt-1.1.28-r3::gentoo'
Comment 3 David Holm 2014-08-01 09:49:21 UTC
Created attachment 381994 [details]
dev-libs/libxslt-1.1.28-r3::gentoo build log
Comment 4 David Holm 2014-08-01 09:49:44 UTC
Created attachment 381996 [details]
dev-libs/libxslt-1.1.28-r3::gentoo build environment
Comment 5 Joshua Kinard gentoo-dev 2014-08-06 06:17:10 UTC
Just ran into this myself...
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-06 14:28:37 UTC
I'd dare guess we need to wrap xml2-config (and likely patch configure for it) since it doesn't seem to use pkg-config. Unless you've got broken pkg-config for some reason.
Comment 7 Joshua Kinard gentoo-dev 2014-08-10 10:05:06 UTC
(In reply to Michał Górny from comment #6)
> I'd dare guess we need to wrap xml2-config (and likely patch configure for
> it) since it doesn't seem to use pkg-config. Unless you've got broken
> pkg-config for some reason.

Not sure.  It's a rather vanilla o32/n32/n64 chroot from a mips multilib stage3 that I was updating for use as a newer seed stage3 to start building big-endian n32 stages from.  It's got libxslt-1.1.28-r1 installed in it, it just doesn't seem to like -r3.

Is there something specific I should check into that may provide more useful info for you?
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-12 08:56:53 UTC
No need to, I already looked into configure script and it's crap. I'm going to prepare a patch as soon as I can.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-03 09:51:59 UTC
+*libxml2-2.9.1-r5 (03 Sep 2014)
+
+  03 Sep 2014; Michał Górny <mgorny@gentoo.org> +libxml2-2.9.1-r5.ebuild:
+  CHOST-ize xml2-config, for bug #518728.

+*libxslt-1.1.28-r4 (03 Sep 2014)
+
+  03 Sep 2014; Michał Górny <mgorny@gentoo.org>
+  +files/libxslt-1.1.28-AC_PATH_TOOL.patch, +libxslt-1.1.28-r4.ebuild:
+  Use wrapped xml2-config, bug #518728. And CHOST-ize xslt-config too while at
+  it.

I'm pretty sure this fixes it but please confirm :).
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2014-09-03 19:20:41 UTC
Yes it works thanks a lot
Comment 11 David Holm 2014-09-13 16:56:03 UTC
Confirmed!