Comment 0 for bug 1306830

Revision history for this message
Bostjan Skufca Jese (bostjanskufcajese) wrote :

Hello,

Libmemcached version: 1.0.18
Env: x86_64, slackware 13.0, GCC 4.3.3, config.log attached

I've stumbled onto this build failure, here is the output:
------------------------------------------------------
# ./configure --without-memcached && make
...
  CXX libtest/libtest_libtest_la-cmdline.lo
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.3/ext/new_allocator.h: In member function 'void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, _Args&& ...) [with _Args = long int, _Tp = char*]':
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.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:790: instantiated from here
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.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 `/var/src/libs/libmemcached-1.0.18'
make: *** [all] Error 2
------------------------------------------------------

The line in question is this, in libtest/cmdline.cc
==================================================
void Application::create_argv(const char *args[])
{
  ...
  built_argv.push_back(NULL);
}
==================================================