[openssl-dev] Problems building openssl on Solaris

Dmitry Belyavsky beldmit at gmail.com
Fri Nov 17 08:08:34 UTC 2017


Hello,

We experience problems building OpenSSL on Solaris.


/usr/local/src/openssl-1.1.0g>uname -a

SunOS pooh.tcinet.ru 5.10 Generic_147147-26 sun4u sparc
SUNW,SPARC-Enterprise


/usr/local/src/openssl-1.1.0g>gcc -v

Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

OpenSSL 1.1.0g is configured via
./Configure solaris64-sparcv9-gcc

Here is the end of output:

...

LD_LIBRARY_PATH=.:/usr/local/ssl/lib:/usr/sfw/lib/sparcv9:/usr/local/lib
gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS
-DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM
-DAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM
-DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/lib/engines-1.1"
-m64 -mcpu=ultrasparc -Wall -DB_ENDIAN -DBN_DIV2W -O3 -pthread -DFILIO_H -o
apps/openssl apps/app_rand.o apps/apps.o apps/asn1pars.o apps/ca.o
apps/ciphers.o apps/cms.o apps/crl.o apps/crl2p7.o apps/dgst.o
apps/dhparam.o apps/dsa.o apps/dsaparam.o apps/ec.o apps/ecparam.o
apps/enc.o apps/engine.o apps/errstr.o apps/gendsa.o apps/genpkey.o
apps/genrsa.o apps/nseq.o apps/ocsp.o apps/openssl.o apps/opt.o
apps/passwd.o apps/pkcs12.o apps/pkcs7.o apps/pkcs8.o apps/pkey.o
apps/pkeyparam.o apps/pkeyutl.o apps/prime.o apps/rand.o apps/rehash.o
apps/req.o apps/rsa.o apps/rsautl.o apps/s_cb.o apps/s_client.o
apps/s_server.o apps/s_socket.o apps/s_time.o apps/sess_id.o apps/smime.o
apps/speed.o apps/spkac.o apps/srp.o apps/ts.o apps/verify.o apps/version.o
apps/x509.o -L. -lssl -L. -lcrypto -lsocket -lnsl -ldl
gcc: unrecognized option `-pthread'
ld: warning: relocation warning: R_SPARC_COPY: file ./libcrypto.so: symbol
PBEPARAM_it: relocation bound to a symbol with STV_PROTECTED visibility
ld: warning: relocation warning: R_SPARC_COPY: file ./libcrypto.so: symbol
PBE2PARAM_it: relocation bound to a symbol with STV_PROTECTED visibility
ld: warning: relocation warning: R_SPARC_COPY: file ./libcrypto.so: symbol
PBKDF2PARAM_it: relocation bound to a symbol with STV_PROTECTED visibility
Undefined                       first referenced
 symbol                             in file
_sparcv9_rdtick                     ./libcrypto.so
bn_add_words                        ./libcrypto.so
_sparcv9_vis1_instrument            ./libcrypto.so
bn_sub_words                        ./libcrypto.so
bn_sqr_words                        ./libcrypto.so
OPENSSL_cleanse                     apps/apps.o
_sparcv9_rdcfr                      ./libcrypto.so
_sparcv9_vis1_instrument_bus2       ./libcrypto.so
_sparcv9_vis3_probe                 ./libcrypto.so
bn_mul_words                        ./libcrypto.so
_sparcv9_vis2_probe                 ./libcrypto.so
_sparcv9_vis1_probe                 ./libcrypto.so
ChaCha20_ctr32                      ./libcrypto.so
_sparcv9_vis1_instrument_bus        ./libcrypto.so
bn_mul_comba4                       ./libcrypto.so
bn_mul_comba8                       ./libcrypto.so
bn_sqr_comba4                       ./libcrypto.so
bn_sqr_comba8                       ./libcrypto.so
_sparcv9_fmadd_probe                ./libcrypto.so
CRYPTO_memcmp                       ./libssl.so
bn_mul_add_words                    ./libcrypto.so
bn_div_words                        ./libcrypto.so
_sparcv9_fjaesx_probe               ./libcrypto.so
ld: fatal: symbol referencing errors. No output written to apps/openssl
collect2: ld returned 1 exit status
*** Error code 1

What can we do to fix it?

Thank you!

-- 
SY, Dmitry Belyavsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20171117/19b79932/attachment-0001.html>


More information about the openssl-dev mailing list