Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Perl no go

1 reply [Last post]
  • Login or register to post comments
Thu, 08/25/2011 - 08:19
nielsl
Offline
Joined: 08/25/2011
Groups: None

Membase maintainers,

When unpacking Memcached-libmemcached-0.4406 and typing perl Makefile.PL
the output stops with
.
.
checking cxxabi.h presence... yes
checking for cxxabi.h... yes
checking checking for abi::__cxa_demangle... yes
checking for htonll... no
checking for working SO_SNDTIMEO... yes
checking for working SO_RCVTIMEO... yes
checking for supported struct padding... yes
checking for memcached... no
configure: error: "could not find memcached binary"
Unable to build libmemcached: Error running cd src/libmemcached && ./configure --prefix=/home/donate/Downloads/Memcached-libmemcached-0.4406/src_inst --disable-sasl --with-pic --disable-shared

Aborted.

When --with-membased is added to the ./configure statement of line 187 in
Makefile.PL, then it compiles, with a few warnings. Then make test fails
with the output below. I am on a 32 bit linux laptop, membase runs on
localhost:11211 and perl version below. The CPAN way on your perl get
started page fails with same error, but in a more long winded way. This
error (but not the test fails) were mentioned by someone in march, but
the module has not been updated. Membase is a downloaded enterprise
edition version 1.7.1 which runs as root, and I see the web console at
port 8091.

All memcache perl modules fail with compile or test error, except
Memcached-Client, which I will use, but would rather use the recommended
one, although that seems to have loose ends too.

Do the test errors indicate something I have done wrong? I am running
perl and its modules as regular user. Second, would you know if the
stats method of Memcached-libmemcached will be solidified?

Greetings,
Niels Larsen

------------------------------- make test --------------------------------

~/Downloads/Memcached-libmemcached-0.4406> make test
cp lib/Memcached/libmemcached/memcached_delete.pm blib/lib/Memcached/libmemcached/memcached_delete.pm
cp lib/Memcached/libmemcached/memcached_version.pm blib/lib/Memcached/libmemcached/memcached_version.pm
cp lib/Memcached/libmemcached/memcached_flush_buffers.pm blib/lib/Memcached/libmemcached/memcached_flush_buffers.pm
cp lib/Memcached/libmemcached/memcached_server_st.pm blib/lib/Memcached/libmemcached/memcached_server_st.pm
cp lib/Memcached/libmemcached/memcached_quit.pm blib/lib/Memcached/libmemcached/memcached_quit.pm
cp lib/Memcached/libmemcached/const_hash.pl blib/lib/Memcached/libmemcached/const_hash.pl
cp lib/Memcached/libmemcached/memcached_stats.pm blib/lib/Memcached/libmemcached/memcached_stats.pm
cp lib/Memcached/libmemcached/memcached_verbosity.pm blib/lib/Memcached/libmemcached/memcached_verbosity.pm
cp lib/Memcached/libmemcached/memcached_strerror.pm blib/lib/Memcached/libmemcached/memcached_strerror.pm
cp lib/Memcached/libmemcached/memcached_pool.pm blib/lib/Memcached/libmemcached/memcached_pool.pm
cp lib/Memcached/libmemcached/memcached_set.pm blib/lib/Memcached/libmemcached/memcached_set.pm
cp lib/Memcached/libmemcached/memcached_create.pm blib/lib/Memcached/libmemcached/memcached_create.pm
cp lib/Memcached/libmemcached/memcached_user_data.pm blib/lib/Memcached/libmemcached/memcached_user_data.pm
cp lib/Memcached/libmemcached/memcached_memory_allocators.pm blib/lib/Memcached/libmemcached/memcached_memory_allocators.pm
cp lib/Memcached/libmemcached/API.pm blib/lib/Memcached/libmemcached/API.pm
cp libmemcached.pm blib/lib/Memcached/libmemcached.pm
cp lib/Memcached/libmemcached/memcached_analyze.pm blib/lib/Memcached/libmemcached/memcached_analyze.pm
cp lib/Memcached/libmemcached/memcached_dump.pm blib/lib/Memcached/libmemcached/memcached_dump.pm
cp lib/Memcached/libmemcached/memcached_sasl.pm blib/lib/Memcached/libmemcached/memcached_sasl.pm
cp lib/Memcached/libmemcached/memcached_flush.pm blib/lib/Memcached/libmemcached/memcached_flush.pm
cp lib/Memcached/libmemcached/memcached_get.pm blib/lib/Memcached/libmemcached/memcached_get.pm
cp lib/Memcached/libmemcached/memcached_auto.pm blib/lib/Memcached/libmemcached/memcached_auto.pm
cp lib/Memcached/libmemcached/memcached_generate_hash_value.pm blib/lib/Memcached/libmemcached/memcached_generate_hash_value.pm
cp lib/Memcached/libmemcached/memcached_servers.pm blib/lib/Memcached/libmemcached/memcached_servers.pm
cp lib/Memcached/libmemcached/memcached_result_st.pm blib/lib/Memcached/libmemcached/memcached_result_st.pm
cp lib/Memcached/libmemcached/constants.pm blib/lib/Memcached/libmemcached/constants.pm
cp lib/Memcached/libmemcached/memcached_behavior.pm blib/lib/Memcached/libmemcached/memcached_behavior.pm
cp lib/Memcached/libmemcached/memcached_callback.pm blib/lib/Memcached/libmemcached/memcached_callback.pm
cp lib/Memcached/libmemcached/func_hash.pl blib/lib/Memcached/libmemcached/func_hash.pl
/home/donate/DONATE/Software/Package_installs/Perl/bin/perl -It/lib t/lib/ExtUtils/xsubpp libmemcached.xs > libmemcached.xsc && mv libmemcached.xsc libmemcached.c
cc -c -I/home/donate/Downloads/Memcached-libmemcached-0.4406/src_inst/include -fPIC -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.4406\" -DXS_VERSION=\"0.4406\" -fPIC "-I/home/donate/DONATE/Software/Package_installs/Perl/lib/perl5/5.14.1/i686-linux/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter libmemcached.c
libmemcached.c: In function ‘XS_Memcached__libmemcached_memcached_create’:
libmemcached.c:538:27: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
libmemcached.c: In function ‘XS_Memcached__libmemcached_memcached_clone’:
libmemcached.c:627:27: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
libmemcached.c: In function ‘XS_Memcached__libmemcached_memcached_strerror’:
libmemcached.c:3943:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
libmemcached.xs: In function ‘XS_Memcached__libmemcached_get_server_for_key’:
libmemcached.xs:1002:9: warning: passing argument 1 of ‘memcached_server_free’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/donate/Downloads/Memcached-libmemcached-0.4406/src_inst/include/libmemcached/server.h:78:6: note: expected ‘struct memcached_server_st *’ but argument is of type ‘memcached_server_instance_st’
Running Mkbootstrap for Memcached::libmemcached ()
chmod 644 libmemcached.bs
rm -f blib/arch/auto/Memcached/libmemcached/libmemcached.so
cc -shared -O2 -L/usr/local/lib -fstack-protector libmemcached.o /home/donate/Downloads/Memcached-libmemcached-0.4406/src_inst/lib/libmemcached.a -o blib/arch/auto/Memcached/libmemcached/libmemcached.so \
\

