[stunnel-users] stunnel-5.06 fails to build against systemd 215
Anthony G. Basile
basile at opensource.dyc.edu
Thu Oct 23 23:15:25 CEST 2014
On 10/23/14 11:24, Michal Trojnara wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Anthony G. Basile wrote:
>> That patch works, but we prefer in Gentoo to have a configuration
>> switch to avoid automatic dependencies [1]. I've attached a patch
>> against configure.ac that would --enable/disable-systemd socket
>> activation. It applies against 5.07b2.
>
> Hi Anthony,
>
> You have made a very good point. Automagic dependencies are evil indeed.
> I have added "--disable-systemd" option to the ./configure script.
>
> Please try:
> https://www.stunnel.org/downloads/beta/stunnel-5.07b3.tar.gz
>
> Mike
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iEYEARECAAYFAlRJHb4ACgkQ/NU+nXTHMtGgtQCdG4my8GP+eireI6yyC1zS1+CG
> 0yEAoKC6bp+Ni/s7SWsJjjrHL258aoBN
> =4Nij
> -----END PGP SIGNATURE-----
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
>
Hi Mike,
On a system without systemd installed `./configure --enable-systemd`
will set the following in src/config.h
#undef HAVE_SYSTEMD_SD_DAEMON_H *
#define USE_SYSTEMD 1
leading to a compile-time failure. My original suggestion didn't have
that. It comes from the unconditional AC_DEFINE([USE_SYSTEMD], [1] ...
at line 391 of configure.ac. If you don't like the `if test
$ac_cv_search_sd_listen_fds = "no"; then` you can repeat your logic from
line 404 at 391 to fix this:
AC_SEARCH_LIBS([sd_listen_fds], [systemd systemd-daemon],
AC_CHECK_HEADERS([systemd/sd-daemon.h], [
AC_DEFINE([USE_SYSTEMD], [1],
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
More information about the stunnel-users
mailing list