Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][Archery] Archery linking should also check for undefined symbols macOS #40965

Open
Tracked by #40018
vibhatha opened this issue Apr 3, 2024 · 2 comments
Open
Tracked by #40018

Comments

@vibhatha
Copy link
Collaborator

vibhatha commented Apr 3, 2024

Describe the enhancement requested

Referring to the original issue filed #40018, splitting up the integration per supported operating systems.

Component(s)

Archery

@vibhatha
Copy link
Collaborator Author

vibhatha commented Apr 3, 2024

@kou for this one, need to find a solid way to find the paths for the allowed libraries in the system and then find the symbols.
This need a bit of an investigation in my end as I haven't found a feasible way yet. Appreciate any pointers if possible. 🙂

@kou
Copy link
Member

kou commented Apr 5, 2024

We can use nm on macOS too.
We can use otool -L instead of ldd on macOS:

$ otool -L arrow-dataset-15.0.0/aarch_64/libarrow_dataset_jni.dylib
arrow-dataset-15.0.0/aarch_64/libarrow_dataset_jni.dylib:
	@rpath/libarrow_dataset_jni.dylib (compatibility version 0.0.0, current version 0.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 2202.0.0)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 61040.61.1)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12)
	/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1600.157.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.61.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants