Symbol lookup error in ROOT

Hello,

I am getting some symbol lookup error while running my code in my CMS FNAL account.
Error is below:

=============================================================================

[#1] INFO:Eval -- RooTreeDataStore::loadValues(BkgDataSet) Ignored 2 out of range events
[#1] INFO:DataHandling -- RooDataHist::adjustBinning(both): fit range of variable invmass expanded to nearest bin boundaries: [60,120] --> [60,120]
/cvmfs/cms.cern.ch/slc7_amd64_gcc700/lcg/root/6.12.07-gnimlf7/bin/root.exe: symbol lookup error: /uscms/homes/t/tmishra/work/CMSSW_10_2_22/src/SUSYAnalysis/test/eleFakePho/fit/FitKer_C.so: undefined symbol: _ZN11RooDCBShapeC1EPKcS1_R10RooAbsRealS3_S3_S3_S3_S3_S3_


=============================================================================

and

some details of the environment. :

[tmishra@cmslpc153 fit]$ echo $PATH
/cvmfs/cms.cern.ch/share/overrides/bin:/uscms/homes/t/tmishra/work/CMSSW_10_2_22/bin/slc7_amd64_gcc700:/uscms/homes/t/tmishra/work/CMSSW_10_2_22/external/slc7_amd64_gcc700/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_2_22/bin/slc7_amd64_gcc700:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_2_22/external/slc7_amd64_gcc700/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/llvm/6.0.0-ogkkac/bin:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-omkpbe2/bin:/cvmfs/cms.cern.ch/common:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin


[tmishra@cmslpc153 fit]$ echo $LD_LIBRARY_PATH
/uscms/homes/t/tmishra/work/CMSSW_10_2_22/biglib/slc7_amd64_gcc700:/uscms/homes/t/tmishra/work/CMSSW_10_2_22/lib/slc7_amd64_gcc700:/uscms/homes/t/tmishra/work/CMSSW_10_2_22/external/slc7_amd64_gcc700/lib:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_2_22/biglib/slc7_amd64_gcc700:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_2_22/lib/slc7_amd64_gcc700:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_2_22/external/slc7_amd64_gcc700/lib:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/llvm/6.0.0-ogkkac/lib64:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-omkpbe2/lib64:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-omkpbe2/lib:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/cuda/9.2.148/drivers

[tmishra@cmslpc153 fit]$ echo $ROOTSYS
/cvmfs/cms.cern.ch/slc7_amd64_gcc700/lcg/root/6.12.07-gnimlf7/

Can anyone please suggest what the issue is.

Thanks in advance.

Can you explain a bit more what is your code (a minimal reproducer is enough) and how you run it. ?

Hi,
I am running it as

root -b -q “FitKer.C+(0, 0, 30, 35, 60,120)”

The file is here :

Before executing your “FitKer.C” macro, you must make sure that ROOT loads the shared library which provides:

[...]$ c++filt _ZN11RooDCBShapeC1EPKcS1_R10RooAbsRealS3_S3_S3_S3_S3_S3_
RooDCBShape::RooDCBShape(char const*, char const*, RooAbsReal&, RooAbsReal&, RooAbsReal&, RooAbsReal&, RooAbsReal&, RooAbsReal&, RooAbsReal&)

For example, create a simple “rootlogon.C” file (in your current working directory):

{ // rootlogon.C
  gSystem->Load("/path/to/your/libWithRooDCBShape.so");
}

I have
#include “…/…/…/include/RooDCBShape.h”

in the above code.

and the file exist at that location.
Is it not enough ?

In principle, you should talk to your CMS colleagues about how to properly use / run it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.