[Buildroot] [PATCH] lttng-libust: disable on musl

Peter Korsgaard peter at korsgaard.com
Tue Feb 21 16:18:07 UTC 2017


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > Since version v2.9.0, lttng-libust has a tracepoint for the C library
 > dlmopen() function, and uses some types such as Lmid_t, related to
 > dlmopen(). However, musl doesn't provide dlmopen(), which causes a build
 > failure.

 > The Alpine Linux distribution has a patch [1] to remove this code
 > completely, but while this is a reasonable solution for a musl-only
 > distribution, it is not for a build system that also supports glibc and
 > uClibc. Therefore, we instead disable lttng-libust for the musl C
 > library.

 > The problem has been reported upstream (no mailing list archive link
 > available at the time of this commit).

 > Fixes:

 >   http://autobuild.buildroot.net/results/113fa95a054df183014b43ec36b329f9c59bd356/

I was confused why it worked on uclibc-ng which also doesn't provide
dlmopen / the Lmid_t type (well it does, but it is inside and #if 0) -
And it turns out that the dlmopen tracepoint doesn't get built when
building against uclibc-ng as dlfcn.h doesn't provide RTLD_DI_LINKMAP.

So an alternative is to convince the configure script that musl doesn't
have RTLD_DI_LINKMAP.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list