Bug#680289: libmath-tamuanova-perl: Build with -Wl,--no-as-needed

Ilya Barygin randomaction at ubuntu.com
Wed Jul 4 20:01:13 UTC 2012


Package: libmath-tamuanova-perl
Version: 1.0.2-1
Severity: wishlist

libmath-tamuanova-perl failed to build in Ubuntu (see
https://launchpad.net/ubuntu/+source/libmath-tamuanova-perl/1.0.2-1 ,
with links to logs) because Ubuntu builds use -Wl,--as-needed option
by default. The problem is that GSL library is underlinked, and that
makes the resulting module unusable:

#   Failed test 'use Math::TamuAnova;'
#   at t/TamuAnova.t line 9.
#     Tried to use 'Math::TamuAnova'.
#     Error:  Can't load '/build/buildd/libmath-tamuanova-perl-1.0.2/blib/arch/auto/Math/TamuAnova/TamuAnova.so' for module Math::TamuAnova: /usr/lib/libgsl.so.0: undefined symbol: cblas_dasum at /usr/lib/perl/5.14/DynaLoader.pm line 184.
#  at (eval 4) line 2
# Compilation failed in require at (eval 4) line 2.

This seems to be a feature of GSL (see bug #477729), so I just modified build
options:

diff -Nru libmath-tamuanova-perl-1.0.2/debian/rules libmath-tamuanova-perl-1.0.2/debian/rules
--- libmath-tamuanova-perl-1.0.2/debian/rules	2012-06-25 14:59:08.000000000 +0000
+++ libmath-tamuanova-perl-1.0.2/debian/rules	2012-07-04 19:35:55.000000000 +0000
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 
+export LDFLAGS += -Wl,--no-as-needed
 %:
 	dh $@

Given that Debian builds already use -Wl,--no-as-needed (as default), I
propose to add that to packaging explicitly so that we don't need to have a
modified package for Ubuntu.

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

Kernel: Linux 3.2.0-26-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the pkg-perl-maintainers mailing list