Re: Debian 9 static build
Mike Spooner <[email protected]> Fri, 1 Nov 2019 10:25:02 +0000 (UTC)
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <73343B0ECB307A75.5cd526b0-a41f-42dd-bc8e-54b703bccd64@mail.outlook.com> |
--===============2441501251692145584== Content-Type: multipart/alternative; boundary="----=_Part_6059_845823383.1572603902596" ------=_Part_6059_845823383.1572603902596 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You may need to build OpenSSL with --enable-static too.=20 On Fri, Nov 1, 2019 at 8:42 AM +0000, "Chris Maciejewski" <[email protected]= > wrote: Hello, I am trying to build stunnel 5.55 on Debian 9 x64 statistically against lat= est OpenSSL build from source. The system already has openssl and libssl ve= r. 1.1.1b installed via apt-get , but I want to build against OpenSSL 1.1.1= d instead. What I do is: 1. Build and install OpenSSL:$ cd=C2=A0/usr/src/openssl-1.1.1d$ ./config -f= PIC --prefix=3D/opt/openssl $ make depend && make && make install 2. Build and install Stunnel$ cd=C2=A0/usr/src/stunnel-5.55$ ./configure --= with-ssl=3D/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 =C2=A010 Sep 2019 [.] Running =C2=A0with OpenSSL 1.1.1b =C2=A026 Feb 2019 .... and indeed when I do: $ ldd /usr/local/bin/stunnel libssl.so.1.1 =3D> /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f1083b4f= 000) libcrypto.so.1.1 =3D> /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f1= 083668000) above shows dynamic .so libs are used, rather than static libs=C2=A0libssl.= a and=C2=A0libcrypto.a Any suggestions as to what is wrong with my process above and how to make s= tatic build of Stunnel to use non-system OpenSSL very much appreciated. Kind regards,Chris ------=_Part_6059_845823383.1572603902596 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div dir=3D"auto" style=3D"direction: ltr; margin:= 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">Y= ou may need to build OpenSSL with --enable-static too. </div> <br><br><br> <div class=3D"gmail_quote">On Fri, Nov 1, 2019 at 8:42 AM +0000, "Chris Mac= iejewski" <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span> wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"3D"ltr""> <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 /usr/sr= c/openssl-1.1.1d</div><div>$ ./config -fPIC --prefix=3D/opt/openssl<br></di= v><div>$ make depend && make && make install</div><div><br>= </div><div>2. Build and install Stunnel</div><div>$ cd /usr/src/stunne= l-5.55</div><div>$ ./configure --with-ssl=3D/opt/openssl --enable-static<br= ></div><div>$ make && 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 10 Sep 2019<br>[.] Running with OpenSSL 1.= 1.1b 26 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> /usr/lib/x86_64-linux-gnu/libss= l.so.1.1 (0x00007f1083b4f000)<br></div><div>libcrypto.so.1.1 =3D> /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&= nbsp;libssl.a and libcrypto.a</div><div><br></div><div>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.</div><div><br></di= v><div>Kind regards,</div><div>Chris</div><div><br></div></div> </div> </blockquote> </div> </body></html> ------=_Part_6059_845823383.1572603902596-- --===============2441501251692145584== 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 --===============2441501251692145584==--