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. ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
Regards,
Dan
···
-----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?
Berger, Daniel wrote:
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).
Nice to know of that, but in this case --with-gnu-ld didn’t help.
Solaris has its own version of iconv included in the runtime library.
There might be an incompatibility with the iconv module you are trying
to compile, or with the linker command… Who knows? You may want to
run truss on a process that actually loads the iconv module (but spare
us the 20 Kb listing ;-).
Install GNU iconv (v1.8 or later), make sure it is first in your
search path, and try again.
···
On Tue, 11 Mar 2003 04:00:37 +0900, Joel VanderWerf vjoel@PATH.Berkeley.EDU wrote:
Berger, Daniel wrote:
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).
Nice to know of that, but in this case --with-gnu-ld didn’t help.
–
Alejandro Lopez-Valencia tora no shinden
python -c “print(‘ZHJhZHVsQDAwN211bmRvLmNvbQ==’.decode(‘base64’))”