[Debian-med-packaging] Bug#702882: f2c is simply not added to the linker flags

Giulio Paci giuliopaci at gmail.com
Thu Dec 19 11:10:33 UTC 2013


Il 19/dic/2013 09:34 "Andreas Tille" <andreas at an3as.eu> ha scritto:
>
> Hi,
>
> On Mon, Dec 09, 2013 at 06:16:41PM +0100, Gert Wollny wrote:
> > here the configure script claims that f2c is added anyway:
> >
> > >   [AC_MSG_RESULT(not found, trying to use -lf2c anyway.)]
> >
> > but then it does this (and the patch doesn't touch that line):
> >
> > >   LDFLAGS="${LDFLAGS}"
> >
> > which should read (just like the in the BLAS test below)
> >
> >   LDFLAGS="${LDFLAGS} -lf2c"

Not needed to do explicitly because the patch fixes the test for libf2c.

> I tested the proposed "ugly_fix.patch" which leads to the following
> build log snippets:
>
> ...
> checking for gmp.h... yes
> checking for f77_alloc_ in -lf2c... no
> checking for f77_alloc in -lf2c... no
> checking for F77_ALLOC_ in -lf2c... no
> checking for F77_ALLOC in -lf2c... no
> checking for f_open in -lf2c... yes
> checking for daxpy_ in -lblas... yes
> checking for dlarnv_ in -llapack... yes
> ...
> ...
>   Use internal F2C       -- no
> ...
> ...
> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
-I/usr/include/libxml2  -Wl,-z,relro -lgmp -lblas -llapack -larpack -lglpk
- o libplfit.la  error.lo gss.lo kolmogorov.lo lbfgs.lo options.lo plfit.lo
zeta.lo  -larpack -llapack -lblas -lf2c
> ...
> ...
> dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/libigraph0/usr/lib/x86_64-linux-gnu/libigraph.so.0.0.0 was not
linked against libf2c.so.2 (it uses none of the library's symbols)
> ...

This is probably true. There is no FORTRAN code in libigraph. Why linking
to f2c?
I did not investigate the problem further in March, and I still am not able
to allocate enough time to help on this issue now.

Bests,
Giulio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20131219/7a24cf33/attachment.html>


More information about the Debian-med-packaging mailing list