Package: kannel-sqlbox Version: 0.7.2-3 Severity: normal Tags: upstream patch User: [email protected] Usertags: ld-as-needed
The package fails to build when --as-needed linker option is enabled, because of incorrect order of parameters passed to ld. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/72074831/buildlog_ubuntu-oneiric-i386.kannel-sqlbox_0.7.2-3build1_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries The attached patch was used in Ubuntu to fix the problem. https://launchpad.net/ubuntu/+source/kannel-sqlbox/0.7.2-3ubuntu1 -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty-proposed'), (500, 'natty'), (100, 'natty-backports') Architecture: i386 (i686) Kernel: Linux 2.6.38-11-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
Description: Fix failure to build with --as-needed linker option. Place libraries in LIBS variable to ensure correct order of parameters to ld. Author: Ilya Barygin <[email protected]> Bug-Ubuntu: https://launchpad.net/bugs/770876 --- kannel-sqlbox-0.7.2.orig/configure.in +++ kannel-sqlbox-0.7.2/configure.in @@ -417,7 +417,7 @@ else AC_MSG_RESULT([$gw_version]) AC_MSG_CHECKING([Kannel libs]) if ! $GW_CONFIG --libs &>/dev/null ; then - LDFLAGS="$LDFLAGS `$GW_CONFIG --libs`" + LIBS="`$GW_CONFIG --libs` $LIBS" gw_libdir=`$GW_CONFIG --libs` AC_MSG_RESULT([$gw_libdir]) fi

