Subject: pkg/19229: security/openssl link problem on Solaris
To: None <>
From: None <>
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
>Originator:     grant beattie
>Release:        -current pkgsrc
System: SunOS twinkle 5.8 Generic_108528-16 sun4m sparc SUNW,SPARCstation-5
Architecture: sparc
Machine: sun4m
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/ =>    (file not found)
/usr/pkg/lib/ =>    (file not found)
/usr/pkg/lib/ =>    (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 -h -z allextract libssl.a -L. -lcrypto -lsocket -lnsl -ldl -lc                  

cd security/openssl; bmake install