Ack,
Mathi.

On Mon, Sep 24, 2018 at 10:21 PM Jones, Alex <[email protected]> wrote:

> plmcd does not build on Fedora 27. This may occur on other distros, too.
> CCLD bin/plmcd
> CXXLD lib/libosaf_common.la
> CXXLD lib/libimmpbe_dump.la
> /usr/bin/ld: cannot find -lsystemd-daemon
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:11016: bin/plmcd] Error 1
>
> The systemd library is hardcoded in src/plm/Makefile.am
>
> It should be determined via pkg-config.
> ---
>  configure.ac        | 3 +++
>  src/plm/Makefile.am | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 1011d9544..4f770e95c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -533,6 +533,7 @@ PKG_CHECK_MODULES([XML2], [libxml-2.0])
>  if test "$enable_ais_plm" = yes; then
>      PKG_CHECK_MODULES([HPI], [openhpi])
>      PKG_CHECK_MODULES([LIBVIRT], [libvirt])
> +    PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd])
>
>      if test "$with_hpi_interface" = check; then
>         if test "$cross_compiling" = no; then
> @@ -697,6 +698,8 @@ if test "$enable_ais_plm" = yes; then
>          echo "${ECHO_T}  HPI_LIBS: ${HPI_LIBS}"
>          echo "${ECHO_T}  LIBVIRT_CFLAGS: ${LIBVIRT_CFLAGS}"
>          echo "${ECHO_T}  LIBVIRT_LIBS: ${LIBVIRT_LIBS}"
> +        echo "${ECHO_T}  SYSTEMD_CFLAGS: ${LIBSYSTEMD_CFLAGS}"
> +        echo "${ECHO_T}  SYSTEMD_LIBS: ${LIBSYSTEMD_LIBS}"
>  fi
>
>  if test "$enable_imm_pbe" = yes; then
> diff --git a/src/plm/Makefile.am b/src/plm/Makefile.am
> index 581cb17c4..2416fab81 100644
> --- a/src/plm/Makefile.am
> +++ b/src/plm/Makefile.am
> @@ -282,7 +282,7 @@ dist_systemd_DATA += \
>         src/plm/plmcd/plmcboot.service \
>         src/plm/plmcd/plmcd.service
>
> -bin_plmcd_LDFLAGS += -lsystemd-daemon
> +bin_plmcd_LDFLAGS += @LIBSYSTEMD_LIBS@
>
>  else
>
> --
> 2.14.4
>
>

_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to