pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/33103: ruby compilation with SunPro compiler does not link correctly against OpenSSL



>Number:         33103
>Category:       pkg
>Synopsis:       ruby compilation with SunPro compiler does not link correctly 
>against OpenSSL
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 19 14:30:00 +0000 2006
>Originator:     Aleksandar Simic
>Release:        pkgsrc problem on Solaris 9
>Organization:
n/a
>Environment:
SunOS murat 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-5_10
>Description:

When invoking the following file as 'ruby init.rb':
__
require "rbconfig"
require "md5"

puts "Done."
--

I get:

/usr/pkg/lib/ruby/1.8/digest/md5.so: ld.so.1: ruby18: fatal: libcrypto.so.0.9.7:
 open failed: No such file or directory - /usr/pkg/lib/ruby/1.8/digest/md5.so (L
oadError)
       from /usr/pkg/lib/ruby/1.8/md5.rb:6
       from init.rb:2

So when I do ldd md5.so, I get this :
       libruby18.so =>  (file not found)
       libcrypt_i.so.1 =>       /lib/libcrypt_i.so.1
       libcrypto.so.0.9.7 =>    (file not found)
       libdl.so.1 =>    /lib/libdl.so.1
       libm.so.1 =>     /lib/libm.so.1
       libc.so.1 =>     /lib/libc.so.1
       libgen.so.1 =>   /lib/libgen.so.1
       /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

And yet, in /usr/pkg/lib/:
ls libruby*
libruby18-static.a  libruby18.so        libruby18.so.1      libruby18.so.1.8.3
ls libcryp*
libcrypto.a         libcrypto.so        libcrypto.so.0.9.7

The same thing happens on 64 and 32 bit compiled binaries. And by that I mean, 
the all the pkgs, inlcuding the bootstrap code, from scratch.

This is all using Sun Studio 10 compiler suite.
>How-To-Repeat:

Try running the file:

__
require "rbconfig"
require "md5"

puts "Done."
--

with ruby and you'll get the error.

Spoke to the maintainer of ruby pkg, and he confirmed the error on Solaris 8 
with Sun's compiler.
>Fix:




Home | Main Index | Thread Index | Old Index