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

Compilation error on RHEL 5 and SLES 10 (at least) in deprecated.h with 3.6.3.rc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.5
    • Component/s: None
    • Labels:
      None
    • Platform:
      RHEL or CentOS, Linux, Other (details)
    • Found in version (details):
      3.6.3.rc
    • Steps to reproduce:
      Manual steps provided

      Description

      While testing a compilation of CFEngine 3.6.3.rc

      <pre>
      20:49:54 DONE: Configuration done. Run make/gmake to build CFEngine Community.
      20:49:54 + make
      20:49:54 make[1]: Entering directory `/usr/src/rudder-packages/package/SOURCES/cfengine-source'
      20:49:54 Making all in libcompat
      20:49:54 CC generic_at.lo
      20:49:54 In file included from ../libutils/platform.h:939,
      20:49:54 from generic_at.c:25:
      20:49:54 ../libutils/deprecated.h:41: error: expected declaration specifiers or ���...��� before numeric constant
      20:49:54 ../libutils/deprecated.h:41: error: expected declaration specifiers or ���...��� before ���__builtin_object_size���
      20:49:54 ../libutils/deprecated.h:41: warning: conflicting types for built-in function ���_builtin__sprintf_chk���
      20:49:54 make[1]: Leaving directory `/usr/src/rudder-packages/package/SOURCES/cfengine-source'
      </pre>

      To reproduce, use a CentOS 5 build system, and run:

      <pre>
      ./configure --build=i386-linux --prefix=/opt/rudder --with-workdir=/var/rudder/cfengine-community --enable-static=yes --enable-shared=no '' --with-lmdb=/opt/rudder
      make
      </pre>
      (we install LMDB under /opt/rudder, to use our own version, but this has always worked fine in 3.6.0)

      PS: I had to select a "Found in version" because Redmine wouldn't let me submit this otherwise, but it was NOT found in 3.6.2, but in 3.6.3rc (which is missing from the list).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                jooooooon Jonathan Clarke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel