Bug#655216: jack-tools: FTBFS with ld --as-needed
Leo Iannacone
l3on at ubuntu.com
Mon Jan 9 12:43:17 UTC 2012
Package: jack-tools
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch
--r maintainer,
jack-tools fails to build with ld-as-needed.
The entire buildlog can be found here:
http://pastebin.com/raw.php?i=8S20yMNM
Snippet:
/bin/bash ./libtool --tag=CC --mode=link gcc -D_POSIX_C_SOURCE=200112 -std=c99 -O3 -funroll-loops -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wl,-Bsymbolic-functions -Wl,-z,relro -ldl -lm -o jack.udp jack_udp-jack.udp.o common/libcommon.a -ljack -lpthread -lrt
libtool: link: gcc -D_POSIX_C_SOURCE=200112 -std=c99 -O3 -funroll-loops -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -o jack.udp jack_udp-jack.udp.o -ldl -lm common/libcommon.a -ljack -lpthread -lrt
/usr/bin/ld: common/libcommon.a(libcommon_a-time-timeval.o): undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libm.so so try adding it to the linker command line
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libm.so: could not read symbols: Invalid operation
Can you kindly consider to remove LDFLAGS from debian/rules and apply the following patch, that adds LIBS="-lm -ldl" to configure.ac.
Thanks in advance.
Leo.
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.2.0-030200rc7-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 --------------
Description: Declaring math lib and dynamic loaded lib to LIBS to fix FTBFS
Author: Leo Iannacone <l3on at ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/913459
Forwarded: no
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
--- jack-tools-20101210.orig/configure.ac
+++ jack-tools-20101210/configure.ac
@@ -50,6 +50,8 @@ AC_CHECK_HEADERS(sys/inotify.h, AC_DEFIN
AC_SUBST(AM_CFLAGS)
AM_CFLAGS="-D_POSIX_C_SOURCE=200112 -std=c99 -O3 -funroll-loops -Wall"
+AC_SUBST(LIBS)
+LIBS="-lm -ldl"
# Write Makefile.
More information about the pkg-multimedia-maintainers
mailing list