Print

Print


We get

cling::DynamicLibraryManager::loadLibrary(): dlopen(/Volumes/HDD2/ec/build/night/LABEL/mac1012/SPEC/noimt/build/lib/libNetxNG.so, 9): Library not loaded: libXrdUtils.2.dylib
  Referenced from: /Volumes/HDD2/ec/build/night/LABEL/mac1012/SPEC/noimt/build/lib/libNetxNG.so
  Reason: unsafe use of relative rpath libXrdUtils.2.dylib in /Volumes/HDD2/ec/build/night/LABEL/mac1012/SPEC/noimt/build/lib/libNetxNG.so with restricted binary
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libNetxNG.so for TNetXNGSystem

on our Mac builds. That's caused by python loading a library (libNetxNG.so from ROOT) which depends on libXrdUtils.2.dylib. otool says:

otool -L lib/libNetxNG.so
lib/libNetxNG.so:
	@rpath/libNetxNG.so (compatibility version 0.0.0, current version 0.0.0)
	libXrdUtils.2.dylib (compatibility version 2.0.0, current version 2.0.0)
	libXrdCl.2.dylib (compatibility version 2.0.0, current version 2.0.0)
	@rpath/libNet.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libRIO.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libThread.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libCore.so (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)

As you can see, the xrootd client libs don't have an RPATH set. I see no way of forcing one upon them; without, binaries in SIP-protected areas (like /usr/bin/python) refuse to load the xrootd client libs.

Could RPATH be allowed as an option, or am I misunderstanding something here?

Cheers, Axel.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Mac: python cannot load xrootd client libs (#959)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/959"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/959", "url": "https://github.com/xrootd/xrootd/issues/959", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1