[tao-bugs] [compile]: Mac Sierra new features

Lockhart, Thomas G (398I) Thomas.G.Lockhart at jpl.nasa.gov
Tue Dec 5 01:04:59 CST 2017


I’ve enclosed a patch to enable three features now available in MacOS: clockid_t, CLOCK_MONOTONIC, and CLOCK_REALTIME. ACE and TAO compile cleanly with these enabled.

- Tom

   ACE VERSION: 6.4.5

    HOST MACHINE and OPERATING SYSTEM:
MacOS Sierra

    COMPILER NAME AND VERSION (AND PATCHLEVEL):
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

    THE $ACE_ROOT/ace/config.h FILE:
config-macosx-sierra.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
buildbits=64
universal=0
install_rpath=0
inline=1
shared_libs_only=1
ec_typed_events=0
ssl=0
LDFLAGS+= -Wl,-rpath,$(INSTALL_PREFIX)/$(INSTALL_LIB)
SOFLAGS+= -Wl,-install_name,\@rpath/$@
include $(ACE_ROOT)/include/makeinclude/platform_macosx_sierra.GNU

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features: n/a

    AREA/CLASS/EXAMPLE AFFECTED:
Compilation.

    DOES THE PROBLEM AFFECT:
        COMPILATION?
Compilation of TAO. ACE does not seem to use the same features.

    SYNOPSIS:
clockid_t, CLOCK_MONOTONIC, and CLOCK_REALTIME have duplicate definitions on Sierra and above.

    DESCRIPTION:
ACE/TAO includes workarounds for architectures missing the three features clockid_t, CLOCK_MONOTONIC, and CLOCK_REALTIME. Mac OS Sierra now includes those features so unless the workarounds are disabled the compiler notices duplicate definitions.

    REPEAT BY:
Compile TAO on MacOS X Sierra and above.

    SAMPLE FIX/WORKAROUND:
Patch enclosed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ace-config-sierra.h.diff
Type: application/octet-stream
Size: 373 bytes
Desc: patch-ace-config-sierra.h.diff
URL: <http://list.isis.vanderbilt.edu/pipermail/tao-bugs/attachments/20171205/7fad5228/attachment.obj>


More information about the tao-bugs mailing list