Problem compiling a macro

Hi,

I have a funny problem compiling a macro. First off - sorry for not generating a small stand-alone reproduction of the problem - it’s part of a huge project - but maybe you can give some pointers anyway :confused:

I have a rootlogon in my /Users/peter/macros directory which loads three shared libraries (which were built with cpp files built by rootcint) with the following command:

gSystem->Load("…/lib/libSP24sharedLite.so");

When I try to compile a macro, the compilation fails with the following error:

root [0] .L dumpErrorReport.C+
Info in TUnixSystem::ACLiC: creating shared library /Users/peter/code/macros/./dumpErrorReport_C.so
dlopen error: dlopen(/Users/peter/code/macros/./dumpErrorReport_C.so, 10): Library not loaded: lib/libSP24sharedLite.so
Referenced from: /Users/peter/code/macros/./dumpErrorReport_C.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/peter/code/macros/./dumpErrorReport_C.so
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Interpreter error recovered ***

Note that the full path to the shared library is /Users/peter/code/lib/libSP24sharedLite.so

Now the weird part - if I put a copy of my shared library into /Users/peter/code/macros/lib then the compilation succeeds.

Note that when rootlogon is executed, no error is given so I assume it has loaded the library ok from …/lib/libSP24sharedLite.so.
But when it tries to use that library for linking it seems that it looks into ./lib/ instead of …/lib/

I am running the trunk version of root 5.27/05 on OS X with gcc 4.2.1

Hi,

Can you send me the result of:rm dumpErrorReport_C.so root.exe -b -l .files gDebug = 5 .L dumpErrorReport.C+
Thanks.
Philippe.

Hi Philippe,

ok here goes - thanks for digging through this!

