From: Bob Alexander Date: 2001-06-23T07:25:50+09:00 Subject: [ruby-talk:16785] Re: Problem running irb with Ruby 1.6.4 under FreeBSD 4.0 Reposting this message 'cause the first one bounced: > |/usr/local/lib/ruby/1.6/kconv.rb:1:in `require': Undefined symbol > |"_Init_nkf" - > > nkf.so does not depend on any other dynamic library, so that it's hard > to see "Undefined symbol" error. > > Hmm, can you load any other dynamic link extensions on your machine? > For example, would > > require "etc" > > success? Hi Matz -- As you suspected, require "etc" failed in a similar way: # ruby require 'etc' -:1:in `require': Undefined symbol "_Init_etc" - /usr/local/lib/ruby/1.6/i386-freebsdelf4.0/etc.so (LoadError) from -:1 Running "nm" on etc.so shows: # nm /usr/local/lib/ruby/1.6/i386-freebsdelf4.0/etc.so 00000e78 T Init_etc ... Note that there is no leading underscore in "Init_etc". That looks suspicious! I wish I could be more helpful, but I'm not very familiar with Unix linking conventions. Let me know if I can provide any more info. Bob