Skip Menu |

This queue is for tickets about the Couchbase-Client CPAN distribution.

Report information
The Basics
Id: 84678
Status: open
Priority: 0/
Queue: Couchbase-Client

People
Owner: Nobody in particular
Requestors: robert.d.finn [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Failure to compile Couchbase::Client
Date: Tue, 16 Apr 2013 14:56:39 -0400
To: bug-Couchbase-Client [...] rt.cpan.org
From: Rob Finn <robert.d.finn [...] gmail.com>
Hi, A fatal error, but pretty easy to fix. While running make on OS X, I get the following error: cd src && make cc -c -I/Users/finnr/.cpan/build/Couchbase-Client-1.0.1-NShKW4/blib/lib/auto/share/dist/Couchbase-Client/Library/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -O3 -DVERSION=\"1.0.1\" -DXS_VERSION=\"1.0.1\" -o xs/async_events.o "-I/opt/lib/perl5/5.16.1/darwin-2level/CORE" xs/async_events.c xs/async_events.c:181:9: error: non-void function 'update_event' should return a value [-Wreturn-type] return; ^ 1 error generated. make: *** [xs/async_events.o] Error 1 If you comment out the return on line 181 (or delete it) in xs/async_events.c, the XS library compiles successfully. i.e. if(cevent->flags == flags && cevent->c.handler == handler && cevent->c.arg == cb_data && new_state == cevent->state) { /*nothing to do here*/ /*return;*/ return 0; } Versions: Couchbase-Client-1.0.0 &Couchbase-Client-1.0.1 OS : Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 Perl : v5.16.1 Thanks, Rob
Hi, this is being fixed in the 'views' branch on github which I'll try to post to CPAN soon. I'll fix it in the general branch as well, though. On Tue Apr 16 14:56:56 2013, robert.d.finn@gmail.com wrote: Show quoted text
> Hi, > > > A fatal error, but pretty easy to fix. While running make on OS X, I > get the following error: > > cd src && make > cc -c -I/Users/finnr/.cpan/build/Couchbase-Client-1.0.1- > NShKW4/blib/lib/auto/share/dist/Couchbase-Client/Library/include > -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack- > protector -O3 -DVERSION=\"1.0.1\" -DXS_VERSION=\"1.0.1\" -o > xs/async_events.o "-I/opt/lib/perl5/5.16.1/darwin-2level/CORE" > xs/async_events.c > xs/async_events.c:181:9: error: non-void function 'update_event' > should return a value [-Wreturn-type] > return; > ^ > 1 error generated. > make: *** [xs/async_events.o] Error 1 > > If you comment out the return on line 181 (or delete it) in > xs/async_events.c, the XS library compiles successfully. > > i.e. > > if(cevent->flags == flags && > cevent->c.handler == handler && > cevent->c.arg == cb_data && > new_state == cevent->state) { > /*nothing to do here*/ > /*return;*/ > return 0; > } > > > Versions: Couchbase-Client-1.0.0 &Couchbase-Client-1.0.1 > OS : Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST > 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 > Perl : v5.16.1 > > Thanks, > > Rob
We just ran into this same issue. The version of Couchbase::Client (1.0.1) on CPAN does not compile on Mac OS X. It appears the fix is already in the github repository. Is there any chance that a simple backport of this fix can be applied to e.g. a 1.0.2 version to push to CPAN? Thanks!
I've just submitted 1.0.2 to CPAN. I've really been lagging behind as now I also maintain the underlying C library as well as the Python library. I'll be getting around to making a new release in the 2.0.x branch in the future hopefully. More demand means more resources dedicated to this project :) On Thu Jun 19 17:25:05 2014, finn wrote: Show quoted text
> We just ran into this same issue. The version of Couchbase::Client > (1.0.1) on CPAN does not compile on Mac OS X. It appears the fix is > already in the github repository. Is there any chance that a simple > backport of this fix can be applied to e.g. a 1.0.2 version to push to > CPAN? Thanks!
Thanks! Confirmed it builds/tests/installs for me: cpanm Couchbase::Client --> Working on Couchbase::Client Fetching http://www.cpan.org/authors/id/M/MN/MNUNBERG/Couchbase-Client-1.0.2.tar.gz ... OK Configuring Couchbase-Client-v1.0.2 ... OK Building and testing Couchbase-Client-v1.0.2 ... OK Successfully installed Couchbase-Client-v1.0.2 1 distribution installed