Make: *** [cint/cint/src/Class.o] Error 1

I got error when I install ROOT 5.28 in ubuntu 12.04. Here’s the error message:

bin/rmkdepend -R -fcint/cint/src/Class.d -Y -w 1000 – -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/home/sean/root/cint/cint/inc -I/home/sean/root/cint/cint/src -I/home/sean/root/cint/cint/src/dict -pthread -I. -D__cplusplus – cint/cint/src/Class.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/home/sean/root/cint/cint/inc -I/home/sean/root/cint/cint/src -I/home/sean/root/cint/cint/src/dict -pthread -I. -o cint/cint/src/Class.o -c cint/cint/src/Class.cxx
cint/cint/src/Class.cxx:262:6: error: prototype for ‘void Cint::G__ClassInfo::SetGlobalcomp(int)’ does not match any in class ‘Cint::G__ClassInfo’
include/Class.h:67:8: error: candidate is: void Cint::G__ClassInfo::SetGlobalcomp(G__SIGNEDCHAR_T)
cint/cint/src/Class.cxx: In member function ‘void* Cint::G__ClassInfo::New()’:
cint/cint/src/Class.cxx:824:54: error: invalid conversion from ‘int*’ to ‘long int*’ [-fpermissive]
include/G__ci_fproto.h:390:1: error: initializing argument 3 of ‘void G__CurrentCall(int, void*, long int*)’ [-fpermissive]
cint/cint/src/Class.cxx: In member function ‘void* Cint::G__ClassInfo::New(int)’:
cint/cint/src/Class.cxx:890:54: error: invalid conversion from ‘int*’ to ‘long int*’ [-fpermissive]
include/G__ci_fproto.h:390:1: error: initializing argument 3 of ‘void G__CurrentCall(int, void*, long int*)’ [-fpermissive]
cint/cint/src/Class.cxx: In member function ‘void* Cint::G__ClassInfo::New(void*)’:
cint/cint/src/Class.cxx:976:54: error: invalid conversion from ‘int*’ to ‘long int*’ [-fpermissive]
include/G__ci_fproto.h:390:1: error: initializing argument 3 of ‘void G__CurrentCall(int, void*, long int*)’ [-fpermissive]
cint/cint/src/Class.cxx: In member function ‘void* Cint::G__ClassInfo::New(int, void*)’:
cint/cint/src/Class.cxx:1052:54: error: invalid conversion from ‘int*’ to ‘long int*’ [-fpermissive]
include/G__ci_fproto.h:390:1: error: initializing argument 3 of ‘void G__CurrentCall(int, void*, long int*)’ [-fpermissive]
make: *** [cint/cint/src/Class.o] Error 1

I tried other edition of ROOT, but the same error message still appeared.

What should I do?

Have you tried the latest v5-34-00-patches branch?

I tried 5.34, but another error message appeared:

Getline.cxx:(.text+0x1b0): multiple definition of Gl_config' core/clib/src/Getline.o:Getline.c:(.text+0x1460): first defined here core/textinput/src/Getline.o: In functionGl_histadd’:
Getline.cxx:(.text+0x390): multiple definition of Gl_histadd' core/clib/src/Getline.o:Getline.c:(.text+0x2040): first defined here core/textinput/src/Getline.o: In functionGetlinem’:
Getline.cxx:(.text+0x550): multiple definition of Getlinem' core/clib/src/Getline.o:Getline.c:(.text+0x1650): first defined here core/textinput/src/Getline.o:(.bss+0x4): multiple definition ofGl_in_key’
core/clib/src/Getline.o:(.bss+0x0): first defined here
core/textinput/src/Getline.o: In function Getline': Getline.cxx:(.text+0x1550): multiple definition ofGetline’
core/clib/src/Getline.o:Getline.c:(.text+0x1f90): first defined here
core/textinput/src/Getline.o: In function Gl_histsize': Getline.cxx:(.text+0x1580): multiple definition ofGl_histsize’
core/clib/src/Getline.o:Getline.c:(.text+0x1fc0): first defined here
core/textinput/src/Getline.o: In function Gl_histinit': Getline.cxx:(.text+0x15a0): multiple definition ofGl_histinit’
core/clib/src/Getline.o:Getline.c:(.text+0x2430): first defined here
core/textinput/src/Getline.o: In function Gl_eof': Getline.cxx:(.text+0x15f0): multiple definition ofGl_eof’
core/clib/src/Getline.o:Getline.c:(.text+0x1f70): first defined here
core/textinput/src/Getline.o: In function Gl_setwidth': Getline.cxx:(.text+0x1980): multiple definition ofGl_setwidth’
core/clib/src/Getline.o:Getline.c:(.text+0x1500): first defined here
core/textinput/src/Getline.o: In function Gl_windowchanged': Getline.cxx:(.text+0x1990): multiple definition ofGl_windowchanged’
core/clib/src/Getline.o:Getline.c:(.text+0x1550): first defined here
core/textinput/src/Getline.o:(.bss+0x0): multiple definition of `Gl_beep_hook’
core/clib/src/Getline.o:(.bss+0x4): first defined here
collect2: ld returned 1 exit status
make: *** [lib/libCore.so] Error 1

Hi,

v5.28 is not supported on Ubuntu 11 and up. Try v5.34/09. Make sure to start from a fresh directory and that there is no interference from previously set environment variable (i.e PATH, LD_LIBRARY_PATH or ROOTSYS pointing to the wrong directory).

If it still fails for you, please copy/paste the command line that leads to those error (i.e. the command line just before the errors are printed).

Cheers,
Philippe.