Doesn't compile with Clang

Bug #998237 reported by Martin C. Martin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Fix Released
Low
Brian Aker

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++.

Revision history for this message
Brian Aker (brianaker) wrote :

Thanks, it is now in our build farm. I will update this when we have everything working.

Changed in libmemcached:
assignee: nobody → Brian Aker (brianaker)
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

Revision history for this message
Brian Aker (brianaker) wrote :

This is working with trunk now. If you find that this is not fixed for you, please reopen.

Changed in libmemcached:
milestone: none → 1.0.8
importance: Undecided → Low
status: New → Fix Committed
Brian Aker (brianaker)
Changed in libmemcached:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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