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);
}
==================================================
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: ------- ------- ------- ------- ------- ------- ----- libtest_ libtest_ la-cmdline. lo 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*]': 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*>] ' cmdline. cc:790: instantiated from here 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*' libtest_ libtest_ la-cmdline. lo] Error 1 libs/libmemcach ed-1.0. 18' ------- ------- ------- ------- ------- ------- -----
-------
# ./configure --without-memcached && make
...
CXX libtest/
/usr/lib64/
/usr/lib64/
libtest/
/usr/lib64/
make[1]: *** [libtest/
make[1]: Leaving directory `/var/src/
make: *** [all] Error 2
-------
The line in question is this, in libtest/cmdline.cc ======= ======= ======= ======= ======= ======= = :create_ argv(const char *args[]) argv.push_ back(NULL) ; ======= ======= ======= ======= ======= ======= =
=======
void Application:
{
...
built_
}
=======