[systemd-devel] [PATCH] build fix: add RT_LIBS to link against for test-bus-marshal

Yin Kangkai kangkai.yin at intel.com
Wed Nov 20 18:50:16 PST 2013


Otherwise, build fail:

/usr/bin/ld: ./.libs/libsystemd-daemon-internal.a(sd-daemon.o): undefined reference to symbol 'mq_getattr@@GLIBC_2.3.4'
/usr/bin/ld: note: 'mq_getattr@@GLIBC_2.3.4' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [test-bus-marshal] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Yin Kangkai <kangkai.yin at intel.com>
---
 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index f7fe96c..f0193e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2008,7 +2008,8 @@ test_bus_marshal_LDADD = \
 	libsystemd-capability.la \
 	$(GLIB_LIBS) \
 	$(DBUS_LIBS) \
-	$(CAP_LIBS)
+	$(CAP_LIBS) \
+	$(RT_LIBS)
 
 test_bus_marshal_CFLAGS = \
 	$(AM_CFLAGS) \
-- 
1.8.2.1



More information about the systemd-devel mailing list