Your message dated Sun, 27 Nov 2011 22:48:49 +0000
with message-id <[email protected]>
and subject line Bug#650180: fixed in metis-edf 4.1-2-2
has caused the Debian Bug report #650180,
regarding metis-edf: FTBFS - missing link at math
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
650180: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650180
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- a/Makefile
+++ b/Makefile
@@ -5,29 +5,21 @@
SUBDIRS=Lib Programs
CONFDIR=./CONFIG
-default: Makefile.in onmetis.exe pmetis kmetis tests
+default: Makefile.in libs programs
-onmetis.exe: Makefile.in
- for d in $(SUBDIRS); do \
- (cd $$d && $(MAKE)); \
- done
-
-pmetis: Makefile.in
- for d in $(SUBDIRS); do \
- (cd $$d && $(MAKE)); \
- done
+libs: Makefile.in
+ (cd Lib && $(MAKE))
-kmetis: Makefile.in
+programs: Makefile.in
for d in $(SUBDIRS); do \
(cd $$d && $(MAKE)); \
done
-
tests:
cd Test ; make
-clean:
+clean: Makefile.in
for d in $(SUBDIRS) Test; do \
(cd $$d && $(MAKE) $@); \
done
@@ -42,5 +34,6 @@
# config : define variables depends on platform
# Linux, IRIX64, SunOS (SOLARIS/SOLARIS64), OSF1 (TRU64)
Makefile.in:
+ echo "Creating Makefile.in"
sh $(CONFDIR)/configure
--- a/Lib/Makefile
+++ b/Lib/Makefile
@@ -2,7 +2,6 @@
INCLUDES = -I.
-CFLAGS = $(COPTIONS) $(INCLUDES)
LD = $(CC) -L.
@@ -17,14 +16,23 @@
mrefine2.o minitpart2.o mbalance2.o mfm2.o \
kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o
+all: ../libmetis-edf.a ../libmetis-edf.so
+
+
.c.o:
- $(CC) $(CFLAGS) -c $*.c
+ $(CC) $(COPTIONS) $(INCLUDES) -c $*.c
-../libmetis.a: $(OBJS)
+../libmetis-edf.a: $(OBJS)
$(AR) $@ $(OBJS)
+../libmetis-edf.so: $(OBJS)
+ $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) -Wl,-soname,libmetis-edf.so.4.1 -lm
+ (cd .. && mv libmetis-edf.so libmetis-edf.so.4.1)
+ (cd .. && ln -s libmetis-edf.so.4.1 libmetis-edf.so.4)
+ (cd .. && ln -s libmetis-edf.so.4 libmetis-edf.so)
+
clean:
rm -f *.o
distclean:
- rm -f *.o ; rm -f ../libmetis.a
+ rm -f *.o ; rm -f ../libmetis.a ../libmetis.so*
--- a/Test/Makefile
+++ b/Test/Makefile
@@ -4,12 +4,12 @@
vers_check:
@echo "### Test 2 : test --version option, onmetis returns :"
- (../onmetis --version ; exit 0)
+ (export LD_LIBRARY_PATH=..; ../onmetis.exe --version ; exit 0)
@echo " "
fort.85 : fort.81
@echo "### Test 1 : data file produced by Code_Aster"
- ../onmetis fort.81
+ (export LD_LIBRARY_PATH=..; ../onmetis.exe fort.81; exit 0)
@echo " "
clean:
--- a/Programs/Makefile
+++ b/Programs/Makefile
@@ -3,10 +3,8 @@
BINDIR = ..
INCLUDES = -I../Lib
-CFLAGS = $(COPTIONS) $(INCLUDES)
-FFLAGS = $(FOPTIONS) $(INCLUDES)
-LIBS = -lmetis -lm
-METISLIB = ../libmetis.a
+LIBS = -L.. -lmetis-edf -lm
+METISLIB =
ONMETISOBJS = onmetis.o io_aster.o smbfactor.o ecri11.o lect11.o lect00.o
@@ -16,21 +14,21 @@
.c.o:
- $(CC) $(CFLAGS) -c $*.c
+ $(CC) $(COPTIONS) $(INCLUDES) -c $*.c
default: $(BINDIR)/onmetis.exe $(BINDIR)/pmetis $(BINDIR)/kmetis
-$(BINDIR)/onmetis.exe: $(ONMETISOBJS) $(METISLIB)
+$(BINDIR)/onmetis.exe: $(ONMETISOBJS)
$(LD) $(LDOPTIONS) -o $@ $(ONMETISOBJS) $(LIBS)
chmod 755 $@
-$(BINDIR)/pmetis: $(PMETISOBJS) $(METISLIB)
+$(BINDIR)/pmetis: $(PMETISOBJS)
$(LD) $(LDOPTIONS) -o $@ $(PMETISOBJS) $(LIBS)
chmod 755 $@
-$(BINDIR)/kmetis: $(KMETISOBJS) $(METISLIB)
+$(BINDIR)/kmetis: $(KMETISOBJS)
$(LD) $(LDOPTIONS) -o $@ $(KMETISOBJS) $(LIBS)
chmod 755 $@
@@ -38,11 +36,11 @@
clean:
rm -f *.o
ecri11.o:ecri11.f
- $(F90) $(FFLAGS) -c ecri11.f
+ $(F90) $(FOPTIONS) $(INCLUDES) -c ecri11.f
lect11.o:lect11.f
- $(F90) $(FFLAGS) -c lect11.f
+ $(F90) $(FOPTIONS) $(INCLUDES) -c lect11.f
lect00.o:lect00.f
- $(F90) $(FFLAGS) -c lect00.f
+ $(F90) $(FOPTIONS) $(INCLUDES) -c lect00.f
distclean:
rm -f *.o ;\
rm -f $(BINDIR)/onmetis.exe ;
--- End Message ---
--- Begin Message ---
Source: metis-edf
Source-Version: 4.1-2-2
We believe that the bug you reported is fixed in the latest version of
metis-edf, which is due to be installed in the Debian FTP archive:
libmetis-edf-dev_4.1-2-2_amd64.deb
to non-free/m/metis-edf/libmetis-edf-dev_4.1-2-2_amd64.deb
libmetis-edf4.1_4.1-2-2_amd64.deb
to non-free/m/metis-edf/libmetis-edf4.1_4.1-2-2_amd64.deb
metis-edf_4.1-2-2.debian.tar.gz
to non-free/m/metis-edf/metis-edf_4.1-2-2.debian.tar.gz
metis-edf_4.1-2-2.dsc
to non-free/m/metis-edf/metis-edf_4.1-2-2.dsc
metis-edf_4.1-2-2_amd64.deb
to non-free/m/metis-edf/metis-edf_4.1-2-2_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sylvestre Ledru <[email protected]> (supplier of updated metis-edf package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 27 Nov 2011 22:38:04 +0100
Source: metis-edf
Binary: metis-edf libmetis-edf4.1 libmetis-edf-dev
Architecture: source amd64
Version: 4.1-2-2
Distribution: unstable
Urgency: low
Maintainer: Debian Science Team
<[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Description:
libmetis-edf-dev - Family of Multilevel Partitioning Algorithms
libmetis-edf4.1 - Family of Multilevel Partitioning Algorithms
metis-edf - Family of Multilevel Partitioning Algorithms
Closes: 650178 650180
Changes:
metis-edf (4.1-2-2) unstable; urgency=low
.
* Team upload.
* FTBFS - missing link at math fixed (Closes: #650180)
* FTBFS with -Werror=format-security fixed (Closes: #650178)
Thanks to Leo Iannacone for the two FTBFS fixes.
Checksums-Sha1:
e2eb7cd17ec4cec63277456930e5586e53fe661c 1521 metis-edf_4.1-2-2.dsc
0b7d6aac43fc2f2074de98a84f3809cabbe9d776 6246 metis-edf_4.1-2-2.debian.tar.gz
3726ce36b2bdaeb8a459290aaad11abc9c5869e4 23086 metis-edf_4.1-2-2_amd64.deb
0b7c98e755f5e604a818c753a9e83d73f00136c7 133456
libmetis-edf4.1_4.1-2-2_amd64.deb
50966eaa20d7c403db033efd6bdbda86792e579a 5690
libmetis-edf-dev_4.1-2-2_amd64.deb
Checksums-Sha256:
aad1997fd267ec70073c97a19fba84b44dc00bd3d3e1e4e10c18b7b86b3408ba 1521
metis-edf_4.1-2-2.dsc
1697981be8c590140f8a9b2869495fcfdab9b00e4b990ec96f9ed530400da543 6246
metis-edf_4.1-2-2.debian.tar.gz
ffaf6ee3de08d5d0a256a9e81d8f3e91a30e0c39af2407883cbba9f3653a51a1 23086
metis-edf_4.1-2-2_amd64.deb
7806502fe116f6f63d59c305ee56447c86d42cfd65cb5182cac8fc28041b45e2 133456
libmetis-edf4.1_4.1-2-2_amd64.deb
8057ccd618fe67939419909bf4ca6d1fbc043d2242f868c463cf174f223db44a 5690
libmetis-edf-dev_4.1-2-2_amd64.deb
Files:
df7841aa4e21ed70d4661af17946a589 1521 non-free/math extra metis-edf_4.1-2-2.dsc
ce4bb6522b5d59762c664875db812445 6246 non-free/math extra
metis-edf_4.1-2-2.debian.tar.gz
5cf4c7457c73232f737695e0e64846db 23086 non-free/math extra
metis-edf_4.1-2-2_amd64.deb
18a6aa132702b933cd7cbfef94231160 133456 non-free/libs extra
libmetis-edf4.1_4.1-2-2_amd64.deb
890fd57c3188b63cbf94dab361b879c6 5690 non-free/libdevel extra
libmetis-edf-dev_4.1-2-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk7Sr5sACgkQiOXXM92JlhCcnQCgx8AC25rjI2I67dYtM69+mcIb
2ZYAoJGRMs2lQ3M89uvd8JAzf8E0neZZ
=0uda
-----END PGP SIGNATURE-----
--- End Message ---