Details
-
Task
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
6.00.beta
-
None
-
macos and linux
Description
Hi Fons,
On MacOS, setting the dlopen flag for libCling to RTLD_LOCAL leads to the following symbols to be missing, as expected
oot [0] int a = 2;
|
root [1] a
|
ExecutionContext: use of undefined symbol '_ZN5cling16ValuePrinterInfoC1EPN5clang4ExprEPNS1_10ASTContextE'!
|
ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal13flushToStreamERN4llvm11raw_ostreamERKSs'!
|
ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal18printValue_DefaultEPKvRKNS_16ValuePrinterInfoE'!
|
ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal17printType_DefaultERKNS_16ValuePrinterInfoE'!
|
ExecutionContext::executeFunction: symbol '_ZN5cling16ValuePrinterInfoC1EPN5clang4ExprEPNS1_10ASTContextE' unresolved while linking function '_Z15__cling_Un1Qu31v'!
|
ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal13flushToStreamERN4llvm11raw_ostreamERKSs' unresolved while linking function '_Z15__cling_Un1Qu31v'!
|
ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal17printType_DefaultERKNS_16ValuePrinterInfoE' unresolved while linking function '_Z15__cling_Un1Qu31v'!
|
ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal18printValue_DefaultEPKvRKNS_16ValuePrinterInfoE' unresolved while linking function '_Z15__cling_Un1Qu31v'!
|
They somehow needs to be imported into the cling Module.
However it is also unclear why the same symbol are not missing on linux with the same RTLD_LOCAL flag. I.e. is it really hiding the symbols from other libraries on Linux?
Thanks,
Philippe.