root [0] .files
0 fp=0x7fff704cff58 lines=53 file=“RtypesCint.h"
1 fp=0x7fff704cfec0 lines=2 file=”(tmp1)“
2 fp=0x7fff704cfff0 lines=2 file=”(tmp2)“
3 fp=0x7fff704d0088 lines=2 file=”(tmp3)“
4 fp= via hard link lines=0 *file=”/usr/local//lib/root/libCore.5.so"
5 fp= via hard link lines=0 *file="/usr/local//lib/root/libMathCore.5.so"
6 fp= via hard link lines=0 *file="/usr/local//lib/root/libRint.5.so"
7 fp=0x7fff704d0120 lines=8 *file="/etc/root/plugins/TSystem/P010_TRFIOSystem.C"
8 fp=0x7fff704d01b8 lines=10 *file="/etc/root/plugins/TSystem/P020_TDCacheSystem.C"
9 fp=0x7fff704d0250 lines=6 *file="/etc/root/plugins/TSystem/P030_TAlienSystem.C"
10 fp=0x7fff704d02e8 lines=6 *file="/etc/root/plugins/TSystem/P040_TXNetSystem.C"
11 fp=0x7fff704d0380 lines=6 *file="/etc/root/plugins/TSystem/P050_TWebSystem.C"
12 fp=0x7fff704d0418 lines=6 *file="/etc/root/plugins/TSystem/P060_THDFSSystem.C"
13 fp=0x7fff704d0548 lines=13 file=“iostream"
14 fp=0x7fff704d05e0 lines=479 file=“iostream.h"
15 fp=0x7fff704d0678 lines=70 *file=“iosenum.h”
– Press return for more – (input [number] of lines, Cont,Step,More)
16 fp=0x7fff704d0710 lines=13 *file=“bool.h"
17 fp=0x7fff704d07a8 lines=194 *file=”_iostream"
18 fp=0x7fff704d0840 lines=34 file=“DllImport.h"
19 fp=0x00010188ee18 lines=11 file=“vector"
20 fp=0x00010188eeb0 lines=18 file=”_vector"
21 fp=0x000000000000 lines=0 file=“vector.dll"
22 fp= via hard link lines=0 *file=”/usr/local//lib/root/cint/cint/stl/vector.dll"
23 fp=0x000000000000 lines=0 *file=”/usr/local//lib/root/libvectorDict.so"
24 fp=0x000000000000 lines=0 file=“vectorbool.dll"
25 fp=0x00010188ef48 lines=312 file=”_vector.h"
26 fp=0x00010188efe0 lines=235 file=“algobase.h"
27 fp=0x00010188f078 lines=55 file=”_pair.h"
28 fp=0x00010188f110 lines=17 file=”_iterator"
29 fp=0x00010188f1a8 lines=667 file=”_iterator.h"
30 fp=0x00010188f240 lines=10 file=“stddef.h"
31 fp=0x00010188f2d8 lines=177 file=“defalloc.h"
32 fp=0x00010188f370 lines=34 file=“new.h"
33 fp=0x0001018c8818 lines=34 file=“stdio.h"
34 fp=0x000000000000 lines=0 file=“stdfunc.dll"
35 fp=0x0001018c88b0 lines=14 file=“stdlib.h"
36 fp=0x0001018c8948 lines=31 file=“limits.h”
– Press return for more – (input [number] of lines, Cont,Step,More)
37 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libRIO.so"
38 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libThread.so"
39 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libNet.so"
40 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libTree.so"
41 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libMatrix.so"
42 fp=0x000000000000 lines=0 file=”/usr/local//lib/root/libHist.so"
43 fp=0x000000000000 lines=0 file="/usr/local//lib/root/libPhysics.so"
44 fp=0x000000000000 lines=0 file="/Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so"
45 fp= via hard link lines=0 *file="/usr/local//lib/root/libGraf.5.so"
46 fp= via hard link lines=0 *file="/usr/local//lib/root/libGraf3d.5.so"
47 fp= via hard link lines=0 *file="/usr/local//lib/root/libGpad.5.so"
48 fp= via hard link lines=0 *file="/usr/local//lib/root/libPostscript.5.so"
49 fp= via hard link lines=0 *file="/usr/local//lib/root/libMinuit.5.so"
50 fp= via hard link lines=0 file="/usr/local//lib/root/libTreePlayer.5.so"
51 fp=0x000000000000 lines=0 file="/Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so"
52 fp=0x000000000000 lines=0 file="/Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so"
53 fp=0x0001018c89e0 lines=306 file="/Users/peter/code/veritas/software/offline/vegas/macros/./…/common/include/VACommon.h"
– Press return for more – (input [number] of lines, Cont,Step,More)
54 fp=0x0001018c8a78 lines=254 file="stdint.h"
55 fp=0x0001018c8b10 lines=233 file="VAUsefulConversions.h"
56 fp=0x0001018c8ba8 lines=11 file="cfloat"
57 fp=0x0001018c8c40 lines=33 file=“float.h"
58 fp=0x0001018c8cd8 lines=23 file=”/Users/peter/code/veritas/software/offline/vegas/macros/./macroLoader.C"
59 fp=0x0001018c8d70 lines=98 file="aclicPreProcCommands.h"
60 fp=0x000101956218 lines=1024
file="TMath.h"
61 fp=0x0001019562b0 lines=29 file="TH2F.h"
62 fp=0x000101956348 lines=55 file="Riostream.h"
63 fp=0x0001019563e0 lines=551 file="RConfig.h"
64 fp=0x000101956478 lines=26 file="RVersion.h"
65 fp=0x000101956510 lines=698 file="AvailabilityMacros.h"
66 fp=0x0001019565a8 lines=11 *file="fstream"
67 fp=0x000101956640 lines=19 *file="fstream.h"
68 fp=0x0001019566d8 lines=11 file="iomanip"
69 fp=0x000101956770 lines=165 file=“iomanip.h”

