Skip to contentSkip to conversation

lttng-babeltrace: fix build with standalone gettext

PATCH New Max Filippov 2 participants 2 messages Mar 19, 2016 – Jul 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lttng-babeltrace: fix build with standalone gettext

lttng-babeltrace can't detect that uuid_generate is provided by -luuid because the configure test fails with the following message:
libuuid.a(libuuid_la-randutils.o): In function `random_get_bytes':
randutils.c:(.text+0x204): undefined reference to `libintl_gettext'

Add LIBS=-lintl to configure options in case we're building with standalone gettext.
Fixes:
http://autobuild.buildroot.net/results/1ab89c6e8d704bc28c9ff8b5ffda3f60e57a25b4/

---
 package/lttng-babeltrace/lttng-babeltrace.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/lttng-babeltrace/lttng-babeltrace.mk +4 -0
index 5de77fb..cf57843 100644
@@ -12,5 +12,9 @@ LTTNG_BABELTRACE_LICENSE_FILES = mit-license.txt gpl-2.0.txt LICENSE
 
 LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
 
+ifeq ($(BR2_NEEDS_GETTEXT),y)
+LTTNG_BABELTRACE_CONF_OPTS += LIBS=-lintl
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 lttng-babeltrace: fix build with standalone gettext

Max,

Quoted 11 lines · Max Filippov

lttng-babeltrace can't detect that uuid_generate is provided by -luuid because the configure test fails with the following message:
libuuid.a(libuuid_la-randutils.o): In function `random_get_bytes':
randutils.c:(.text+0x204): undefined reference to `libintl_gettext'

Add LIBS=-lintl to configure options in case we're building with standalone gettext.
Fixes:
http://autobuild.buildroot.net/results/1ab89c6e8d704bc28c9ff8b5ffda3f60e57a25b4/

According to Samuel, this is already fixed by commit ef18eedce6f8daef20de1531efffb7d429f40b9d, so I've marked your patch as Superseded. Let me know if you still see the problem even with ef18eedce6f8daef20de1531efffb7d429f40b9d included.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com