[quote]but I need to install an older version. [/quote]The older version were not ported to gcc 4.2.1. You can attempt to make the build by copying the file cint/src/gcc4strm.h and cint/src/gcc4strm.cxx from ROOT 5.17 or 18 over the old cint/src/gcc3strm.h and cint/src/gcc3strm.cxx
thank you for your suggestion, but unfortunately I didn’t manage to compile ROOT. Below are the last lines of the output…
cint/src/gcc4strm.cxx:4679: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4680: error: ‘basic_ofstream’ was not declared in this scope
cint/src/gcc4strm.cxx:4680: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4680: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4681: error: ‘basic_fstream’ was not declared in this scope
cint/src/gcc4strm.cxx:4681: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4681: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4682: error: ‘basic_iostream’ was not declared in this scope
cint/src/gcc4strm.cxx:4682: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4682: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4683: error: ‘G__get_linked_tagnum_fwd’ was not declared in this scope
cint/src/gcc4strm.cxx:4684: error: ‘basic_stringbuf’ was not declared in this scope
cint/src/gcc4strm.cxx:4684: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4684: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4685: error: ‘basic_istringstream’ was not declared in this scope
cint/src/gcc4strm.cxx:4685: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4685: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4686: error: ‘basic_ostringstream’ was not declared in this scope
cint/src/gcc4strm.cxx:4686: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4686: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx:4687: error: ‘basic_stringstream’ was not declared in this scope
cint/src/gcc4strm.cxx:4687: error: expected primary-expression before ‘char’
cint/src/gcc4strm.cxx:4687: error: expected `)' before ‘char’
cint/src/gcc4strm.cxx: At global scope:
cint/src/gcc4strm.cxx:3757: warning: ‘void G__setup_memvarchar_traitslEchargR()’ defined but not used
cint/src/gcc4strm.cxx:3766: warning: ‘void G__setup_memvarbasic_istreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3775: warning: ‘void G__setup_memvarbasic_ioslEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3784: warning: ‘void G__setup_memvarbasic_streambuflEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3793: warning: ‘void G__setup_memvarbasic_ostreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3802: warning: ‘void G__setup_memvarbasic_ostreamlEcharcOchar_traitslEchargRsPgRcLcLsentry()’ defined but not used
cint/src/gcc4strm.cxx:3811: warning: ‘void G__setup_memvarbasic_istreamlEcharcOchar_traitslEchargRsPgRcLcLsentry()’ defined but not used
cint/src/gcc4strm.cxx:3820: warning: ‘void G__setup_memvarbasic_filebuflEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3829: warning: ‘void G__setup_memvarbasic_ifstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3838: warning: ‘void G__setup_memvarbasic_ofstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3847: warning: ‘void G__setup_memvarbasic_fstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3856: warning: ‘void G__setup_memvarbasic_iostreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3865: warning: ‘void G__setup_memvarbasic_stringbuflEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3874: warning: ‘void G__setup_memvarbasic_istringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3883: warning: ‘void G__setup_memvarbasic_ostringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:3892: warning: ‘void G__setup_memvarbasic_stringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4002: warning: ‘void G__setup_memfuncchar_traitslEchargR()’ defined but not used
cint/src/gcc4strm.cxx:4044: warning: ‘void G__setup_memfuncbasic_istreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4085: warning: ‘void G__setup_memfuncbasic_ioslEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4118: warning: ‘void G__setup_memfuncbasic_streambuflEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4148: warning: ‘void G__setup_memfuncbasic_ostreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4166: warning: ‘void G__setup_memfuncbasic_ostreamlEcharcOchar_traitslEchargRsPgRcLcLsentry()’ defined but not used
cint/src/gcc4strm.cxx:4178: warning: ‘void G__setup_memfuncbasic_istreamlEcharcOchar_traitslEchargRsPgRcLcLsentry()’ defined but not used
cint/src/gcc4strm.cxx:4193: warning: ‘void G__setup_memfuncbasic_filebuflEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4207: warning: ‘void G__setup_memfuncbasic_ifstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4223: warning: ‘void G__setup_memfuncbasic_ofstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4239: warning: ‘void G__setup_memfuncbasic_fstreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4255: warning: ‘void G__setup_memfuncbasic_iostreamlEcharcOchar_traitslEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4265: warning: ‘void G__setup_memfuncbasic_stringbuflEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4279: warning: ‘void G__setup_memfuncbasic_istringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4295: warning: ‘void G__setup_memfuncbasic_ostringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
cint/src/gcc4strm.cxx:4309: warning: ‘void G__setup_memfuncbasic_stringstreamlEcharcOchar_traitslEchargRcOallocatorlEchargRsPgR()’ defined but not used
make: *** [cint/src/gcc4strm.o] Error 1
[quote]cint/src/gcc4strm.cxx:4679: error: expected `)’ before ‘char’ [/quote]I meant that not only you need to copy gcc4strm but also rename it to gcc3strm (i.e. over-write the existing gcc3strm files).
I did forget to mention that you need to also change the #include “gcc4strm.h” into #include “gcc3strm.h” in the (new) file gcc3strm.cxx.
If this does not work, then you might try to completely replace the cint directory with the cint directory from root 5-17 or 5-18.
I need to run same HCAL classes for the analysis of TB data…
I could only compile them with older versions of ROOT, which I couldn’t install on my gcc 4.2.1 linux…
To overcome this conflict I’m using now another pc with older version of gcc…
hello again,
i have copied the cint repertory of a newer version in my old version of root so the make seems to work fine but when i try sudo make install i get these ;
dounia@ordinator:~/install/root$ sudo make install
make: *** No rule to make target config/Makefile.comp', needed byinclude/configcint.h’. Stop.
ok finally i have installed the new version 5.18 of ROOT. The program seems to be installed but when i try to launch it with .root.exe nothing happens. I have to go in the bin directory to launch root is it normal?
Well. Been messing around for a bit now, trying to get root 5.14 running on my 10.04 64-bit installation.
Yes, I have 5.32 running fine. Yes, it is necessary to also have 5.14.
So, to chronicle my steps…
sudo gedit /etc/apt/sources.list
Add these lines
deb hu.archive.ubuntu.com/ubuntu/ hardy universe
deb hu.archive.ubuntu.com/ubuntu/ hardy-updates universe
sudo apt-get update
sudo apt-get install build-essential gcc-3.4 g+±3.4 libstdc++6-4.3-dev g77 gcc-multilib
sudo su
cd /usr/bin
mkdir hide
(after installation, change symbolic links to compilers back to latest versions; in /usr/bin rm g++, rm gcc, mv hide/* . , rm -r hide)
mv gcc hide
mv g++ hide
ln -s gcc-3.4 gcc
ln -s g+±3.4 g++
exit
(gcc -v, g++ -v should return 3.4)
gedit cint/src/Type.cxx
(change two instances of ‘defind’ to ‘defined’, save, exit)
./configure linuxdeb
make
[…] .gnu.linkonce.t._ZN4ROOT6Cintex9ConverterIeE6toCintEP8G__valuePv' referenced in section.rodata’ of cintex/src/CINTUtils.o: defined in discarded section `.gnu.linkonce.t._ZN4ROOT6Cintex9ConverterIeE6toCintEP8G__valuePv’ of cintex/src/CINTUtils.o
collect2: ld returned 1 exit status
make: *** [lib/libCintex.so] Error 1