From: "Berger, Daniel" Date: 2003-03-11T00:08:43+09:00 Subject: Re: YAML on solaris: problem with libiconv > -----Original Message----- > From: Joel VanderWerf [mailto:vjoel@PATH.Berkeley.EDU] > Sent: Sunday, March 09, 2003 11:16 PM > To: ruby-talk@ruby-lang.org > Subject: YAML on solaris: problem with libiconv > > > > I'm trying to use yamlrb-0.49.2, with ruby 1.7.3 (2002-12-20) > on solaris > 7. Even the most basic uses fail: > > $ ruby -r yaml -e '1.to_yaml' > /usr/path/lib/ruby/site_ruby/1.7/sparc-solaris2.7/iconv.so: warning: > defining Iconv.allocate is deprecated; use rb_define_alloc_func() > ld.so.1: ruby: fatal: relocation error: file > /usr/path/lib/ruby/site_ruby/1.7/sparc-solaris2.7/iconv.so: symbol > libiconv_open: referenced symbol not found > Killed > > This is after installing a fresh copy of libiconv (1.8), and > the reinstalling ruby. I've checked my LD_LIBRARY_PATH, and > it does include > dirs containing: > > libiconv.so libiconv.so.2.1.0 > libiconv.la libiconv.so.2 libiconv_plug.so > > What am I missing? When you installed iconv did you use a package or build it from source? If you built it from source, which linker did you use? Sometimes when I get these sorts of errors, it's a GNU ld vs. Sun ld issue and it can be solved with the --with-gnu-ld option to configure (or not). I may also be completely off. :) Regards, Dan