Bug 144573 - SDK - on ARM Mac Silicon - failure to build CPP examples - Reason: unsafe use of relative rpath - cppumaker with restricted binary
Summary: SDK - on ARM Mac Silicon - failure to build CPP examples - Reason: unsafe use...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.2.1.1 rc
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-17 14:43 UTC by Alex Thurgood
Modified: 2024-11-07 18:47 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"
Comment 1 Aryeh 2024-11-06 23:28:04 UTC
Try using the workaround of manually launching cppumaker once and approving it via System Preferences > Security & Privacy.
Comment 2 Alex Thurgood 2024-11-07 18:47:23 UTC
(In reply to Aryeh from comment #1)
> Try using the workaround of manually launching cppumaker once and approving
> it via System Preferences > Security & Privacy


Please see my original post in which I state:

"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"