libaubio.a (amd64) built without -fPIC

Bug #317864 reported by cannam
2
Affects Status Importance Assigned to Milestone
aubio (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libaubio-dev

Attempting to link a dynamic object statically against libaubio on an amd64 install gives the following error:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/libaubio.a(phasevoc.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

This is libaubio-dev 0.3.2-2ubuntu1 installed from the 8.10 repositories. I assume the proper solution is just to ensure that the library is compiled with -fPIC as per the message.

Revision history for this message
Paul Brossier (piem) wrote :

Hi Chris,

According to the build logs and the debian policy (10.2), the library *is* built with -fPIC.

What command are you using to build statically? On i386, the following command works fine:

$ gcc -o test-phasevoc test-phasevoc.c /usr/lib/libaubio.a /usr/lib/libfftw3f.a /usr/lib/libm.a

Cheers, Paul

Revision history for this message
cannam (cannam) wrote : Re: [Bug 317864] Re: libaubio.a (amd64) built without -fPIC

Paul,

You're quite right -- this appears to be fine with the 0.3.2-2ubuntu3
shipped in 9.04. I can only assume it changed during the last couple
of updates.

Chris

Revision history for this message
Paul Brossier (piem) wrote :

Alright, marked as fixed then.

Cheers, Paul

Changed in aubio (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.