[Top][All Lists]

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

Re: Compiling embedding SSL lib

From: Guillaume François
Subject: Re: Compiling embedding SSL lib
Date: Fri, 6 Oct 2017 18:57:45 +0200


My command, On Ubuntu Xenial fully updated, is

./configure --sysconfdir=/etc/monit --enable-optimized --prefix=/usr --with-ssl-static=/usr/lib/x86_64-linux-gnu

which generate:

 Linker flags: -lpam -lz -lpthread -lcrypt -lresolv -lnsl  /usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a -L/usr/lib/x86_64-linux-gnu

Unfortunately, it fails due to the linking of "dl" as flag -ldl is missing

If I had this flag manually in the generated Makefile for line setting variable LIBS at the end of the line only, then running the make command is successful.

I saw in the configure script that for some OS (like darwin/OSX), you perform some check to add this flag automatically.

I tried to find a way to add it the the "Linker flags" through the parameter of the configure script but didn't manage to do it.

Any clue ?

2017-10-06 17:59 GMT+02:00 address@hidden <address@hidden>:

we compile Monit with OpenSSL statically this way:

        ./configure --with-ssl-static=<path to openssl directory>

You can also use the pre-compiled binaries:

Best regards,

> On 6 Oct 2017, at 16:46, Guillaume François <address@hiddencom> wrote:
> Hello,
> I'm trying to compile Monit in standalone way (i.e. embedding SSL libraries) as I'm compiling on a host with OpenSSL 1.0.2 but the host where Monit will be running is old and has only OpenSSL 1.0.0
> I have tried several option to the "./configure" command but cannot find the right one
> Current error message when trying to start Monit on remote host.
> /lib/x86_64-linux-gnu/ version `OPENSSL_1.0.2' not found (required by /usr/bin/monit)
> Note:
> * I cannot update the remote host where Monit will run
> * I cannot downgrade the host where Monit is compiled
> * I need SSL feature as I'm checking Certificates date etc...
> Regards.
> --
> To unsubscribe:

To unsubscribe:

Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?*

reply via email to

[Prev in Thread] Current Thread [Next in Thread]