Hi,
I tried to install openssl-nonblock, but error occured at make.
How can I resolve?
The following are the messages.
# gem install openssl-nonblock
Building native extensions. This could take a while...
ERROR: Error installing openssl-nonblock:
ERROR: Failed to build gem native extension.
/usr/bin/ruby18 extconf.rb
checking for main() in -lc... yes
checking for openssl/ssl.h... yes
checking for rb_str_set_len()... yes
creating Makefile
make
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I.
-DHAVE_OPENSSL_SSL_H -DHAVE_RB_STR_SET_LEN -DHAVE_RB_STR_SET_LEN
-DRUBY_VERSION_CODE=187 -D_FILE_OFFSET_BITS=64 -fPIC -O2 -march=i686 -pipe
-fno-strict-aliasing -fPIC -c openssl_nonblock.c
i686-pc-linux-gnu-gcc -shared -o openssl_nonblock.so openssl_nonblock.o -L.
-L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1 -Wl,--as-needed -rdynamic
-Wl,-export-dynamic -Wl,--no-undefined -Wl,-R -Wl,/usr/lib -L/usr/lib
-lruby18 -lc -lpthread -lrt -ldl -lcrypt -lm -lc -lssl -lcrypto
openssl_nonblock.o: In function `ossl_nonblock_ssl_setup'':
openssl_nonblock.c:(.text+0x601): undefined reference to
`ossl_ssl_ex_ptr_idx''
openssl_nonblock.c:(.text+0x632): undefined reference to
`ossl_ssl_ex_vcb_idx''
openssl_nonblock.c:(.text+0x65f): undefined reference to
`ossl_ssl_ex_client_cert_cb_idx''
openssl_nonblock.c:(.text+0x68c): undefined reference to
`ossl_ssl_ex_tmp_dh_callback_idx''
openssl_nonblock.c:(.text+0x6b7): undefined reference to `ossl_raise''
collect2: ld returned 1 exit status
make: *** [openssl_nonblock.so] Error 1
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/openssl-nonblock-0.2.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/openssl-nonblock-0.2.1/ext/gem_make.out
--
Ryo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rev-talk/attachments/20100914/cddfbb53/attachment.html>