package: libplayer
severity: important

libplayer FTBFS on armhf with the message

/usr/bin/ld.bfd.real: mrl.o: relocation R_ARM_THM_MOVW_ABS_NC against `a
local symbol' can not be used when making a shared object; recompile
with -fPIC

Looking at debian/rules it looks like there was already an attempt to
add -fPIC to the CFLAGS but it only works if CFLAGS is already set in
the environment (which current dpkg-buildpackage doesn't do anymore). I
added the export statement so that it would be effective regardless of
whether CFLAGS is already set in the environment and the package built
successfully. I've attatched a patch that makes that change.

I do not know why libplayer succeeds on other architectures.

--- libplayer-2.0.1/debian/rules	2010-10-03 08:08:44.000000000 +0000
+++ libplayer-2.0.1.new/debian/rules	2012-01-19 19:05:28.000000000 +0000
@@ -4,7 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-CFLAGS += -fPIC
+export CFLAGS += -fPIC
 
 CONFIGURE_OPTS = --prefix=/usr --disable-strip --enable-doc --enable-mplayer --enable-xine --enable-gstreamer --enable-vlc
 

Reply via email to