Debian 9 static build

Chris Maciejewski <[email protected]> Fri, 1 Nov 2019 09:41:26 +0100
Newsgroups gmane.network.stunnel.user
Message-ID <CAPJkm8i-LA4NqFwKpv7X7bTa7f=S9rQZR=cT+=wL0N4pqvi7gw@mail.gmail.com>
--===============5697096034812552763==
Content-Type: multipart/alternative; boundary="0000000000000fae80059644f0d7"

--0000000000000fae80059644f0d7
Content-Type: text/plain; charset="UTF-8"

Hello,

I am trying to build stunnel 5.55 on Debian 9 x64 statistically against
latest OpenSSL build from source. The system already has openssl and libssl
ver. 1.1.1b installed via apt-get , but I want to build against OpenSSL
1.1.1d instead. What I do is:

1. Build and install OpenSSL:
$ cd /usr/src/openssl-1.1.1d
$ ./config -fPIC --prefix=/opt/openssl
$ make depend && make && make install

2. Build and install Stunnel
$ cd /usr/src/stunnel-5.55
$ ./configure --with-ssl=/opt/openssl --enable-static
$ make && make install

Both 1 and 2 completes OK with no errors, however when I run:

$ /usr/local/bin/stunnel

[.] Compiled with OpenSSL 1.1.1d  10 Sep 2019
[.] Running  with OpenSSL 1.1.1b  26 Feb 2019
....

and indeed when I do:

$ ldd /usr/local/bin/stunnel

libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1
(0x00007f1083b4f000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(0x00007f1083668000)

above shows dynamic .so libs are used, rather than static libs libssl.a
and libcrypto.a

Any suggestions as to what is wrong with my process above and how to make
static build of Stunnel to use non-system OpenSSL very much appreciated.

Kind regards,
Chris

--0000000000000fae80059644f0d7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>I am trying to build stunnel 5.5=
5 on Debian 9 x64 statistically against latest OpenSSL build from source. T=
he system already has openssl and libssl ver. 1.1.1b installed via apt-get =
, but I want to build against OpenSSL 1.1.1d instead. What I do is:</div><d=
iv><br></div><div>1. Build and install OpenSSL:</div><div>$ cd=C2=A0/usr/sr=
c/openssl-1.1.1d</div><div>$ ./config -fPIC --prefix=3D/opt/openssl<br></di=
v><div>$ make depend &amp;&amp; make &amp;&amp; make install</div><div><br>=
</div><div>2. Build and install Stunnel</div><div>$ cd=C2=A0/usr/src/stunne=
l-5.55</div><div>$ ./configure --with-ssl=3D/opt/openssl --enable-static<br=
></div><div>$ make &amp;&amp; make install<br></div><div><br></div><div>Bot=
h 1 and 2 completes OK with no errors, however when I run:</div><div><br></=
div><div>$ /usr/local/bin/stunnel<br></div><div><br></div><div>[.] Compiled=
 with OpenSSL 1.1.1d =C2=A010 Sep 2019<br>[.] Running =C2=A0with OpenSSL 1.=
1.1b =C2=A026 Feb 2019<br></div><div>....</div><div><br></div><div>and inde=
ed when I do:</div><div><br></div><div>$ ldd /usr/local/bin/stunnel<br></di=
v><div><br></div><div>libssl.so.1.1 =3D&gt; /usr/lib/x86_64-linux-gnu/libss=
l.so.1.1 (0x00007f1083b4f000)<br></div><div>libcrypto.so.1.1 =3D&gt; /usr/l=
ib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f1083668000)<br></div><div><br=
></div><div>above shows dynamic .so libs are used, rather than static libs=
=C2=A0libssl.a and=C2=A0libcrypto.a</div><div><br></div><div>Any suggestion=
s as to what is wrong with my process above and how to make static build of=
 Stunnel to use non-system OpenSSL very much appreciated.</div><div><br></d=
iv><div>Kind regards,</div><div>Chris</div><div><br></div></div>

--0000000000000fae80059644f0d7--

--===============5697096034812552763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

--===============5697096034812552763==--