Package: libaal
Version: 1.0.6-2
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch


Package partclone_0.2.89-1 FTBFS on mips and mipsel with following error:

> configure:8100: gcc -o conftest -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wdate-time 
> -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c -laal  -lpthread  >&5
> /usr/bin/ld: 
> /usr/lib/gcc/mips-linux-gnu/6/../../../mips-linux-gnu/libaal.a(libaal_la-device.o):
>  relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making 
> a shared object; recompile with -fPIC
> /usr/lib/gcc/mips-linux-gnu/6/../../../mips-linux-gnu/libaal.a: error adding 
> symbols: Bad value
> collect2: error: ld returned 1 exit status

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=partclone&arch=mips&ver=0.2.89-1&stamp=1479125695

The problem occurs because -fPIC flag is not used during libaal build.
This flag had been already added in debian rules but in configure.in all 
additional CFLAGS was ignored.

I have created and attached a patch that resolves this issue.
With this patch package builds successfully on mips, mipsel, mips64el and i386 
architectures.

Regards,
Radovan
--- libaal-1.0.6_orig/configure.in	2016-11-18 14:40:12.903585244 +0000
+++ libaal-1.0.6/configure.in	2016-11-18 14:39:29.593384612 +0000
@@ -126,7 +126,8 @@ else
   ALIGN_FLAGS="-malign-jumps=1 -malign-loops=1 -malign-functions=1"
 fi
 
-CFLAGS=""
+# This disables possibility to specify any additional CFLAGS in configure line
+#CFLAGS=""
 MINIMAL_CFLAGS=""
 GENERIC_CFLAGS=""
 

Reply via email to