Bug#837424: portaudio19: Please build libportaudio.a with -fPIC

Balint Reczey balint at balintreczey.hu
Thu Sep 29 13:00:24 UTC 2016


Control: tags -1 patch pending

Dear Maintainers,

On Sun, 11 Sep 2016 15:47:54 +0200 Balint Reczey
<balint at balintreczey.hu> wrote:
> Source: portaudio19
> Version: 19+svn20140130-1
> Severity: important
> User: balint at balintreczey.hu
> Usertags: pie-bindnow-20160906
> Justification: makes espeakup FTBFS on amd64 with extra hardening
> Affects: espeakup
> 
> Dear Maintainers,
> 
> During a rebuild of all packages in sid, espeakup failed to build on
> amd64 with patched GCC and dpkg. The root cause seems to be that
> libportaudio.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/PIEByDefaultTransition
> 
> Relevant part of espeakup's build log:
> ...
> cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
> -Wformat -Werror=format-secur
> ity -Os -MMD -Wall   -c -o stringhandling.o stringhandling.c
> cc -u _Unwind_Resume -u __gcc_personality_v0 -u _Unwind_ForcedUnwind -u
> _Unwind_GetCFA -u _Unwind_GetB
> SP -lgcc_s  espeakup.o cli.o espeak.o queue.o signal.o softsynth.o
> stringhandling.o  /usr/lib/x86_64-l
> inux-gnu/libespeak.a /usr/lib/x86_64-linux-gnu/libsonic.a
> /usr/lib/x86_64-linux-gnu/libportaudio.a /us
> r/lib/x86_64-linux-gnu/libjack.a -lm -lpthread -lasound -lrt -o espeakup
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_front.o):
> relocation R_X86_64_32 against `.ro
> data.str1.8' can not be used when making a shared object; recompile with
> -fPIC
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_unix_util.o):
> relocation R_X86_64_32 against
> `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_linux_alsa.o):
> relocation R_X86_64_32 against
>  `.rodata.str1.8' 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: portaudio19_19+svn20140130-1.1.patch
Type: text/x-patch
Size: 6518 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20160929/7ea9ea54/attachment.bin>


More information about the Pkg-voip-maintainers mailing list