Bug 74561

Summary: Link error when logind is disabled
Product: systemd Reporter: Umut Tezduyar <umut>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WORKSFORME QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Umut Tezduyar 2014-02-05 12:11:35 UTC
test-libsystemd-login-sym is trying to link to non-existing symbols when logind is disabled with --disable-logind.


  CC     test-libsystemd-journal-sym.o
  CCLD   test-libsystemd-journal-sym
  CC     test-libsystemd-login-sym.o
  CCLD   libsystemd-login.la
  CCLD   test-libsystemd-login-sym
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x0): undefined reference to `sd_get_seats'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x4): undefined reference to `sd_get_sessions'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x8): undefined reference to `sd_get_uids'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0xc): undefined reference to `sd_login_monitor_flush'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x10): undefined reference to `sd_login_monitor_get_fd'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x14): undefined reference to `sd_login_monitor_new'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x18): undefined reference to `sd_login_monitor_unref'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x1c): undefined reference to `sd_pid_get_owner_uid'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x20): undefined reference to `sd_pid_get_session'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x24): undefined reference to `sd_seat_can_multi_session'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x28): undefined reference to `sd_seat_get_active'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x2c): undefined reference to `sd_seat_get_sessions'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x30): undefined reference to `sd_session_get_seat'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x34): undefined reference to `sd_session_get_uid'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x38): undefined reference to `sd_session_is_active'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x3c): undefined reference to `sd_uid_get_seats'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x40): undefined reference to `sd_uid_get_sessions'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x44): undefined reference to `sd_uid_get_state'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x48): undefined reference to `sd_uid_is_on_seat'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x4c): undefined reference to `sd_pid_get_unit'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x50): undefined reference to `sd_session_get_service'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x54): undefined reference to `sd_session_get_type'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x58): undefined reference to `sd_session_get_class'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x5c): undefined reference to `sd_session_get_display'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x60): undefined reference to `sd_session_get_state'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x64): undefined reference to `sd_seat_can_tty'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x68): undefined reference to `sd_seat_can_graphical'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x6c): undefined reference to `sd_session_get_tty'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x70): undefined reference to `sd_login_monitor_get_events'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x74): undefined reference to `sd_login_monitor_get_timeout'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x78): undefined reference to `sd_pid_get_user_unit'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x7c): undefined reference to `sd_pid_get_machine_name'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x80): undefined reference to `sd_get_machine_names'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x84): undefined reference to `sd_pid_get_slice'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x88): undefined reference to `sd_session_get_vt'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x8c): undefined reference to `sd_session_is_remote'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x90): undefined reference to `sd_session_get_remote_user'
/tmp/ccrwHAoh.ltrans0.ltrans.o:(.rodata.functions.1461+0x94): undefined reference to `sd_session_get_remote_host'
collect2: error: ld returned 1 exit status
make[3]: *** [test-libsystemd-login-sym] Error 1
make[2]: *** [all-recursive] Error 1
Comment 1 Umut Tezduyar 2014-02-05 15:16:49 UTC
Couldn't reproduce it on 1baccdd but I did reproduce it on eee9ec0. It might be fixed already.
Comment 2 Lennart Poettering 2014-02-21 13:52:28 UTC
OK, closing then. Please reopen if the bug shows up again. (and then, please disable -flto, so that the output becomes more useful).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.