net-misc/strongswan doesn't compile without dev-libs/libgcrypt installed. emerge stops with the following error: > cat build.log * This profile has not been tested thoroughly and is not considered to be * a supported server profile at this time. For a supported server * profile, please check the Hardened project (http://hardened.gentoo.org). * This profile is merely a convenience for people who require a more * minimal profile, yet are unable to use hardened due to restrictions in * the software being used on the server. This profile should also be used * if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this * applies to you, then it doesn't and you should probably be using * Hardened, instead. * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/2.6.27-gentoo-r8/build * Found sources for kernel version: * 2.6.27-gentoo-r8 * Linux kernel is version 2.6.27-gentoo-r8 * This ebuild will set strongswan-4.3.2 to use 2.6 native IPsec (KAME). >>> Unpacking source... >>> Unpacking strongswan-4.3.2.tar.bz2 to /var/tmp/portage/net-misc/strongswan-4.3.2/work >>> Source unpacked in /var/tmp/portage/net-misc/strongswan-4.3.2/work >>> Preparing source in /var/tmp/portage/net-misc/strongswan-4.3.2/work/strongswan-4.3.2 ... * Applying strongswan-4.2.7-install.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-misc/strongswan-4.3.2/work/strongswan-4.3.2' ... * Running aclocal ... [ ok ] * Running libtoolize --copy --force --automake ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf ... [ !! ] * Failed Running autoconf ! * * Include in your bugreport the contents of: * * /var/tmp/portage/net-misc/strongswan-4.3.2/temp/autoconf.out * * ERROR: net-misc/strongswan-4.3.2 failed. * Call stack: * ebuild.sh, line 49: Called src_prepare * environment, line 3408: Called eautoreconf * environment, line 1182: Called eautoconf * environment, line 1124: Called autotools_run_tool 'autoconf' * environment, line 480: Called die * The specific snippet of code: * die "Failed Running $1 !"; * The die message: * Failed Running autoconf ! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-misc/strongswan-4.3.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/strongswan-4.3.2/temp/environment'. * > cat autoconf.out ***** autoconf ***** ***** PWD: /var/tmp/portage/net-misc/strongswan-4.3.2/work/strongswan-4.3.2 ***** autoconf configure.in:119: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:1011: error: possibly undefined macro: AM_PATH_LIBGCRYPT After emerging libgcrypt (which seems to define the macro AM_PATH_LIBGCRYPT) net-misc/strongswan compiles without problems on various x32 machines. Reproducible: Always Steps to Reproduce: 1. emerge strongswan (without libgcrypt installed -> error) 2. emerge libgcrypt 3. emerge strongswan (-> works) Actual Results: autoconf error Expected Results: compilation without problems
One more thing: After successfull compilation I needed to allow ipsec user to use /sbin/ip command (via sudo) to work with nat and virtual adresses. Should be at least mentioned besides the iptables problem in the postinstallation messages.
Confirmed, thus: + 28 Jun 2009; Patrick Lauer <patrick@gentoo.org> strongswan-4.3.2.ebuild: + Adding missing dev-libs/libgcrypt depend. Solves #275305