Build failure in libtest/cmdline.cc:790, gcc 4.3.3

Bug #1306830 reported by Bostjan Skufca Jese
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libmemcached
New
Undecided
Unassigned

Bug Description

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);
}
==================================================

Can anyone give a quick hint how to overcome this?

Thank you,
b.

Revision history for this message
Bostjan Skufca Jese (bostjanskufcajese) wrote :
description: updated
Revision history for this message
Darin (darinp) wrote :

I'm seeing this same error when attempting to build on SuSE Enterprise 11sp3 with gcc 4.3.4. The build log is available at the below link from the build service.

https://build.opensuse.org/package/live_build_log/server:database:postgresql/libmemcached/SLE_11_SP3/x86_64

Revision history for this message
sauronsmatrix (aavindraa) wrote :

Also trying to build on SLES 11 SP3. Is there any follow up to this issue?

Revision history for this message
Jakub Warmuz (jakub-warmuz) wrote :

Bump, SLES 11 SP3, same problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.