#3349 Improve systemd configure checks and header file protection
Closed: cloned-to-github by pbrezina. Opened by jhrozek.

A user on #sssd mentioned they have issues with building the latest version of SSSD. Because of issues they had with filing a new issue in Pagure, I'm filing a new ticket on their behalf so a comment can be added later with more details.


I cannot reproduce. any problem.

Metadata Update from @lslebodn:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Feel free to provide more details and ticket can be re-opened.

I ran into this also. The problem was that configure succeeded, despite libsystemd-dev not being installed. Make complained that systemd/sd-daemon.h was not found prompting me to install the package. Subsequent make invocation then gave the error in this issue, because -lsystemd was absent on the link line. Running configure again fixed the issue. I'd recommend an improved configure check for libsystemd.

I ran into this also. The problem was that configure succeeded, despite libsystemd-dev not being installed. Make complained that systemd/sd-daemon.h was not found prompting me to install the package. Subsequent make invocation then gave the error in this issue, because -lsystemd was absent on the link line. Running configure again fixed the issue. I'd recommend an improved configure check for libsystemd.

You are right, currently the ifdef-check if systemd/sd-daemon.h should be read or not is based on the existance of the run-time pkg-config file systemd.pc which is installed by the run-time systemd package but the include file is of course only available if the systemd development package is installed as well.

So I reopen this ticket and modify the title to make to more clear what is wrong.

Metadata Update from @sbose:
- Issue status updated to: Open (was: Closed)

Metadata Update from @pbrezina:
- Issue tagged with: Future milestone

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4379

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @pbrezina:
- Issue close_status updated to: cloned-to-github
- Issue status updated to: Closed (was: Open)

Metadata