Source: 4ti2
Version: 1.6.2+ds1-1
Tags: patch

Hi Maintainer

While investigating a FTBFS in Ubuntu [1], I found the following lines in the build logs of 4ti2:

dpkg-shlibdeps: warning: debian/4ti2/usr/lib/i386-linux-gnu/4ti2/lib/libzsolve.so contains an unresolvable reference to symbol __gmpz_init_set_ui: it's probably a plugin dpkg-shlibdeps: warning: 22 other similar warnings have been skipped (use -v to see them all)

The attached patch links libzsolve.so with libgmpxx and libgmp and allowed 4ti2 to build on all architectures in Ubuntu [2].

Regards
Graham


[1] https://launchpad.net/ubuntu/+source/4ti2/1.6.2+ds1-1
[2] https://launchpad.net/ubuntu/+source/4ti2/1.6.2+ds1-1ubuntu1

Description: fix underlinking of libzsolve.so
 This fixes a FTBFS in Ubuntu with the following errors:
 ../../../src/zsolve/.libs/libzsolve.so: undefined reference to
 `operator<<(std::ostream&, __mpz_struct const*)'
 ../../../src/zsolve/.libs/libzsolve.so: undefined reference to
 `operator>>(std::istream&, __mpz_struct*)'
Author: Graham Inggs <gra...@nerve.org.za>
Last-Update: 2015-10-05
--- a/src/zsolve/Makefile.am
+++ b/src/zsolve/Makefile.am
@@ -91,7 +91,7 @@
 # Link in the "common" 4ti2 functions.
 # -no-undefined declares that no undefined symbols will remain after linking all these libraries.
 # (This is necessary to build shared libraries on Cygwin.)
-libzsolve_la_LDFLAGS = -L../4ti2 -R$(pkgliblibdir) -l4ti2common -no-undefined -avoid-version
+libzsolve_la_LDFLAGS = -L../4ti2 -R$(pkgliblibdir) -l4ti2common -lgmpxx -lgmp -no-undefined -avoid-version
 
 bin_SCRIPTS = 4ti2-hilbert 4ti2-graver
 DISTCLEANFILES = $(bin_SCRIPTS)
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to