view · edit · sidebar · attach · print · history

Compiling Ruby-1.8.6 with mod_ruby

Attach:gen_ruby_186.txt
Attach:gen_mod_ruby.txt

Show what SSL Version Ruby uses:

zdavatz@fastpower ~ $ /usr/local/bin/ruby186/bin/ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
OpenSSL 1.0.1e 11 Feb 2013

ywesee@thinpower /usr/local/src/ruby-1.8.6-p369 $ /usr/local/bin/ruby186 -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
OpenSSL 1.0.2g 1 Mar 2016

libc Versionen vergleichen

  • ls -ltr /lib64/libc*

ldd -v mod_ruby

List emerge and unmerge History

  • qlop -l und qlop -u

Useful Tools

  • ldd -v
  • objdump -x
  • readelf -d

readelf -d mod_ruby.so (rpath und runpath anschauen)

Fastpower mit mod_ruby kompiliert gegen Ruby-1.8.6

zdavatz@fastpower /usr/lib64/apache2/modules $ readelf -d mod_ruby.so

Dynamic section at offset 0x20b10 contains 28 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libruby.so.1.8]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000f (RPATH)              Library rpath: [/usr/lib64:/usr/local/bin/ruby186/lib]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/lib64:/usr/local/bin/ruby186/lib]

Thinpower mit mod_ruby kompiliert gegen 1.9.3-p0

ywesee@thinpower /usr/local/src/mod_ruby $ readelf -d /home/ywesee/software/mod_ruby/mod_ruby.so 

Dynamic section at offset 0x260300 contains 29 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]
 0x000000000000000f (RPATH)              Library rpath: [/usr/local/lib]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/local/lib]

Thinpower mit mod_ruby gegen Ruby-1.8.6. das nicht geht

  • [243424.606590] apache2[25787]: segfault at 74 ip 00007f3143c672b7 sp 00007ffe84362eb0 error 4 in libruby186.so.1.8.6[7f3143bae000+113000]
ywesee@thinpower /usr/local/src/mod_ruby $ readelf -d mod_ruby.so 

Dynamic section at offset 0x21b10 contains 28 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libruby186.so.1.8]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000f (RPATH)              Library rpath: [/usr/lib64:/usr/local/lib]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/lib64:/usr/local/lib]
view · edit · sidebar · attach · print · history
Page last modified on March 18, 2016, at 03:57 PM