[systemd-devel] Underlinking in libsystemd-login
Canek Peláez Valdés
caneko at gmail.com
Sun Mar 10 10:29:55 PDT 2013
In Gentoo we are seeing the following failure with programs linking
agains libsystemd-login, they all fail with:
/usr/lib64/libsystemd-login.so: undefined reference to `sd_id128_to_string'
/usr/lib64/libsystemd-login.so: undefined reference to `sd_id128_get_boot'
/usr/lib64/libsystemd-login.so: undefined reference to `sd_id128_get_machine'
collect2: ld returned 1 exit status
or similar. More info in the bug 62085:
https://bugs.freedesktop.org/show_bug.cgi?id=62085
The following patch fixes the issue (at least with udisks,
gnome-session, gdm, and gnome-shell), but I'm not sure is the correct
solution. Asking here for guidance.
Regards.
---
Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 89768e6..c9c3fbe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3352,7 +3352,9 @@ libsystemd_login_la_LDFLAGS = \
-Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
libsystemd_login_la_LIBADD = \
- libsystemd-shared.la
+ libsystemd-shared.la \
+ libsystemd-daemon.la \
+ libsystemd-id128-internal.la
libsystemd_login_internal_la_SOURCES = \
$(libsystemd_login_la_SOURCES)
--
1.8.1.5
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
More information about the systemd-devel
mailing list