[ntp:bugs] [Bug 3608] New: libparse fails to compile on S11.4SRU13 and later.

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Wed Aug 14 12:11:40 UTC 2019


             Bug #: 3608
           Summary: libparse fails to compile on S11.4SRU13 and later.
           Product: ntp
           Version: 4.6
          Platform: Sun
        OS/Version: Solaris
            Status: CONFIRMED
          Severity: normal
          Priority: P5
         Component: - other
        AssignedTo: stenn at ntp.org
        ReportedBy: brian.utterback at oracle.com
                CC: bugs at ntp.org
    Classification: Unclassified

When libparse compiles it includes both string.h and systm.h, which on Solaris
are incompatible with each other. The first incompatibility was introduced in
2006 with the prototype of the ffs() function. This was worked around by
creating a private copy of systm.h with the ffs deleted. This line in the
Makefile is responsible for this magic:
        sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h

With Solaris 11.4SRU13 (not yet released) another function is added to the
incompatible list, fls(). Since fls() is not used in libparse, the same trick
can be used to fix the problem. Just add "-e '/fls(.*)/d' " to the same line.

Configure bugmail: https://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the bugs-announce mailing list