* [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc.
@ 2014-03-30 12:18 Romain Naour
2014-04-06 20:11 ` Yann E. MORIN
2014-04-06 20:52 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2014-03-30 12:18 UTC (permalink / raw)
To: buildroot
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 <romain.naour@openwide.fr>
---
...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 <romain.naour@openwide.fr>
+---
+ 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
+
--
1.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc.
2014-03-30 12:18 [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc Romain Naour
@ 2014-04-06 20:11 ` Yann E. MORIN
2014-04-06 20:52 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-04-06 20:11 UTC (permalink / raw)
To: buildroot
Romain, All,
On 2014-03-30 14:18 +0200, Romain Naour spake thusly:
> 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 <romain.naour@openwide.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> ...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 <romain.naour@openwide.fr>
Did you try to push this upstream?
Regards,
Yann E. MORIN.
> +---
> + 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
> +
> --
> 1.9.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc.
2014-03-30 12:18 [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc Romain Naour
2014-04-06 20:11 ` Yann E. MORIN
@ 2014-04-06 20:52 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-04-06 20:52 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Sun, 30 Mar 2014 14:18:50 +0200, Romain Naour wrote:
> 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 <romain.naour@openwide.fr>
> ---
> ...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
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-06 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 12:18 [Buildroot] [PATCH 1/1] lttng-libust: Disable liblttng-ust-dl with uClibc Romain Naour
2014-04-06 20:11 ` Yann E. MORIN
2014-04-06 20:52 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox