[Debian-med-packaging] Bug#837417: ctn: Please build libctn.a with -fPIC

Balint Reczey balint at balintreczey.hu
Wed Sep 28 19:59:28 UTC 2016


Control: tags -1 patch pending

Dear Maintainers,


On Sun, 11 Sep 2016 15:00:23 +0200 Balint Reczey
<balint at balintreczey.hu> wrote:
....
> Dear Maintainers,
> 
> During a rebuild of all packages in sid, dicomnifti failed to build on
> amd64 with patched GCC and dpkg. The root cause seems to be that
> libbfd.a is shipped as a non-PIC library.
> 
> The rebuild tested if packages are ready for a transition
> enabling PIE and bindnow for amd64.
> 
> For more information about the changes to sid's dpkg and GCC please
> visit:
>  https://wiki.debian.org/Hardening/PIEByDefaultTransitio
> 
> Relevant part of dicomnifti's build log:
> ...
> [ 57%] Linking CXX executable dinifti
> /usr/bin/cmake -E cmake_link_script CMakeFiles/dinifti.dir/link.txt
> --verbose=1
> /usr/bin/c++   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -Wformat -Werror=
> format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wl,-z,relro
> -Wl,-z,now CMakeFiles/dinifti.dir/src/
> dinifti.cc.o CMakeFiles/dinifti.dir/src/dicomInfo.cc.o
> CMakeFiles/dinifti.dir/src/niftiout.cc.o  -o di
> nifti -rdynamic /usr/lib/ctn/libctn.a -lniftiio -lznz
> /usr/bin/ld: /usr/lib/ctn/libctn.a(condition.o): relocation R_X86_64_32
> against `.bss' can not be used
>  when making a shared object; recompile with -fPIC

Please see the proposed patch attached.

I'm about to upload the changed package to DELAYED/5 as an NMU.

Cheers,
Balint
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctn_3.2.0~dfsg-3.1.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160928/d984769c/attachment.bin>


More information about the Debian-med-packaging mailing list