[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 . 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:
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> -----END PGP SIGNATURE-----
> stunnel-users mailing list
> stunnel-users at stunnel.org
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],  ...
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],
Anthony G. Basile, Ph. D.
Chair of Information Technology
Buffalo, NY 14201
More information about the stunnel-users