Subject: pkg/30496: x11/ruby-fox can't find
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 06/11/2005 07:04:00
>Number:         30496
>Category:       pkg
>Synopsis:       x11/ruby-fox can't find
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 11 07:04:00 +0000 2005
>Originator:     Mel Jones
>Release:        2.0.2
NetBSD  2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005 i386
pkgsrc 2005-Q1
x binary from install CD
I'm trying to get FXRuby (x11/ruby-fox) to work. However, when trying to load the fox extension, ruby fails because it can't find (which resides in /usr/X11R6/lib). when I "ldd" the extension object created by ruby-fox, I found out -lX11.6 and -lXext.6 were referenced twice each. See below. But setting LD_LIBRARY_PATH to /usr/X11R6/lib solves everything.

The problem is definitely with ruby-fox b/c C++ fox applications work fine, and ruby itself seems to be working well.
% cd /usr/pkgsrc/x11/ruby-fox; make install clean

% cd /usr/pkg/share/examples/ruby18/fox 
% ruby hello.rb
/usr/pkg/lib/ruby/site_ruby/1.8/i386-netbsdelf/ Shared object "" not found - /usr/pkg/lib/ruby/site_ruby/1.8/i386-netbsdelf/ (LoadError)
        from hello.rb:3

% ldd /usr/pkg/lib/ruby/site_ruby/1.8/i386-netbsdelf/
         -lpthread.0 => /usr/lib/
         -lcrypt.0 => /usr/lib/
         -lm.0 => /usr/lib/
         -lm.0 => /usr/lib/
         -lruby18.18 => /usr/pkg/lib/
         -lX11.6 => /usr/X11R6/lib/
         -lXext.6 => /usr/X11R6/lib/
         -lGL.1 => /usr/pkg/lib/
         -lstdc++.5 => /usr/lib/
         -lgcc_s.1 => /usr/lib/
         -lGLU.1 => /usr/pkg/lib/
         -ljpeg.62 => /usr/pkg/lib/
         -lz.0 => /usr/lib/
         -lpng.3 => /usr/pkg/lib/
         -lc.12 => /usr/lib/
         -ltiff.3 => /usr/pkg/lib/
         -lFOX-1.0.0 => /usr/pkg/lib/
         -lX11.6 => not found
         -lXext.6 => not found

# the last two lines are weird....
set LD_LIBRARY_PATH to /usr/X11R6/lib, not really a fix..