Make error ROOT v 5.24.00 on Ubuntu 11.10


I’m at a point where I need to use an older version of ROOT to do some work. I’m on Ubuntu 11.10 and I first had to modify the configure script to tell it where to find libX11 etc., however when I go to make -j4, it gets to a point and make throws the error:

[quote]bin/rmkdepend -R -fmath/mathcore/src/Fitter.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/Fitter.cxx
bin/rmkdepend -R -fmath/mathcore/src/Integrator.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/Integrator.cxx
bin/rmkdepend -R -fmath/mathcore/src/MinimizerOptions.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/MinimizerOptions.cxx
bin/rmkdepend -R -fmath/mathcore/src/MinimizerVariableTransformation.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/MinimizerVariableTransformation.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/Fitter.o -c math/mathcore/src/Fitter.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/MinimizerOptions.o -c math/mathcore/src/MinimizerOptions.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/MinimizerVariableTransformation.o -c math/mathcore/src/MinimizerVariableTransformation.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/Integrator.o -c math/mathcore/src/Integrator.cxx
bin/rmkdepend -R -fmath/mathcore/src/MinimTransformFunction.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/MinimTransformFunction.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/MinimTransformFunction.o -c math/mathcore/src/MinimTransformFunction.cxx
bin/rmkdepend -R -fmath/mathcore/src/ParameterSettings.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/ParameterSettings.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/ParameterSettings.o -c math/mathcore/src/ParameterSettings.cxx
In file included from math/mathcore/src/Fitter.cxx:15:0:
include/Fit/Chi2FCN.h:187:29: error: reference ‘fFunc’ cannot be declared ‘mutable’ [-fpermissive]
In file included from math/mathcore/src/Fitter.cxx:16:0:
include/Fit/PoissonLikelihoodFCN.h:146:29: error: reference ‘fFunc’ cannot be declared ‘mutable’ [-fpermissive]
In file included from math/mathcore/src/Fitter.cxx:17:0:
include/Fit/LogLikelihoodFCN.h:158:29: error: reference ‘fFunc’ cannot be declared ‘mutable’ [-fpermissive]
bin/rmkdepend -R -fmath/mathcore/src/PdfFuncMathCore.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -D__cplusplus – math/mathcore/src/PdfFuncMathCore.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -DUSE_ROOT_ERROR -o math/mathcore/src/PdfFuncMathCore.o -c math/mathcore/src/PdfFuncMathCore.cxx
make: *** [math/mathcore/src/Fitter.o] Error 1
make: *** Waiting for unfinished jobs…[/quote]

I’m at a bit of a loss. I’ve read in various posts that only version 5.32 is supported on the latest Ubuntu release but there must be some fix [-o< Does anyone have an idea?



You can try to apply this patch, committed in this revision, to have it work on this old version

Best Regards