Subject: bug#18521: AbiWord fails to build on x86_64-linux and mips64el-linux

From: [email-masked] (Ludovic Courtès)
Date: Mon, 22 Sep 2014 09:44:59 +0200

AbiWord somehow ends up trying to link its shared libraries against a
static library, libots-1.a, which fails on x86_64 (from
<http://hydra.gnu.org/build/95238>):

--8<---------------cut here---------------start------------->8---
make[4]: Entering directory '/tmp/nix-build-abiword-2.8.6.drv-0/abiword-2.8.6/plugins/ots'
make[4]: Nothing to be done for 'install-exec-am'.
test -z "/gnu/store/dvdfbkfrr0kfmkvsb2a1fssj6b7xx2i7-abiword-2.8.6/lib/abiword-2.8/plugins" || /gnu/store/1fzyq6lz4xcwqq8zvjfy4696m8vz4mqy-coreutils-8.22/bin/mkdir -p "/gnu/store/dvdfbkfrr0kfmkvsb2a1fssj6b7xx2i7-abiword-2.8.6/lib/abiword-2.8/plugins"
 ../../doltlibtool   --mode=install /gnu/store/1fzyq6lz4xcwqq8zvjfy4696m8vz4mqy-coreutils-8.22/bin/install -c   ots.la '/gnu/store/dvdfbkfrr0kfmkvsb2a1fssj6b7xx2i7-abiword-2.8.6/lib/abiword-2.8/plugins'
libtool: install: warning: relinking `ots.la'
libtool: relink: warning: `/gnu/store/1qf4rsznfhvdis39jzdmx0dfjy2jwzgz-gcc-4.8.3-lib/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../libstdc++.la' seems to be moved
ld: /gnu/store/y9iixmdbsxbn277ca8a68fb8641hy6py-ots-0.5.0/lib/libots-1.a(article.o): relocation R_X86_64_32 against `g_free' can not be used when making a shared object; recompile with -fPIC
/gnu/store/y9iixmdbsxbn277ca8a68fb8641hy6py-ots-0.5.0/lib/libots-1.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
--8<---------------cut here---------------end--------------->8---

The mips64el-linux failure is similar (from
<http://hydra.gnu.org/build/95239>):

--8<---------------cut here---------------start------------->8---
mv -f .deps/libabiword_2_8_la-libabiword.Tpo .deps/libabiword_2_8_la-libabiword.Plo
ld: /gnu/store/nqgv5gb80j7s1sbnpx4lyykcwh1fprf9-fribidi-0.19.6/lib/libfribidi.a(fribidi-deprecated.o): relocation R_MIPS_HI16 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/gnu/store/nqgv5gb80j7s1sbnpx4lyykcwh1fprf9-fribidi-0.19.6/lib/libfribidi.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
--8<---------------cut here---------------end--------------->8---

Could you look into it?

Ludo’.