Bug#650180: metis-edf: FTBFS - missing link at math

Leo Iannacone l3on at ubuntu.com
Sun Nov 27 13:23:30 UTC 2011


Subject: metis-edf: FTBFS - missing link at math
Package: metis-edf
Severity: normal

metis-edf fails to build on Ubuntu.

Bits from my pbuilder:

...
io.c: In function 'ReadMesh':
io.c:308:9: warning: 'esize' may be used uninitialized in this
function [-Wuninitialized]
gfortran -Wl,-Bsymbolic-functions -Wl,-z,relro -L. -L.. -o ../pmetis
pmetis.o io.o  -L.. -lmetis-edf -lm
../libmetis-edf.so: undefined reference to `sqrtf'
../libmetis-edf.so: undefined reference to `log'
../libmetis-edf.so: undefined reference to `pow'
collect2: ld returned 1 exit status
make[2]: *** [../pmetis] Error 1

It seems that Makefile lacks math linking somewhere.

To fix problem, plase add '-lm' at "../libmetis-edf.so" in Libs/Makefile

- $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) -Wl,-soname,libmetis-edf.so.4.1
+ $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) -Wl,-soname,libmetis-edf.so.4.1 -lm

In attachment you can find a update version of Makefile.patch fixing this issue.

Thanks a lot!

Leo Iannacone.

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric'), (100,
'oneiric-backports')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-13-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.patch
Type: text/x-patch
Size: 3460 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20111127/9277f39e/attachment.bin>


More information about the debian-science-maintainers mailing list