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