[GH-ISSUE #2] OSX 10.13 build failed #3

Closed
opened 2026-05-05 04:41:05 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @truatpasteurdotfr on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/2

Originally assigned to: @walker0643 on GitHub.

Operating Systems

macmini:~ tru$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C205

Barrier Version

git version: 33b81742b5
barrier: 1.9.0-snapshot.b1-33b81742

Steps to reproduce bug

#!/bin/sh
export Qt5_DIR=/usr/local//Cellar/qt/5.10.0_1
cd "$(dirname $0)" || exit 1
rm -rf build
mkdir build || exit 1
cd build || exit 1
cmake -D CMAKE_BUILD_TYPE=Debug \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk \
      -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
      -DCMAKE_OSX_ARCHITECTURES=x86_64 ..  || exit 1
make -j 4 || exit 1
echo "Build completed successfully"

Other info

  • When did the problem start to occur? run the script
  • Is there a way to work around it? Not yet
  • Does this bug prevent you from using Barrier entirely? Yes

errors:

[ 78%] Linking CXX executable ../../bin/barrier
Undefined symbols for architecture x86_64:
  "_AXIsProcessTrusted", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_AXIsProcessTrustedWithOptions", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFDictionaryCreate", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFRelease", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_GetCurrentProcess", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_TransformProcessType", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_kAXTrustedCheckOptionPrompt", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_kCFBooleanTrue", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/barrier] Error 1
make[1]: *** [src/gui/CMakeFiles/barrier.dir/all] Error 2
make: *** [all] Error 2
macmini:build tru$ 

Originally created by @truatpasteurdotfr on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/2 Originally assigned to: @walker0643 on GitHub. ### Operating Systems ### macmini:~ tru$ sw_vers ProductName: Mac OS X ProductVersion: 10.13.2 BuildVersion: 17C205 ### Barrier Version ### git version: 33b81742b50112c3e7042665353d5701f552717d barrier: 1.9.0-snapshot.b1-33b81742 ### Steps to reproduce bug ### ``` #!/bin/sh export Qt5_DIR=/usr/local//Cellar/qt/5.10.0_1 cd "$(dirname $0)" || exit 1 rm -rf build mkdir build || exit 1 cd build || exit 1 cmake -D CMAKE_BUILD_TYPE=Debug \ -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk \ -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \ -DCMAKE_OSX_ARCHITECTURES=x86_64 .. || exit 1 make -j 4 || exit 1 echo "Build completed successfully" ``` ### Other info ### * When did the problem start to occur? run the script * Is there a way to work around it? Not yet * Does this bug prevent you from using Barrier entirely? Yes errors: ``` [ 78%] Linking CXX executable ../../bin/barrier Undefined symbols for architecture x86_64: "_AXIsProcessTrusted", referenced from: checkMacAssistiveDevices() in main.cpp.o "_AXIsProcessTrustedWithOptions", referenced from: checkMacAssistiveDevices() in main.cpp.o "_CFDictionaryCreate", referenced from: checkMacAssistiveDevices() in main.cpp.o "_CFRelease", referenced from: checkMacAssistiveDevices() in main.cpp.o "_GetCurrentProcess", referenced from: MainWindow::setVisible(bool) in MainWindow.cpp.o "_TransformProcessType", referenced from: MainWindow::setVisible(bool) in MainWindow.cpp.o "_kAXTrustedCheckOptionPrompt", referenced from: checkMacAssistiveDevices() in main.cpp.o "_kCFBooleanTrue", referenced from: checkMacAssistiveDevices() in main.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/barrier] Error 1 make[1]: *** [src/gui/CMakeFiles/barrier.dir/all] Error 2 make: *** [all] Error 2 macmini:build tru$ ```
gitea-mirror 2026-05-05 04:41:05 -06:00
Author
Owner

@walker0643 commented on GitHub (Feb 13, 2018):

Fixed in f07070f7f9. Please test.

<!-- gh-comment-id:365433120 --> @walker0643 commented on GitHub (Feb 13, 2018): Fixed in https://github.com/debauchee/barrier/commit/f07070f7f91a5dafd45c8a31abcd502d509fd029. Please test.
Author
Owner

@truatpasteurdotfr commented on GitHub (Feb 19, 2018):

ld: warning: object file (/usr/local/opt/openssl/lib/libcrypto.a(p12_asn.o)) was built for newer OSX version (10.13) than being linked (10.9)

but it builds fine :D

[ 99%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/mocs_compilation.cpp.o
[100%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/PNK5WDWK6L/qrc_Barrier.cpp.o
[100%] Linking CXX executable ../../bin/barrier
[100%] Built target barrier
Build completed successfully
macmini:barrier tru$ 
<!-- gh-comment-id:366777382 --> @truatpasteurdotfr commented on GitHub (Feb 19, 2018): ``` ld: warning: object file (/usr/local/opt/openssl/lib/libcrypto.a(p12_asn.o)) was built for newer OSX version (10.13) than being linked (10.9) ``` but it builds fine :D ``` [ 99%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/mocs_compilation.cpp.o [100%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/PNK5WDWK6L/qrc_Barrier.cpp.o [100%] Linking CXX executable ../../bin/barrier [100%] Built target barrier Build completed successfully macmini:barrier tru$ ```
Author
Owner

@truatpasteurdotfr commented on GitHub (Feb 19, 2018):

trying to push a 10.13 target yields:

[100%] Linking CXX executable ../../bin/barrier
[100%] Built target barrier
Build completed successfully

with this warning:

/Users/tru/barrier/src/lib/platform/OSXDragSimulator.m:38:18: warning: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
                                                styleMask: NSBorderlessWindowMask
                                                           ^~~~~~~~~~~~~~~~~~~~~~
                                                           NSWindowStyleMaskBorderless
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSBorderlessWindowMask' has
      been explicitly marked deprecated here
static const NSWindowStyleMask NSBorderlessWindowMask NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSWindowStyleMaskBorderless", 10.0, 10.12) = NSWindowStyleMaskBorderless;
                               ^
1 warning generated.
[ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXDragView.m.o
/Users/tru/barrier/src/lib/platform/OSXDragView.m:72:8: warning: 'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' is deprecated: first deprecated in macOS 10.13 - Use
      -beginDraggingSessionWithItems:event:source: with an NSFilePromiseProvider instead [-Wdeprecated-declarations]
        [self dragPromisedFilesOfTypes:[NSArray arrayWithObject:m_dragFileExt]
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:582:1: note: 
      'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' has been explicitly marked deprecated here
- (BOOL)dragPromisedFilesOfTypes:(NSArray<NSString *> *)typeArray fromRect:(NSRect)rect source:(id)sourceObject slideBack:(BOOL)flag event:(NSEvent *)event NS_DEPRECATED_MAC(10_0, 10_13, "Use -beginD...
^
1 warning generated.
[ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySimulator.m.o
/Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:74:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
                                                       ^~~~~~~~~~~~~~~
                                                       NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
/Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:81:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
                                                     ^~~~~~~~~~~~~~~
                                                     NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
2 warnings generated.
[ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySupport.m.o
/Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:136:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
                                                       ^~~~~~~~~~~~~~~
                                                       NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
/Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:143:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
                                                     ^~~~~~~~~~~~~~~
                                                     NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
2 warnings generated.
[ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXPasteboardPeeker.m.o
/Users/tru/barrier/src/lib/platform/OSXPasteboardPeeker.m:24:21: warning: 'NSDragPboard' is deprecated: first deprecated in macOS 10.13 [-Wdeprecated-declarations]
        NSString* pbName = NSDragPboard;
                           ^~~~~~~~~~~~
                           NSPasteboardNameDrag
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347:32: note: 'NSDragPboard' has been
      explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardName NSDragPboard NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSPasteboardNameDrag", 10.0, 10.13);
                               ^
1 warning generated.

<!-- gh-comment-id:366778075 --> @truatpasteurdotfr commented on GitHub (Feb 19, 2018): trying to push a 10.13 target yields: ``` [100%] Linking CXX executable ../../bin/barrier [100%] Built target barrier Build completed successfully ``` with this warning: ``` /Users/tru/barrier/src/lib/platform/OSXDragSimulator.m:38:18: warning: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] styleMask: NSBorderlessWindowMask ^~~~~~~~~~~~~~~~~~~~~~ NSWindowStyleMaskBorderless /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSBorderlessWindowMask' has been explicitly marked deprecated here static const NSWindowStyleMask NSBorderlessWindowMask NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSWindowStyleMaskBorderless", 10.0, 10.12) = NSWindowStyleMaskBorderless; ^ 1 warning generated. [ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXDragView.m.o /Users/tru/barrier/src/lib/platform/OSXDragView.m:72:8: warning: 'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' is deprecated: first deprecated in macOS 10.13 - Use -beginDraggingSessionWithItems:event:source: with an NSFilePromiseProvider instead [-Wdeprecated-declarations] [self dragPromisedFilesOfTypes:[NSArray arrayWithObject:m_dragFileExt] ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:582:1: note: 'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' has been explicitly marked deprecated here - (BOOL)dragPromisedFilesOfTypes:(NSArray<NSString *> *)typeArray fromRect:(NSRect)rect source:(id)sourceObject slideBack:(BOOL)flag event:(NSEvent *)event NS_DEPRECATED_MAC(10_0, 10_13, "Use -beginD... ^ 1 warning generated. [ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySimulator.m.o /Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:74:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined ^~~~~~~~~~~~~~~ NSEventTypeSystemDefined /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been explicitly marked deprecated here static const NSEventType NSSystemDefined NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined; ^ /Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:81:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined ^~~~~~~~~~~~~~~ NSEventTypeSystemDefined /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been explicitly marked deprecated here static const NSEventType NSSystemDefined NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined; ^ 2 warnings generated. [ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySupport.m.o /Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:136:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined ^~~~~~~~~~~~~~~ NSEventTypeSystemDefined /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been explicitly marked deprecated here static const NSEventType NSSystemDefined NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined; ^ /Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:143:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined ^~~~~~~~~~~~~~~ NSEventTypeSystemDefined /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been explicitly marked deprecated here static const NSEventType NSSystemDefined NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined; ^ 2 warnings generated. [ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXPasteboardPeeker.m.o /Users/tru/barrier/src/lib/platform/OSXPasteboardPeeker.m:24:21: warning: 'NSDragPboard' is deprecated: first deprecated in macOS 10.13 [-Wdeprecated-declarations] NSString* pbName = NSDragPboard; ^~~~~~~~~~~~ NSPasteboardNameDrag /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347:32: note: 'NSDragPboard' has been explicitly marked deprecated here APPKIT_EXTERN NSPasteboardName NSDragPboard NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSPasteboardNameDrag", 10.0, 10.13); ^ 1 warning generated. ```
Author
Owner

@walker0643 commented on GitHub (Feb 20, 2018):

Unfortunately the previous two post of yours, tru, are highlighting known issues with the build. They both stem from needing to support more releases than just the latest OSX (currently 10.13). As it stands right now the source tree will create builds that are compatible with 10.9 through 10.13 even though the builds are rather noisy with respect to warnings.

Before we close this issue would you mind confirming that the program itself runs well on your OSX test box(es)? Thanks!

<!-- gh-comment-id:367107099 --> @walker0643 commented on GitHub (Feb 20, 2018): Unfortunately the previous two post of yours, tru, are highlighting known issues with the build. They both stem from needing to support more releases than just the latest OSX (currently 10.13). As it stands right now the source tree will create builds that are compatible with 10.9 through 10.13 even though the builds are rather noisy with respect to warnings. Before we close this issue would you mind confirming that the program itself runs well on your OSX test box(es)? Thanks!
Author
Owner

@walker0643 commented on GitHub (Feb 23, 2018):

Got confirmation from tru via IRC. Closing.

<!-- gh-comment-id:367871984 --> @walker0643 commented on GitHub (Feb 23, 2018): Got confirmation from tru via IRC. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#3
No description provided.