Hello, 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 [email protected] <[email protected]>: > Hello, > > we compile Monit with OpenSSL statically this way: > > ./configure --with-ssl-static=<path to openssl directory> > > You can also use the pre-compiled binaries: https://mmonit.com/monit/dist/ > binary/ > > Best regards, > Martin > > > > On 6 Oct 2017, at 16:46, Guillaume François <guillaume.francois55@gmail. > com> 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/libcrypto.so.1.0.0: 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: > > https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- -----BEGIN GEEK CODE BLOCK----- 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?* ------END GEEK CODE BLOCK------
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