chmod 755 blib/arch/auto/Memcached/libmemcached/libmemcached.so
cp libmemcached.bs blib/arch/auto/Memcached/libmemcached/libmemcached.bs
chmod 644 blib/arch/auto/Memcached/libmemcached/libmemcached.bs
PERL_DL_NONLAZY=1 /home/donate/DONATE/Software/Package_installs/Perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ...................... 1/5 # Testing Memcached::libmemcached 0.4406, Perl 5.014001, linux, /home/donate/DONATE/Software/Package_installs/Perl/bin/perl
t/00-load.t ...................... ok
t/01-import.t .................... ok
t/02-create.t .................... ok
t/02-subclass.t .................. ok
t/03-servers.t ................... ok
t/04-strerror.t .................. ok
t/05-behavior.t .................. ok
t/06-verbosity.t ................. ok
t/10-set-get.t ................... Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 495.
# Looks like your test exited with 11 before it could output anything.
t/10-set-get.t ................... Dubious, test returned 11 (wstat 2816, 0xb00)
Failed 14/14 subtests
t/11-set-get-by-key.t ............ 6/13
# Failed test at t/11-set-get-by-key.t line 54.

# Failed test at t/11-set-get-by-key.t line 55.

# Failed test at t/11-set-get-by-key.t line 56.
# got: SUCCESS
# expected: 16
# Looks like you failed 3 tests of 13.
t/11-set-get-by-key.t ............ Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/13 subtests
t/12-set-get-binary.t ............ Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 496.
t/12-set-get-binary.t ............ Dubious, test returned 11 (wstat 2816, 0xb00)
No subtests run
t/15-auto.t ...................... ok
t/20-set.t ....................... ok
t/21-set-by-key.t ................ ok
t/25-get.t ....................... ok
t/26-get-cb.t .................... ok
t/27-set-cb.t .................... ok
t/28-get-prefix.t ................ ok
t/30-prepend-append.t ............ Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 496.
t/30-prepend-append.t ............ Dubious, test returned 11 (wstat 2816, 0xb00)
No subtests run
t/31-prepend-append-by-key.t ..... Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 496.
t/31-prepend-append-by-key.t ..... Dubious, test returned 11 (wstat 2816, 0xb00)
No subtests run
t/35-replace.t ................... Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 496.
t/35-replace.t ................... Dubious, test returned 115 (wstat 29440, 0x7300)
No subtests run
t/36-replace-by-key.t ............ Can't use an undefined value as an ARRAY reference at /home/donate/Downloads/Memcached-libmemcached-0.4406/blib/lib/Memcached/libmemcached.pm line 496.
t/36-replace-by-key.t ............ Dubious, test returned 115 (wstat 29440, 0x7300)
No subtests run
t/40-delete.t .................... ok
t/41-delete-by-key.t ............. ok
t/50-quit.t ...................... ok
t/51-flush.t ..................... ok
t/60-stats.t ..................... 1/8
# Failed test 'should see responses from each server'
# at t/60-stats.t line 57.
# got: '0'
# expected: '1'
# Looks like you failed 1 test of 8.
t/60-stats.t ..................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
t/80-result_st.t ................. ok
t/api-coverage.t ................. skipped: Pod::Coverage 0.18 required for testing
t/extended-consistent-hashing.t .. skipped: Set PERL_LIBMEMCACHED_TEST_SERVERS env var to at least 5 servers to run this test
t/pod-coverage.t ................. skipped: Test::Pod::Coverage 1.08 required for testing POD coverage
t/pod.t .......................... skipped: Test::Pod 1.22 required for testing POD

