Subject: pkg/19229: security/openssl link problem on Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 12/02/2002 14:56:49
>Number:         19229
>Category:       pkg
>Synopsis:       security/openssl link problem on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 01 19:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        -current pkgsrc
>Organization:
>Environment:
System: SunOS twinkle 5.8 Generic_108528-16 sun4m sparc SUNW,SPARCstation-5
Architecture: sparc
Machine: sun4m
>Description:
The linking of libssl does not pass the required -R/path/... to the
linker, resulting in libssl being unable to find libcrypto:

===> Registering installation for openssl-0.9.6g
/usr/pkg/lib/libssl.so:         libcrypto.so.300.0 =>    (file not found)
/usr/pkg/lib/libssl.so.300:     libcrypto.so.300.0 =>    (file not found)
/usr/pkg/lib/libssl.so.300.0:   libcrypto.so.300.0 =>    (file not found)
*** The above programs/libs will not find the listed shared libraries
    at runtime. Please fix the package (add -Wl,-R.../lib in the right places)!
*** Error code 1

The link command line is:

gcc -G -o libssl.so.300.0 -h libssl.so.300.0 -z allextract libssl.a -L. -lcrypto -lsocket -lnsl -ldl -lc                  

>How-To-Repeat:
cd security/openssl; bmake install

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: