Hello,

On Mon, Jul 04, 2011 at 02:18:35AM +0000, Clint Adams wrote:
 
> 1 of 122 tests failed.  (2 tests were not run).  
[..]
> /usr/bin/ld: .libs/hello.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local 
> symbol' can not be used when making a shared object; recompile with -fPIC
> .libs/hello.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [libhello.la] Error 1

The following patch taken from Ubuntu delta seems to fix the problem by
disabling such test (tested patch):


diff -Nru libtool-2.4/debian/changelog libtool-2.4/debian/changelog
--- libtool-2.4/debian/changelog        2011-04-07 21:14:37.000000000 +0100
+++ libtool-2.4/debian/changelog        2011-07-11 14:43:58.000000000 +0100
@@ -1,3 +1,9 @@
+libtool (2.4-3) unstable; urgency=low
+
+  * Skip non-PIC on arm
+
+ -- Hector Oron <zu...@debian.org>  Mon, 11 Jul 2011 14:42:06 +0100
+
 libtool (2.4-2) unstable; urgency=low

   * Add support for hurd (Closes: #612204)
diff -Nru libtool-2.4/debian/patches/series libtool-2.4/debian/patches/series
--- libtool-2.4/debian/patches/series   2011-04-07 21:14:56.000000000 +0100
+++ libtool-2.4/debian/patches/series   2011-07-11 14:41:05.000000000 +0100
@@ -10,3 +10,4 @@
 tagdemo-libfoo.patch
 disable_cmdline_wrap4hurd.patch
 debian-changes-2.4-2
+skip_nonpic_on_arm.patchskip_nonpic_on_arm.patch
diff -Nru 
libtool-2.4/debian/patches/skip_nonpic_on_arm.patchskip_nonpic_on_arm.patch 
libtool-2.4/debian/patches/skip_nonpic_on_arm.patchskip_nonpic_on_arm.patch
--- libtool-2.4/debian/patches/skip_nonpic_on_arm.patchskip_nonpic_on_arm.patch 
1970-01-01 01:00:00.000000000 +0100
+++ libtool-2.4/debian/patches/skip_nonpic_on_arm.patchskip_nonpic_on_arm.patch 
2011-07-11 14:40:25.000000000 +0100
@@ -0,0 +1,13 @@
+Index: libtool-2.2.6b/tests/demo-nopic.test
+===================================================================
+--- libtool-2.2.6b.orig/tests/demo-nopic.test  2010-01-05 11:25:16.207207125 
-0500
++++ libtool-2.2.6b/tests/demo-nopic.test       2010-01-05 11:25:26.677194871 
-0500
+@@ -26,7 +26,7 @@
+ . tests/defs || exit 1
+
+ case "$host" in
+-hppa*|x86_64*|s390*|mips*)
++hppa*|x86_64*|s390*|mips*|arm*)
+       func_skip "$host doesn't like non-PIC shared libs"
+       ;;
+ *-solaris*|*-sunos*)

Snipet taken from
 < http://patches.ubuntu.com/libt/libtool/libtool_2.4-2ubuntu1.patch >

Best regards,
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar System, 
which one day will disconnect us."

-- Day DVB-T stop working nicely
Video flare: http://antwrp.gsfc.nasa.gov/apod/ap100510.html

Attachment: signature.asc
Description: Digital signature

Reply via email to