Skip to contentSkip to conversation

LTTng-ust 2.4.0-rc4 build error with uClibc

DISCUSSION Woegerer, Paul 2 participants 2 messages Feb 19, 2014 – Feb 20, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Santiago,

it looks like uClibc does not have proper support for dlinfo().

You have two options:

Switch to a different C library suitable for embedded systems that does have proper support for dlinfo(): http://www.eglibc.org/home

Build without liblttng-ust-dl (simply remove it from the list of SUBDIRS in the top-level Makefile.am) and accept that the following LTTng 2.4 feature is missing in your custom build:
http://git.lttng.org/?p=lttng-ust.git;a=blob_plain;f=doc/man/lttng-ust-dl.3;hb=HEAD

HTH,
Paul

Quoted 21 lines · Santiago Font

Hi,

I'm trying to build LTTng-ust using uClibc and I get the following error:

                        ustdl.c:95:22: error: 'RTLD_DI_LINKMAP'

undeclared (first use in this function)

Checking the file dlfcn.h from uClibc, the code defining that enum is disabled by:

                        #if 0 /* not supported by uClibc */

How can I fix this?

Thanks,
Santi

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Paul Woegerer, SW Development Engineer
Sourcery Analyzer <http://go.mentor.com/sourceryanalyzer>
Mentor Graphics, Embedded Software Division

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi Paul,
Thank you very much for your help.

Santi

Quoted 42 lines · Paul

Hi Santiago,

it looks like uClibc does not have proper support for dlinfo().

You have two options:

Switch to a different C library suitable for embedded systems that does have proper support for dlinfo(): http://www.eglibc.org/home

Build without liblttng-ust-dl (simply remove it from the list of SUBDIRS in the top-level Makefile.am) and accept that the following LTTng 2.4 feature is missing in your custom build:
http://git.lttng.org/?p=lttng-ust.git;a=blob_plain;f=doc/man/lttng-ust-dl.3;hb=HEAD

HTH,
Paul

Quoted 21 lines · Santiago Font

Hi,

I'm trying to build LTTng-ust using uClibc and I get the following error:

                         ustdl.c:95:22: error: 'RTLD_DI_LINKMAP'

undeclared (first use in this function)

Checking the file dlfcn.h from uClibc, the code defining that enum is disabled by:

                         #if 0 /* not supported by uClibc */

How can I fix this?

Thanks,
Santi

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev