Subject: [sup-talk] LibC on OpenBSD

From: [email-masked] (Blake Burkhart)
Date: Sat, 15 Nov 2008 13:37:50 -0600

I had been still using an old version of sup for quite a while. It was either 0.5 or a dev version from between 0.5 and 0.6. I decided I actually needed to update it for once.

I tried downloading the tgz (I never can get gem to do what I want) of 0.6 but it didn't seem to work. I gave up on 0.6 and tried the version from git. Still problems.

When I ran it I got these errors:

$ ruby -I lib -w bin/sup 
/usr/local/lib/ruby/1.8/dl/import.rb:29:in `initialize': File not found (RuntimeError)
        from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
        from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlload'
        from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `each'
        from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `dlload'
        from ./lib/sup.rb:17
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from bin/sup:9

Apparently it was breaking on loading LibC. I had no idea where LibC was supposed to be coming from so I searched my computer for it and finally found it called "libc.so.43.0"

I changed the "libc.so.6" part of lib/sup.rb:17 to "libc.so.43.0".

Basically, I was wondering if I had to do all that. Oh, and it does work perfectly fine now.
-- 
Blake Burkhart

---

From: [email-masked] (William Morgan)
Date: Sat, 15 Nov 2008 16:14:28 -0800

> I changed the "libc.so.6" part of lib/sup.rb:17 to "libc.so.43.0".

Wow I REALLY don't want to play this game. But it looks like we have to,
in order to get wide characters working with ncurses:

What does
  ruby -rrbconfig -e 'puts Config::CONFIG["arch"]'
print on your system?
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Blake Burkhart)
Date: Sat, 15 Nov 2008 18:42:19 -0600

>   ruby -rrbconfig -e 'puts Config::CONFIG["arch"]'

Here's the output:

$ ruby -rrbconfig -e 'puts Config::CONFIG["arch"]' 
i386-openbsd4.3
-- 
Blake Burkhart

---

From: [email-masked] (marcus-sup)
Date: Sun, 16 Nov 2008 17:08:08 +0000

On 15.11.2008, Blake Burkhart wrote:
> Apparently it was breaking on loading LibC. I had no idea where LibC was
> supposed to be coming from so I searched my computer for it and finally found
> it called "libc.so.43.0"

I _think_ (but I'm no freebsd expert!) you need to install compat6x
which will give you the libc.so.6 libs (and others). It may be that
they are just soft links anyway.

MArcus