pkgsrc-Bugs archive

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

pkg/55688: OpenSSL 1.1.1 fails to compile on Solaris 10



>Number:         55688
>Category:       pkg
>Synopsis:       OpenSSL 1.1.1 fails to compile on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 30 01:15:00 +0000 2020
>Originator:     Julien Savard
>Release:        pkgsrc2020Q1 and up
>Organization:
None
>Environment:
SunOS zone3 5.10 Generic_150400-58 sun4u sparc SUNW,UltraAX-i2
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc-8.3.0/libexec/gcc/sparc-sun-solaris2.10/8.3.0/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: /usr/local/gcc-8.3.0/configure --prefix=/opt/gcc-8.3.0 --enable-languages=c,c++,fortran,go : (reconfigured) /usr/local/gcc-8.3.0/configure --prefix=/opt/gcc-8.3.0 --enable-languages=c,c++ : (reconfigured) /usr/local/gcc-8.3.0/configure --prefix=/opt/gcc-8.3.0 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 8.3.0 (GCC)

>Description:
OpenSSL Fails to compile on Solaris 10 :

===> Building for openssl-1.1.1gnb1
/usr/sfw/bin/gmake depend && /usr/sfw/bin/gmake _all
gmake[1]: Entering directory `/var/tmp/pkgbuild/security/openssl/work/openssl-1.1.1g'
gmake[1]: Leaving directory `/var/tmp/pkgbuild/security/openssl/work/openssl-1.1.1g'
gmake[1]: Entering directory `/var/tmp/pkgbuild/security/openssl/work/openssl-1.1.1g'
gcc -fPIC -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L. -shared -Wl,-Bsymbolic  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/l
ib -Wl,-h,libssl.so.1.1 \
        -o libssl.so.1.1 -Wl,-M,libssl.map ssl/bio_ssl.o ssl/d1_lib.o ssl/d1_msg.o ssl/d1_srtp.o ssl/methods.o ssl/packet.o ssl/pqueue.o ssl/record/dtls1_bitmap.o ssl/record/rec_layer_d1.o ssl/record/rec_lay
er_s3.o ssl/record/ssl3_buffer.o ssl/record/ssl3_record.o ssl/record/ssl3_record_tls13.o ssl/s3_cbc.o ssl/s3_enc.o ssl/s3_lib.o ssl/s3_msg.o ssl/ssl_asn1.o ssl/ssl_cert.o ssl/ssl_ciph.o ssl/ssl_conf.o ssl/ss
l_err.o ssl/ssl_init.o ssl/ssl_lib.o ssl/ssl_mcnf.o ssl/ssl_rsa.o ssl/ssl_sess.o ssl/ssl_stat.o ssl/ssl_txt.o ssl/ssl_utst.o ssl/statem/extensions.o ssl/statem/extensions_clnt.o ssl/statem/extensions_cust.o
ssl/statem/extensions_srvr.o ssl/statem/statem.o ssl/statem/statem_clnt.o ssl/statem/statem_dtls.o ssl/statem/statem_lib.o ssl/statem/statem_srvr.o ssl/t1_enc.o ssl/t1_lib.o ssl/t1_trce.o ssl/tls13_enc.o ssl
/tls_srp.o \
                 -lcrypto -lsocket -lnsl -ldl -pthread
gcc -fPIC -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L. -shared -Wl,-Bsymbolic  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/l
ib \
        -o engines/capi.so engines/e_capi.o \
                 -lcrypto -lsocket -lnsl -ldl -pthread
gcc -fPIC -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L. -shared -Wl,-Bsymbolic  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/l
ib \
        -o engines/dasync.so engines/e_dasync.o \
                 -lcrypto -lsocket -lnsl -ldl -pthread
gcc -fPIC -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L. -shared -Wl,-Bsymbolic  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/l
ib \
        -o engines/ossltest.so engines/e_ossltest.o \
                 -lcrypto -lsocket -lnsl -ldl -pthread
gcc -fPIC -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L. -shared -Wl,-Bsymbolic  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/l
ib \
        -o engines/padlock.so engines/e_padlock.o \
                 -lcrypto -lsocket -lnsl -ldl -pthread
rm -f fuzz/asn1parse-test
${LDCMD:-gcc} -m32 -mcpu=ultrasparc -pthread -O2 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -O2 -L.  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib \
        -o fuzz/asn1parse-test fuzz/asn1parse.o fuzz/test-corpus.o \
         -lcrypto -lsocket -lnsl -ldl -pthread
if [ 'libssl.so' != 'libssl.so.1.1' ]; then \
        rm -f libssl.so; \
        ln -s libssl.so.1.1 libssl.so; \
fi
gmake[1]: Leaving directory `/var/tmp/pkgbuild/security/openssl/work/openssl-1.1.1g'
*** Error code 2

Stop.
bmake[1]: stopped in /srv/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /srv/pkgsrc/security/openssl

>How-To-Repeat:
bootstrap pkgsrc and run "bmake package" in security/openssl
>Fix:
It seems it is a known issue by the OpenSSL team: 
https://www.mail-archive.com/openssl-users%openssl.org@localhost/msg87889.html

So as stated by the OpenSSL team, the quick fix would be to add the following line to your pkgsrc OpenSSL Makefile :

LDFLAGS+=               -lrt

I can confirm it works


Home | Main Index | Thread Index | Old Index