From patchwork Sun Mar 30 12:18:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 335116 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A69181400C3 for ; Sun, 30 Mar 2014 23:19:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0B5E187E8A; Sun, 30 Mar 2014 12:19:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tM3KGXSKQtu0; Sun, 30 Mar 2014 12:19:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EDB6C87B91; Sun, 30 Mar 2014 12:19:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 024FE1C0EC7 for ; Sun, 30 Mar 2014 12:19:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F192A80A1A for ; Sun, 30 Mar 2014 12:19:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I70KAkku-Pen for ; Sun, 30 Mar 2014 12:19:08 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by whitealder.osuosl.org (Postfix) with ESMTP id 1ADC681148 for ; Sun, 30 Mar 2014 12:19:06 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp3-g21.free.fr (Postfix) with ESMTP id 01BD0A620F; Sun, 30 Mar 2014 14:19:00 +0200 (CEST) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 30 Mar 2014 14:18:50 +0200 Message-Id: <1396181930-21038-1-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.0 Subject: [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net According to uClibc commit [1], dlinfo is not available. To be able to use LTTng UST with uClibc, we need to disable the Dynamic Linker Tracing functionality [2]. Fixes: http://autobuild.buildroot.net/results/a6c/a6c33dd7ec2a36a50c5ea74b989a371d6c85e899/build-end.log [1] http://git.uclibc.org/uClibc/commit/?id=f3c9dc499c5c787ddd8c4320f2d44d2ae6e40c22 [2] http://lists.lttng.org/pipermail/lttng-dev/2014-February/022423.html Signed-off-by: Romain Naour Reviewed-by: "Yann E. MORIN" --- ...iblttng-ust-dl-if-dlinfo-is-not-available.patch | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 package/lttng-libust/lttng-libust-0001-Disable-liblttng-ust-dl-if-dlinfo-is-not-available.patch diff --git a/package/lttng-libust/lttng-libust-0001-Disable-liblttng-ust-dl-if-dlinfo-is-not-available.patch b/package/lttng-libust/lttng-libust-0001-Disable-liblttng-ust-dl-if-dlinfo-is-not-available.patch new file mode 100644 index 0000000..7849840 --- /dev/null +++ b/package/lttng-libust/lttng-libust-0001-Disable-liblttng-ust-dl-if-dlinfo-is-not-available.patch @@ -0,0 +1,52 @@ +Disable liblttng-ust-dl if dlinfo is not available in C library. + +According to uClibc commit [1], dlinfo is not available. +To be able to use LTTng UST with uClibc, we need to disable +the Dynamic Linker Tracing functionality [2]. + +[1] http://git.uclibc.org/uClibc/commit/?id=f3c9dc499c5c787ddd8c4320f2d44d2ae6e40c22 +[2] http://lists.lttng.org/pipermail/lttng-dev/2014-February/022423.html + +Signed-off-by: Romain Naour +--- + Makefile.am | 5 ++++- + configure.ac | 3 +++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index b79d2dd..c907ff1 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -4,11 +4,14 @@ SUBDIRS = . include snprintf libringbuffer liblttng-ust-comm \ + liblttng-ust \ + liblttng-ust-ctl \ + liblttng-ust-fork \ +- liblttng-ust-dl \ + liblttng-ust-libc-wrapper \ + liblttng-ust-cyg-profile \ + tools + ++if HAVE_DLINFO ++SUBDIRS += liblttng-ust-dl ++endif ++ + if BUILD_JNI_INTERFACE + SUBDIRS += liblttng-ust-java liblttng-ust-jul + endif +diff --git a/configure.ac b/configure.ac +index f507883..5dcf0e2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -145,6 +145,9 @@ AC_C_INLINE + AC_FUNC_MALLOC + AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol sched_getcpu sysconf]) + ++AC_CHECK_FUNCS([dlinfo]) ++AM_CONDITIONAL([HAVE_DLINFO], [test "${ac_cv_func_dlinfo}" = "yes"]) ++ + CFLAGS="-Wall $CFLAGS" + + # URCU +-- +1.9.0 +