Problems with make gearman 1.1.12

Asked by John

I'm unable to run make for gearman 1.1.12...

make[1]: Entering directory `/root/gearmand-1.1.12'
  CXX libtest/libtest_libtest_la-cmdline.lo
/usr/include/c++/4.3/ext/new_allocator.h: In member function 'void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, _Args&& ...) [with _Args = long int, _Tp = char*]':
/usr/include/c++/4.3/bits/stl_vector.h:703: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(_Args&& ...) [with _Args = long int, _Tp = char*, _Alloc = std::allocator<char*>]'
libtest/cmdline.cc:851: instantiated from here
/usr/include/c++/4.3/ext/new_allocator.h:114: error: invalid conversion from 'long int' to 'char*'
make[1]: *** [libtest/libtest_libtest_la-cmdline.lo] Error 1
make[1]: Leaving directory `/root/gearmand-1.1.12'

Can anyone help out a newbie? thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Gearman Edit question
Assignee:
No assignee Edit question
Solved by:
John
Solved:
Last query:
Last reply:
Revision history for this message
chjgcn (chjgcn) said :
#1

What is the compiler and the version of the compiler in the system?
Maybe the compiler is too old to compile it. I suggest using the newest version of compiler.

Revision history for this message
John (jkratman) said :
#2

Yep, you were right. Installed gcc47 and all is well (SLES 11.3)

Thanks so much for your help.