gcc -shared -s -o ruby_prof.so ruby_prof.o -L. -LE:/installs/ruby18/lib -L. -Wl,–enable-auto-image-base,–enable-auto-import,–export-all -lmsvcrt-ruby18 -lshell32 -lws2_32
ruby_prof.o: In function `prof_add_call_info’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:501: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `get_method’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:899: undefined reference to `rb_sourcefile’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:900: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:480: undefined reference to `ruby_xmalloc2′
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:551: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `switch_thread’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:176: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `prof_event_hook’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1043: undefined reference to `rb_frame_method_id_and_class’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1178: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1114: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:198: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `prof_method_source_file’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:625: undefined reference to `rb_str_new_cstr’
collect2: ld returned 1 exit status
make: *** [ruby_prof.so] Error 1
rake aborted!
meant “you need to run make clean before switching ruby versions on me”
also meant “you compiled it with a different version of ruby than you ran it with”
building ruby, itself:
bash: ./configure: No such file or directory
meant “run autoconf”
bash-3.1$ autoconf
e:\dev\digitalarchive_trunk>install_ruby_core_ri
installing your full source (for rdoc/ri purposes) to E:/installs/ruby191p376/li
b/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/downloaded_full_source
WARNING: installing the 1.8.7 source, since ri doesn’t work on 1.9 core source q
uite yet
Requesting http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Downloading http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
downloading–extracting out the ri via gem rdoc –no-rdoc –ri ruby_core_ri
ERROR: While executing gem … (Gem::DocumentError)
ERROR: RDoc documentation generator not installed: can’t activate rdoc (>= 2
.4.2, runtime) for [], already activated rdoc-2.3.0 for []
meant “uninstall sdoc gem”
E:\dev\ruby\ruby-prof>rake build
(in E:/dev/ruby/ruby-prof)
Warning:E:/installs/ruby191p376/lib/ruby/1.9.1/tmpdir.rb:14: Win32API is deprecated after Ruby 1.9.1; use dl directly instead
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:122 – can’t convert Enumerator into Array
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:122 – can’t convert Enumerator into Array
Exception `NameError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/1.8.7/enumerator.rb:2 – uninitialized constant Enumerable::Enumerator
Exception `ArgumentError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – wrong number of arguments(1 for 0)
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/1.8.7/regexp.rb:4 – undefined method `union’ for #
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – undefined method `each’ for #
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – undefined method `each_pair’ for #
checking for sys/times.h… no
checking for rb_os_allocated_objects()… no
checking for rb_gc_allocated_size()… no
checking for rb_gc_collections()… no
checking for rb_gc_time()… no
checking for rb_heap_total_mem()… no
checking for rb_gc_heap_info()… no
checking for rb_gc_malloc_allocations()… no
checking for rb_gc_malloc_allocated_size()… no
checking for vm_core.h… no
WARNING: installing the 1.8.7 source, since ri doesn’t work on 1.9 core source quite yet
Requesting http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Downloading http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389 – can’t convert nil into String
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=E:/installs/ruby191p376/bin/ruby
(backtracer: no exception found to backtrace)
E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `path’: can’t convert nil into String (TypeError)
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `block in fu_list’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:113:in `map’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:113:in `map’
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `fu_list’
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:197:in `mkdir_p’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:89:in `block in download_headers’
from E:/installs/ruby191p376/lib/ruby/1.9.1/tempfile.rb:199:in `open’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:81:in `download_headers’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:27:in `create_makefile_with_core’
from extconf.rb:46:in `‘
removing e:/tmp/ruby-src20091230-3088-1ayf1oh-0…Exception `Errno::EACCES’ at E:/installs/ruby191p376/lib/ruby/1.9.1/tempfile.rb:181 – Permission denied – e:/tmp/ruby-src20091230-3088-1ayf1oh-0
gcc -shared -s -o ruby_prof.so ruby_prof.o -L. -LE:/installs/ruby18/lib -L. -Wl,–enable-auto-image-base,–enable-auto-import,–export-all -lmsvcrt-ruby18 -lshell32 -lws2_32
ruby_prof.o: In function `prof_add_call_info’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:501: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `get_method’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:899: undefined reference to `rb_sourcefile’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:900: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:480: undefined reference to `ruby_xmalloc2′
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:551: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `switch_thread’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:176: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `prof_event_hook’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1043: undefined reference to `rb_frame_method_id_and_class’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1178: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:1114: undefined reference to `rb_sourceline’
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:198: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `prof_method_source_file’:
E:/dev/ruby/ruby-prof/ext/ruby_prof.c:625: undefined reference to `rb_str_new_cstr’
collect2: ld returned 1 exit status
make: *** [ruby_prof.so] Error 1
rake aborted!
meant “you need to run make clean before switching ruby versions on me”
./ruby_prof.so: [BUG] Segmentation fault
ruby 1.8.6 (2009-03-31) [i386-mingw32]
also meant “you compiled it with a different version of ruby than you ran it with”
building ruby, itself:
bash: ./configure: No such file or directory
meant “run autoconf”
bash-3.1$ autoconf
e:\dev\digitalarchive_trunk>install_ruby_core_ri
installing your full source (for rdoc/ri purposes) to E:/installs/ruby191p376/li
b/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/downloaded_full_source
WARNING: installing the 1.8.7 source, since ri doesn’t work on 1.9 core source q
uite yet
Requesting http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Downloading http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
downloading–extracting out the ri via gem rdoc –no-rdoc –ri ruby_core_ri
ERROR: While executing gem … (Gem::DocumentError)
ERROR: RDoc documentation generator not installed: can’t activate rdoc (>= 2
.4.2, runtime) for [], already activated rdoc-2.3.0 for []
meant “uninstall sdoc gem”
E:\dev\ruby\ruby-prof>rake build
(in E:/dev/ruby/ruby-prof)
Warning:E:/installs/ruby191p376/lib/ruby/1.9.1/tmpdir.rb:14: Win32API is deprecated after Ruby 1.9.1; use dl directly instead
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:122 – can’t convert Enumerator into Array
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:122 – can’t convert Enumerator into Array
Exception `NameError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/1.8.7/enumerator.rb:2 – uninitialized constant Enumerable::Enumerator
Exception `ArgumentError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – wrong number of arguments(1 for 0)
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/1.8.7/regexp.rb:4 – undefined method `union’ for #
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – undefined method `each’ for #
Exception `NoMethodError’ at E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/backports-1.12.3/lib/backports/tools.rb:35 – undefined method `each_pair’ for #
checking for sys/times.h… no
checking for rb_os_allocated_objects()… no
checking for rb_gc_allocated_size()… no
checking for rb_gc_collections()… no
checking for rb_gc_time()… no
checking for rb_heap_total_mem()… no
checking for rb_gc_heap_info()… no
checking for rb_gc_malloc_allocations()… no
checking for rb_gc_malloc_allocated_size()… no
checking for vm_core.h… no
WARNING: installing the 1.8.7 source, since ri doesn’t work on 1.9 core source quite yet
Requesting http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Downloading http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
Exception `TypeError’ at E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389 – can’t convert nil into String
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:‘
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=E:/installs/ruby191p376/bin/ruby
(backtracer: no exception found to backtrace)
E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `path’: can’t convert nil into String (TypeError)
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `block in fu_list’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:113:in `map’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/sane-0.17.0/lib/sane/enumerable-extra.rb:113:in `map’
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:1389:in `fu_list’
from E:/installs/ruby191p376/lib/ruby/1.9.1/fileutils.rb:197:in `mkdir_p’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:89:in `block in download_headers’
from E:/installs/ruby191p376/lib/ruby/1.9.1/tempfile.rb:199:in `open’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:81:in `download_headers’
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/ruby_core_ri-0.2.1/lib/ruby_core_source.rb:27:in `create_makefile_with_core’
from extconf.rb:46:in `
removing e:/tmp/ruby-src20091230-3088-1ayf1oh-0…Exception `Errno::EACCES’ at E:/installs/ruby191p376/lib/ruby/1.9.1/tempfile.rb:181 – Permission denied – e:/tmp/ruby-src20091230-3088-1ayf1oh-0
meant “you need to uninstall ruby_core_ri, k?”
project.h:26: warning: ignoring #pragma warning
g++ -shared -s -o rubyeventmachine.so binder.o cmain.o cplusplus.o ed.o em.o emwin.o epoll.o files.o kb.o page.o pipe.o rubymain.o sigs.o ssl.o -L. -LE:/installs/ruby-1.9.1-p376_installed/lib -L. -Wl,–enable-auto-image-base,–enable-auto-import -lmsvcrt-ruby191 -lcrypto -lssl -lgdi32 -lrpcrt4 -lkernel32 -lshell32 -lws2_32
e:/installs/build_env/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x4ab): undefined reference to `BIO_s_socket’
e:/installs/build_env/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x5b3): undefined reference to `BIO_s_socket’
e:/installs/build_env/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libssl.a(ssl_lib.o):ssl_lib.c:(.text+0×733): undefined reference to `BIO_s_socket’
e:/installs/build_env/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libssl.a(ssl_lib.o):ssl_lib.c:(.text+0×2985): undefined reference to `COMP_CTX_free’
e:/installs/build_env/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libss
meant “you need a different link order”
http://github.com/eventmachine/eventmachine/issues/#issue/36
# 126: The specified module could not be found. – E:/dev/ruby/ruby-prof/lib/ruby_prof.so
require “ruby_prof.so”
(repeat 1 times)
require ‘ruby-prof’
also meant “you mixed versions”
TypeError: wrong result object
meant “you mixed gem versions” (I think)