[lttng-dev] lttng-tools build failure with uClibc due to dlmopen()

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Feb 28 23:09:45 UTC 2017


First of all, thanks for having fixed the dlmopen issue with musl in
lttng-ust. Now, there is another dlmopen issue, this time in
lttng-tools, and this time with uClibc:

  CC       prog.o
prog.c: In function 'main':
prog.c:24:7: warning: implicit declaration of function 'dlmopen' [-Wimplicit-function-declaration]
  h1 = dlmopen(LM_ID_BASE, "libfoo.so", RTLD_LAZY);
prog.c:24:15: error: 'LM_ID_BASE' undeclared (first use in this function)
  h1 = dlmopen(LM_ID_BASE, "libfoo.so", RTLD_LAZY);
prog.c:24:15: note: each undeclared identifier is reported only once for each function it appears in

for the full build log.

So, the ust regression test case in lttng-tools doesn't test if
dlmopen() is provided by the C library before using it.

I guess some additional autoconf/automake conditional is needed here.


Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering

More information about the lttng-dev mailing list