Someone had this problem, when using EM. I tried to help him out on #ruby-lang. Hello everyone, I tried to install ''eventmachine'' on a Sparc ultra2 machine, running OpenBSD 4.0-RELEASE via rubygems. ''gcc -v'' says: gcc version 3.3.5 (propolice) Simply requiring ''eventmachine'' from a ruby sourcefile gives me this: ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISi'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISi'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISi'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISi'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISi'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSiD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSiD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSiD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSiD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSiD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSiD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSiD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSiD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISo'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISo'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISo'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISo'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISo'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSoD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSoD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSoD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSoD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSoD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSoD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSoD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTv0_n24_NSoD0Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE9showmanycEv'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPcl'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISt15basic_streambufIcSt11char_traitsIcEE'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTISt13runtime_error'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSt13runtime_errorD1Ev'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSs4_Rep11_S_terminalE'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZSt4cerr'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSs20_S_empty_rep_storageE'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTVSt9basic_iosIcSt11char_traitsIcEE'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZTVSt15basic_streambufIcSt11char_traitsIcEE'' ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0/lib/rubyeventmachine.so: undefined symbol ''_ZNSs4_Rep11_S_max_sizeE'' Including it from irb by doing require ''rubygems'', require ''eventmachine'' does not change it. The pure ruby implementation seems to work though. I''m not subscribed to the list, replying directly to me would be kind. Since I''m still a newb in programming, an easy to understand explaination would be highly appreciated. Regards
Francis Cianfrocca
2007-Apr-25 17:46 UTC
[Eventmachine-talk] [FW] EM won''t compile on Sparc 64
On 4/25/07, hemant <gethemant at gmail.com> wrote:> > Someone had this problem, when using EM. I tried to help him out on > #ruby-lang. > > > Hello everyone, > I tried to install ''eventmachine'' on a Sparc ultra2 machine, running > OpenBSD 4.0-RELEASE via rubygems. > > ''gcc -v'' says: gcc version 3.3.5 (propolice) > > Simply requiring ''eventmachine'' from a ruby sourcefile gives me this: > > ruby:/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.7.0 > /lib/rubyeventmachine.so: > undefined symbol ''_ZTISi'' > ruby:/usr/local/lib/ruby/gemsI know EM compiles and runs on FreeBSD, but OpenBSD is a completely different animal, especially with propolice activated. I haven''t tried compiling EM on Open, and I''m not surprised there are problems. Although this one might be as simple as a missing or incorrect LD_LIBRARY_PATH, given that unresolved external references. Can you suggest that the user run ldd on rubyeventmachine.so and see if there are unresolved depedencies? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20070425/443b2113/attachment.html