Bug#614148: guiqwt: FTBFS: tries to include non-PIC FORTRAN object in shared library

Lifeng Sun lifongsun at gmail.com
Sun Feb 20 11:50:10 UTC 2011


Hello,

I find it works on my MIPS box by simply export FFLAGS=-fPIC in
debian/rules.


regards,
Lifeng

On 18:13 Sat 02/19/11 Feb     , Aaron M. Ucko wrote:
> Package: guiqwt
> Version: 2.0.8.1-1
> Severity: serious
> Justification: fails to build from source (but built successfully in the past)
> 
> Builds of guiqwt are failing on architectures such as amd64 that
> require all objects comprising a shared library to have been compiled
> as position-independent code:
> 
>    /usr/bin/gfortran -Wall -shared build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/guiqwt/_extmodule.o build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/fortranobject.o build/temp.linux-x86_64-2.5/src/histogram.o -lgfortran -o build/lib.linux-x86_64-2.5/guiqwt/_ext.so
>    /usr/bin/ld: build/temp.linux-x86_64-2.5/src/histogram.o: relocation R_X86_64_PC32 against undefined symbol `lround@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
> 
> Could you please contrive to pass the (undocumented!) -fPIC option to
> the FORTRAN compiler as well as the C one?
> 
> Thanks!
> 
> 
> 
> --
> debian-science-maintainers mailing list
> debian-science-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-science-maintainers

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: GnuPG digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20110220/b8bd2a58/attachment-0001.pgp>


More information about the debian-science-maintainers mailing list