Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1528

[openbsd] CCLD cf-agent - /usr/bin/ld: cannot find -ldl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Labels:
      None

      Description

      Build failure on OpenBSD 5.5 -current amd64 with 3.6.0 version.

      <pre>
      In file included from ./../libpromises/eval_context.h:33,
      from ./../libpromises/audit.h:34,
      from cf-agent.c:28:
      ./../libpromises/var_expressions.h:56: warning: type qualifiers ignored on function return type
      CCLD cf-agent
      /usr/bin/ld: cannot find -ldl
      collect2: ld returned 1 exit status
      Makefile:597: recipe for target 'cf-agent' failed
      gmake[2]: *** [cf-agent] Error 1
      Makefile:582: recipe for target 'all-recursive' failed
      gmake[1]: *** [all-recursive] Error 1
      Makefile:505: recipe for target 'all' failed
      gmake: *** [all] Error 2

      jirib:/home/jirib/tmp/cfengine-3.6.0
      $ sysctl kern.version
      kern.version=OpenBSD 5.5-current (GENERIC.MP) #202: Fri Jun 13 12:56:14 MDT 2014
      deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
      </pre>

      Not sure but maybe it is added by this code:

      <pre>
      $ sed -n '/!FREEBSD/,/^$/p' cf-agent/Makefile.am
      if !FREEBSD
      if HAVE_AVAHI_COMMON
      if HAVE_AVAHI_CLIENT
      AM_LDFLAGS += -ldl
      endif
      endif
      endif
      </pre>

        Attachments

        1. config.log
          444 kB
        2. patch.diff
          1 kB

          Release management

            Activity

              People

              Assignee:
              a10040 Kristian Amlie
              Reporter:
              jirib Jiri Belka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: