Comment 2 for bug 998237

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 998237] Re: Doesn't compile with Clang

Hi!

It appears that trunk now works fine with Ubuntu 12 + Clang.

Cheers,
 -Brian

On May 13, 2012, at 5:24 PM, Brian Aker wrote:

> Thanks, it is now in our build farm. I will update this when we have
> everything working.
>
> ** Changed in: libmemcached
> Assignee: (unassigned) => Brian Aker (brianaker)
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/998237
>
> Title:
> Doesn't compile with Clang
>
> Status in libmemcached - A C and C++ client library for memcached:
> New
>
> Bug description:
> When I:
>
> Check out out head and compile with Clang 3.0 on Ubuntu 12.04 like
> this:
>
> bzr branch lp:libmemcached
> cd libmemcached
> ./config/autorun.sh
> ./configure CC=clang CXX=clang++
> make
>
> I get:
>
>
> CXX libmemcached/csl/libmemcached_libmemcached_la-context.lo
> In file included from libmemcached/csl/context.cc:38:
> In file included from ./libmemcached/csl/common.h:40:
> In file included from ./libmemcached/common.h:49:
> /usr/include/c++/4.6/cstdlib:118:11: error: no member named 'malloc' in the global namespace
> using ::malloc;
> ~~^
> /usr/include/c++/4.6/cstdlib:126:11: error: no member named 'realloc' in the global namespace
> using ::realloc;
> ~~^
>
> Same checkout works fine with gcc/g++.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/libmemcached/+bug/998237/+subscriptions