Compiling OpenSSL without compabitlity with for OpenSSL 1.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling OpenSSL without compabitlity with for OpenSSL 1.0

Bjoern Bidar
Hey,


Is it possible to build openssl this way?
I'm current trying to build it this way to dest for deprecated API usage.


I configure openssl like this:
./Configure \
    --prefix=%{_prefix} --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \
    zlib enable-camellia enable-seed enable-rfc3779 \
    enable-cms enable-md2 enable-rc5 \
    enable-weak-ssl-ciphers \
    no-mdc2 no-ec2m no-sm2 no-sm4 \
    shared  ${sslarch} '-DDEVRANDOM="\"/dev/urandom\""'


But my build isn't able to link sucessfully:
gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -
DOPENSSL_API_COMPAT=0x10100000L -m32 -msse -msse2 -march=i686 -mfpmath=sse -
mtune=generic -fno-omit-frame-pointer -fasynchronous-unwind-tables -
D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -m32 -
msse -msse2 -march=i686 -mfpmath=sse -mtune=generic -fno-omit-frame-pointer -
fasynchronous-unwind-tables -Wa,--noexecstack -Wa,--generate-missing-build-
notes=yes -L.   \
     -o apps/openssl 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/
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_client.o apps/s_server.o apps/s_time.o apps/sess_id.o
apps/smime.o apps/speed.o apps/spkac.o apps/srp.o apps/storeutl.o apps/ts.o
apps/verify.o apps/version.o apps/x509.o \
     apps/libapps.a -lssl -lcrypto -lz -ldl -pthread
 /usr/bin/ld: ./libcrypto.so: undefined reference to `OpenSSLDie'


Have a nice day,


Björn Bidar
 


Reply | Threaded
Open this post in threaded view
|

Re: Compiling OpenSSL without compabitlity with for OpenSSL 1.0

Matt Caswell-2


On 09/09/2020 20:43, Bjoern Bidar wrote:

>  /usr/bin/ld: ./libcrypto.so: undefined reference to `OpenSSLDie'
>


What version of OpenSSL are you trying to compile? I can't seem to
replicate this.

Matt

Reply | Threaded
Open this post in threaded view
|

Re: Compiling OpenSSL without compabitlity with for OpenSSL 1.0

Bjoern Bidar
It was version 1.1.1g.


Reply | Threaded
Open this post in threaded view
|

Re: Compiling OpenSSL without compabitlity with for OpenSSL 1.0

Tom Browder
On Thu, Sep 10, 2020 at 06:58 Bjoern Bidar <[hidden email]> wrote:
It was version 1.1.1g.

What OS? I had to to some fiddling with packages and options for Debian 10 Buster to get a good compile.

I have documented my journey if you're interested.

Best regards,

-Tom