root [1] gDebug=5
(const int)5

Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport.C
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /var/folders/jf/jfx8nHN6GQKnU0XR2djDGE+++TM/-Tmp-/
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Info in TUnixSystem::ACLiC: creating shared library /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Info in : echo > “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C.d"
Info in : rmkdepend “-f/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C.d” -o_C.so -Y – “-I/usr/local//include/root/include” -I/usr/local//include/root -Wno-unused -Wno-shadow -I”/usr/local//include/root" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/common/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros" -I"/Users/peter/code/veritas/software/offline/vegas/macros" -DR__HAVE_CONFIG -D_REENTRANT – “/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport.C” “-t./dumpErrorReport_C.so” > /dev/null 2>&1
Info in : echo ./dumpErrorReport_C.so: /usr/local//include/root/include/cintdictversion.h /usr/local//include/root/include/RVersion.h >> “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C.d"
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C.d.bak
Info in : creating the dictionary files
Info in : /usr/local//bin/rootcint “–lib-list-prefix=/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_map” -f “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.cxx” -c -p -I/usr/local//include/root -Wno-unused -Wno-shadow -I”/usr/local//include/root" -I"…/common/include/" -I"…/resultsExtractor/include/" “/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport.C” “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_linkdef.h"
Info in : compiling the dictionary and script files
Info in : cd “/Users/peter/code/veritas/software/offline/vegas/macros” ; g++ -c -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -DR__HAVE_CONFIG -D_REENTRANT -pthread -I/usr/local//include/root -Wno-unused -Wno-shadow -I”/usr/local//include/root" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/common/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros" -I"/Users/peter/code/veritas/software/offline/vegas/macros" “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.cxx” ; MACOSX_DEPLOYMENT_TARGET=10.6 g++ “/Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.o” -dynamiclib -single_module -undefined dynamic_lookup -O2 -m64 /usr/local//lib/root/libCint.5.so /usr/local//lib/root/libCore.5.so /usr/local//lib/root/libMathCore.5.so /usr/local//lib/root/libRint.5.so /usr/local//lib/root/libRIO.so /usr/local//lib/root/libThread.so /usr/local//lib/root/libNet.so /usr/local//lib/root/libTree.so /usr/local//lib/root/libMatrix.so /usr/local//lib/root/libHist.so /usr/local//lib/root/libPhysics.so /Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so /usr/local//lib/root/libGraf.5.so /usr/local//lib/root/libGraf3d.5.so /usr/local//lib/root/libGpad.5.so /usr/local//lib/root/libPostscript.5.so /usr/local//lib/root/libMinuit.5.so /usr/local//lib/root/libTreePlayer.5.so /Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so /Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so -o “/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so"
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Info in : loading the shared library
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.rootmap
dlopen error: dlopen(/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so, 10): Library not loaded: lib/libSP24sharedLite.so
Referenced from: /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Info in TUnixSystem::Load: loaded library /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so, status -1
Info in : testing for missing symbols:
Info in : cd /Users/peter/code/veritas/software/offline/vegas/macros ; g++ -c -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -DR__HAVE_CONFIG -D_REENTRANT -pthread -I/usr/local//include/root -Wno-unused -Wno-shadow -I”/usr/local//include/root" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/common/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/include/" -I"/Users/peter/code/veritas/software/offline/vegas/macros" -I"/Users/peter/code/veritas/software/offline/vegas/macros" /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.cxx; g++ /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.o -O2 -m64 -o /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_exec /usr/local//lib/root/libCint.5.so /usr/local//lib/root/libCore.5.so /usr/local//lib/root/libMathCore.5.so /usr/local//lib/root/libRint.5.so /usr/local//lib/root/libRIO.so /usr/local//lib/root/libThread.so /usr/local//lib/root/libNet.so /usr/local//lib/root/libTree.so /usr/local//lib/root/libMatrix.so /usr/local//lib/root/libHist.so /usr/local//lib/root/libPhysics.so /Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so /usr/local//lib/root/libGraf.5.so /usr/local//lib/root/libGraf3d.5.so /usr/local//lib/root/libGpad.5.so /usr/local//lib/root/libPostscript.5.so /usr/local//lib/root/libMinuit.5.so /usr/local//lib/root/libTreePlayer.5.so /Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so /Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so -lm -pthread -ldl
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_exec
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.cxx
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.h
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_dict.o
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_linkdef.h
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_map.in
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_map.out
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_mainC
Info in TPluginManager::FindHandler: did not find plugin for class TSystem and uri /Users/peter/code/veritas/software/offline/vegas/macros/dumpErrorReport_C_ACLiC_exec
*** Interpreter error recovered ***

