arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

Won't link against sasl #25

Closed rainhead closed 13 years ago

rainhead commented 14 years ago

http://gist.github.com/583325

I originally tried with cyrus-sasl-2.1.23 with the same result. Some package versions:

app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r3, 3.1.2-r4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.7.9-r2, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1

rainhead commented 14 years ago

I should say that stock libmemcached 0.32 installs cleanly.

rainhead commented 14 years ago

I should also say that this is a 64bit-only install.

tnzk commented 14 years ago

Hi Rainhead, I also faced this problem on my server(64bit) that has almost same version libraries as yours.

I could not solve it smartly but escaped from it with a workaround. Actually I can't figure out why this let it link successfully so I'll wait the right solution.

I hope this helps someone who has the same problem.

evan commented 14 years ago

That's strange. Are you sure you have all the development headers for SASL?

rainhead commented 14 years ago

I can confirm that tnzk's patch fixed the problem–thanks!

SASL built and installed cleanly, so I imagine I have all the headers. Several of my systems exhibit the problem.

Rake is now aborting on one error and one failure running the tests. It also leaves nine memcached processes running for me to clean up.

Started ...........................E............................................................F......................... Finished in 28.872385 seconds.

1) Error: test_get(MemcachedTest): Memcached::UnknownReadFailure: Key {"test_get"=>"localhost:43053"} ./lib/memcached/memcached.rb:614:in check_return_code' ./lib/memcached/memcached.rb:314:inset' ./test/unit/memcached_test.rb:248:in `test_get'

2) Failure: test_set(MemcachedTest) [./test/unit/memcached_test.rb:458]: Exception raised: Class: Memcached::UnknownReadFailure Message: <"Key {\"test_set\"=>\"localhost:43053\"}"> ---Backtrace--- ./lib/memcached/memcached.rb:614:in check_return_code' ./lib/memcached/memcached.rb:314:inset' ./test/unit/memcached_test.rb:459:in test_set' ./test/unit/memcached_test.rb:458:intest_set'

vinnix commented 13 years ago

Hey guys.. I'm having the same here(freebsd/i386 8.1-release);

1) http://pastie.org/1191776 (installing from gem) 2) http://gist.github.com/605211 (trying a rake install from gem base-dir) 3) http://pastie.org/1192036 (ports that are installed)

Sorry.. just today I found this page. If you need some help to test things I'm dispose to do it.

cheers, Vinnix

andrewvc commented 13 years ago

tnzk's workaround doesn't change the error for me, I still get:

rlibmemcached_wrap.c:13694: error: ‘SASL_OK’ undeclared (first use in this function) make: *\ [rlibmemcached_wrap.o] Error 1

tnzk commented 13 years ago

Thanks for trying my workaround.

Perhaps the error you face is different from mine, it seems to be caused by the lack of SASL header files. Check where your SASL headers are installed.

andrewvc commented 13 years ago

tnzk, your fix actually did turn out to work, I needed to delete the bad unpacked fauna gem from .gems.

evan commented 13 years ago

Applied the fix to trunk.

rainhead commented 13 years ago

Thanks, evan!