Hi Steve, This is peculiar; I say so because I have been running over the last couple of day w/o problems proof jobs tht uses all the different ascpect of of code including the eff cal. Are you sure yoy recompiled all of brat.. (I would assume so), but usings ./setup.sh in each iod brat, bdst, banapp ? Could you try from scratch Flemming -------------------------------------------- Flemming Videbaek Physics Department Bldg 510-D Brookhaven National Laboratory Upton, NY11973 phone: 631-344-4106 cell: 631-681-1596 fax: 631-344-1334 e-mail: videbaek @ bnl gov ----- Original Message ----- From: "Stephen Sanders" <ssanders_at_ku.edu> To: "Brahms Dev" <brahms-dev-l_at_lists.bnl.gov> Sent: Saturday, September 01, 2007 5:26 PM Subject: [Brahms-dev-l] EfficiencyCalculator problem on rcas > Hi: I am unable to get the EfficiencyCalculator working on the new > rcas system. > I have downloaded the latest banapp. To show the failure I've > written a > minimal test program DebugEff.C: > > #include <TROOT.h> > #inc lude <TSystem.h> > #include "/brahms/u/sanders/include/banapp/EfficiencyCalculator.h" > > void DebugEff() { > Int_t iAngle = 4; > Int_t field = 861; > Char_t * Polarity = "B"; > gSystem->Load("/brahms/u/sanders/lib/banapp/libEfficiency.so"); > TString effFileDir = "/brahms/u/sanders/analysis/efficiency/ > receffnew/efficdb/"; > EfficiencyCalculator *effCal = new EfficiencyCalculator > (effFileDir, iAngle, field, Polarity); > } > > This results in a load failure: > brat [0] > Processing DebugEff.C+... > Info in <TUnixSystem::ACLiC>: creating shared library /direct/brahms > +u/sanders/analysis/spectra/./DebugEff_C.so > In file included from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.h:32, > from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.cxx:16: > /direct/brahms+u/sanders/analysis/spectra/./DebugEff.C: In function > `void DebugEff()': > /direct/brahms+u/sanders/analysis/spectra/./DebugEff.C:12: warning: > unused variable 'effCal' > dlopen error: /direct/brahms+u/sanders/analysis/spectra/./ > DebugEff_C.so: undefined symbol: > _ZN20EfficiencyCalculatorC1E7TStringiiS0_ > Load Error: Failed to load Dynamic link library /direct/brahms+u/ > sanders/analysis/spectra/./DebugEff_C.so > In file included from /direct/brahms+u/sanders/analysis/spectra/./ > DebugEff.C:3, > from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.h:32, > from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.cxx:16: > /brahms/u/sanders/include/banapp/EfficiencyCalculator.h:73: warning: > unused parameter 'nhist' > /brahms/u/sanders/include/banapp/EfficiencyCalculator.h:73: warning: > unused parameter 'p' > /brahms/u/sanders/include/banapp/EfficiencyCalculator.h:74: warning: > unused parameter 'p' > In file included from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.h:32, > from /direct/brahms+u/sanders/analysis/spectra/./ > filetrfbjP.cxx:16: > /direct/brahms+u/sanders/analysis/spectra/./DebugEff.C: In function > `void DebugEff()': > /direct/brahms+u/sanders/analysis/spectra/./DebugEff.C:12: warning: > unused variable 'effCal' > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In > function `_start': > : undefined reference to `main' > /direct/brahms+u/sanders/analysis/spectra/./filetrfbjP.o(.text+0xdd): > In function `DebugEff()': > : undefined reference to `EfficiencyCalculator::EfficiencyCalculator > (TString, int, int, TString)' > collect2: ld returned 1 exit status > *** Interpreter error recovered *** > brat [1] > > > Any suggestions? > ...steve > _______________________________________________ > Brahms-dev-l mailing list > Brahms-dev-l_at_lists.bnl.gov > https://lists.bnl.gov/mailman/listinfo/brahms-dev-l > _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l_at_lists.bnl.gov https://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Sat Sep 01 2007 - 20:45:06 EDT
This archive was generated by hypermail 2.2.0 : Sat Sep 01 2007 - 20:45:31 EDT