Hi,

And can you send me the result of:otool -L /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so

Thanks,.
Philippe.

Not sure the command you wanted me to run pasted correctly ?

root [3] otool -L /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
Error: Symbol otool is not defined in current scope (tmpfile):1:
Error: Symbol L is not defined in current scope (tmpfile):1:
Error: Symbol Users is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol peter is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol code is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol veritas is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol software is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol offline is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol vegas is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol macros is not defined in current scope (tmpfile):1:
Error: operator ‘/’ divided by zero (tmpfile):1:
Error: Symbol dumpErrorReport_C is not defined in current scope (tmpfile):1:
Error: Failed to evaluate dumpErrorReport_C.so
(const double)(-inf)
*** Interpreter error recovered ***
root [4]

sorry…

nicole:macros peter$ otool -L /Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so
/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so:
/Users/peter/code/veritas/software/offline/vegas/macros/./dumpErrorReport_C.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local//lib/root/libCint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMathCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRIO.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libThread.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libNet.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTree.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMatrix.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libHist.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPhysics.5.so (compatibility version 5.0.0, current version 5.27.5)
lib/libSP24sharedLite.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local//lib/root/libGraf.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGraf3d.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGpad.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPostscript.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMinuit.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTreePlayer.5.so (compatibility version 5.0.0, current version 5.27.5)
lib/libStage6shared.so (compatibility version 0.0.0, current version 0.0.0)
lib/vaShowRec.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)

Hi,

What is the output of ls -l /Users/peter/code/veritas/software/offline/vegas/macros/../common/lib/libSP24sharedLite.so /Users/peter/code/veritas/software/offline/vegas/macros/../resultsExtractor/lib/libStage6shared.so /Users/peter/code/veritas/software/offline/vegas/macros/../showerReconstruction2/lib/vaShowRec.so

Thanks,
Philippe.

nicole:macros peter$ ls -l /Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so /Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so /Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so
-rwxr-xr-x 1 peter peter 9774440 2010-08-29 20:49 /Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so
-rwxr-xr-x 1 peter peter 4014976 2010-08-29 23:27 /Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so
-rwxr-xr-x 1 peter peter 116040 2010-08-29 23:18 /Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so
nicole:macros peter$

Can you also run otool -L on all those libraries?

Thanks,
Philippe

of course…

nicole:macros peter$ otool -L /Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so /Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so /Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so
/Users/peter/code/veritas/software/offline/vegas/macros/…/common/lib/libSP24sharedLite.so:
lib/libSP24sharedLite.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local//lib/root/libCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libCint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRIO.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libNet.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libHist.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGraf.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGraf3d.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGpad.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTree.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPostscript.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMatrix.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPhysics.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMathCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libThread.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/usr/local//lib/root/libMinuit.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTreePlayer.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor/lib/libStage6shared.so:
lib/libStage6shared.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2/lib/vaShowRec.so:
lib/vaShowRec.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local//lib/root/libCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libCint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRIO.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libNet.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libHist.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGraf.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGraf3d.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libGpad.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTree.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libRint.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPostscript.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMatrix.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libPhysics.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libMathCore.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libThread.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/usr/local//lib/root/libMinuit.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/local//lib/root/libTreePlayer.5.so (compatibility version 5.0.0, current version 5.27.5)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
nicole:macros peter$

Hi,

/Users/peter/code/veritas/software/offline/vegas/macros/../common/lib/libSP24sharedLite.so: lib/libSP24sharedLite.so (compatibility version 0.0.0, current version 0.0.0) etc...So the error comes from the loading of those3 libraries. I am guessing that those requires their top level directory to be in the LD_LIBRARY_PATH. I.e. try adding:

Users/peter/code/veritas/software/offline/vegas/macros/…/common
Users/peter/code/veritas/software/offline/vegas/macros/…/resultsExtractor
Users/peter/code/veritas/software/offline/vegas/macros/…/showerReconstruction2

to the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH

Cheers,
Philippe.

wow - that’s a fix

good work - thanks a mill for the help