Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation 1.16.5 on Centos7 fails #5309

Closed
urban-it-solutions opened this issue Sep 7, 2020 · 6 comments
Closed

Compilation 1.16.5 on Centos7 fails #5309

urban-it-solutions opened this issue Sep 7, 2020 · 6 comments

Comments

@urban-it-solutions
Copy link

urban-it-solutions commented Sep 7, 2020

I ran configure without any flags. I have the following systemd-devel-packet installed:
systemd-devel-219-73.el7_8.9.x86_64

compilation with make fails with this error:

/usr/bin/ld: src/monitor/monitor.o: undefined reference to symbol 'sd_notify@@LIBSYSTEMD_209'
//usr/lib64/libsystemd.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [sssd] Fehler 1
make[2]: Leaving directory /root/sssd-1.16.5' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory /root/sssd-1.16.5'
make: *** [all] Fehler 2

@alexey-tikhonov
Copy link
Member

Hi,

could you please:

  1. provide output of grep "SYSTEMD_DAEMON_LIBS =" Makefile (as of now)
  2. check if explicit ./configure --with-syslog=journald helps to work around the issue?

@urban-it-solutions
Copy link
Author

Hi,
thx for the immediate reply!

grep "SYSTEMD_DAEMON_LIBS =" Makefile
SYSTEMD_DAEMON_LIBS =

  1. still the same error

regards

@alexey-tikhonov
Copy link
Member

What is the result of grep "SYSTEMD_DAEMON_LIBS =" Makefile if you configure with --with-syslog=journald?

What is the output of ldconfig -p | grep libsystemd?

@urban-it-solutions
Copy link
Author

I made a mistake in Point 2. Now with --with-syslog=journald I get

SYSTEMD_DAEMON_LIBS = -lsystemd

and the compilation works! Thanks a lot!

@alexey-tikhonov
Copy link
Member

Ok, glad to hear you can work around the issue now.

But ./configure --help:

  --with-syslog=SYSLOG_TYPE
                          Type of your system logger (syslog|journald).
                          [syslog]

-- default is syslog and IIUC SSSD shouldn't link with systemd at all in this case...

@alexey-tikhonov
Copy link
Member

FWIW, it builds fine with defaulf value of with-syslog on latest RHEL7

@andreboscatto andreboscatto closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants