Bug 144573

Summary: SDK - on ARM Mac Silicon - failure to build CPP examples - Reason: unsafe use of relative rpath - cppumaker with restricted binary
Product: LibreOffice Reporter: Alex Thurgood <iplaw67>
Component: sdkAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: medium    
Version: 7.2.1.1 rc   
Hardware: ARM   
OS: macOS (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=145127
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:

Description Alex Thurgood 2021-09-17 14:43:11 UTC
Description:
Using the aarch version of LibreOffice for Mac Silicon M1 ARM processor
LO Version 7212


1) Set up the SDK
2) Change directory to the SDK examples
3) Try to build one of the CPP examples

a) first problem is that macOS refuses to launch cppumaker - work around that by starting cppumaker a first time and forcing the "Open" switch to get around Apple Gatekeeper - cppumaker not signed, and not a recognized authorized app

b) second problem is that even when cppumaker is subsequently called by make, the build of the example fails with :

alex@MBPro13 complextoolbarcontrols % make
mkdir -p /Users/alex/LibreOffice7.2_SDK/MACOSXexample.out/misc
rm -f /Users/alex/LibreOffice7.2_SDK/MACOSXexample.out/misc/oosdk_cpp_types.flag
"/Users/Shared/LibreOffice7.2_SDK/bin/cppumaker" -Gc -O/Users/alex/LibreOffice7.2_SDK/MACOSXexample.out/inc "/Applications/LO7212.app/Contents/Resources/ure/share/misc/types.rdb" "/Applications/LO7212.app/Contents/MacOS/../Resources/types/offapi.rdb"
dyld: Library not loaded: @__VIA_LIBRARY_PATH__/libunoidllo.dylib
  Referenced from: /Users/Shared/LibreOffice7.2_SDK/bin/cppumaker
  Reason: unsafe use of relative rpath @__VIA_LIBRARY_PATH__/libunoidllo.dylib in /Users/Shared/LibreOffice7.2_SDK/bin/cppumaker with restricted binary
make: *** [/Users/alex/LibreOffice7.2_SDK/MACOSXexample.out/misc/oosdk_cpp_types.flag] Abort trap: 6 



Steps to Reproduce:
See above

Actual Results:
Example fails to build from SDK environment

Expected Results:
Build should complete normally


Reproducible: Always


User Profile Reset: No



Additional Info:
"/Users/Shared/LibreOffice7.2_SDK/bin/cppumaker" -Gc -O/Users/alex/LibreOffice7.2_SDK/MACOSXexample.out/inc "/Applications/LO7212.app/Contents/Resources/ure/share/misc/types.rdb" "/Applications/LO7212.app/Contents/MacOS/../Resources/types/offapi.rdb"