Test Summary Report
-------------------
t/10-set-get.t (Wstat: 2816 Tests: 0 Failed: 0)
Non-zero exit status: 11
Parse errors: Bad plan. You planned 14 tests but ran 0.
t/11-set-get-by-key.t (Wstat: 768 Tests: 13 Failed: 3)
Failed tests: 6-8
Non-zero exit status: 3
t/12-set-get-binary.t (Wstat: 2816 Tests: 0 Failed: 0)
Non-zero exit status: 11
Parse errors: No plan found in TAP output
t/30-prepend-append.t (Wstat: 2816 Tests: 0 Failed: 0)
Non-zero exit status: 11
Parse errors: No plan found in TAP output
t/31-prepend-append-by-key.t (Wstat: 2816 Tests: 0 Failed: 0)
Non-zero exit status: 11
Parse errors: No plan found in TAP output
t/35-replace.t (Wstat: 29440 Tests: 0 Failed: 0)
Non-zero exit status: 115
Parse errors: No plan found in TAP output
t/36-replace-by-key.t (Wstat: 29440 Tests: 0 Failed: 0)
Non-zero exit status: 115
Parse errors: No plan found in TAP output
t/60-stats.t (Wstat: 256 Tests: 8 Failed: 1)
Failed test: 7
Non-zero exit status: 1
Files=32, Tests=212, 2 wallclock secs ( 0.12 usr 0.05 sys + 0.90 cusr 0.17 csys = 1.24 CPU)
Result: FAIL
Failed 8/32 test programs. 4/212 subtests failed.
make: *** [test_dynamic] Error 255

-------------------------------------- perl version -------------------------------------

Summary of my perl5 (revision 5 version 14 subversion 1) configuration:

Platform:
osname=linux, osvers=2.6.39-2-686-pae, archname=i686-linux
uname='linux niels-laptop 2.6.39-2-686-pae #1 smp tue jul 5 03:48:49 utc 2011 i686 gnulinux '
config_args='-de -Accflags=-fPIC -Dprefix=/home/donate/DONATE/Software/Package_installs/Perl'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.6.1', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/lib/i386-linux-gnu /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.13'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Jul 18 2011 21:09:30
%ENV:
PERL5LIB="/home/donate/DONATE/Software/Package_installs/Perl_modules/lib/perl5:/home/donate/DONATE/Software/Perl_modules:/home/donate/DONATE/WWW-root/DONATE/lib:/home/donate/DONATE/Software:/home/donate/DONATE"
@INC:
/home/donate/DONATE/Software/Package_installs/Perl_modules/lib/perl5/i686-linux
/home/donate/DONATE/Software/Package_installs/Perl_modules/lib/perl5
/home/donate/DONATE/Software/Perl_modules
/home/donate/DONATE/WWW-root/DONATE/lib
/home/donate/DONATE/Software
/home/donate/DONATE
/home/donate/DONATE/Software/Package_installs/Perl/lib/perl5/site_perl/5.14.1/i686-linux
/home/donate/DONATE/Software/Package_installs/Perl/lib/perl5/site_perl/5.14.1
/home/donate/DONATE/Software/Package_installs/Perl/lib/perl5/5.14.1/i686-linux
/home/donate/DONATE/Software/Package_installs/Perl/lib/perl5/5.14.1
.

------------------------------------------------------------------------------------------

Top
  • Login or register to post comments
Thu, 08/25/2011 - 15:55
ingenthr
Offline
Joined: 03/16/2010
Groups:

By default, libmemcached unfortunately looks for a memcached binary to run it's tests. Unless you're actually developing libmemcached or modifying it, you probably don't need to run it. If you can, pass along a "--without-memcached", and it will probably complete it's build and install.

The other option is just to add a memcached binary to your path. This isn't often needed on client systems though, so usually I just pass in the --without-memcached and call it a day.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker