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

Aaron M. Ucko ucko at debian.org
Sat Feb 19 23:13:51 UTC 2011


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!





More information about the debian-science-maintainers mailing list