Project

General

Profile

Issue #3406

Autoconf fails on CentOS 7

Added by J T 5 months ago. Updated 5 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
build
Affected version:
5.8.4
Resolution:

Description

Building StrongSwan 5.8.4 on CentOS 7 using the standard EPEL spec file fails with the following:

configure.ac:84: error: possibly undefined macro: PKG_CHECK_VAR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
error: Bad exit status from /var/tmp/rpm-tmp.KI2EvJ (%build)

The issue was introduced with this commit.

This is because "PKG_CHECK_VAR" does not exist in pkg-config 0.27, which is the latest avail on CentOS 7.x. It was added in pkgconfig 0.28

A temporary workaround is to remove "autoreconf" under %build in the RPM spec file. But some people may use patches to modify configure.ac which would require autoreconf to be ran.

Others have added backwards compatibility for that macro, see here

Is this a known issue or are there any plans to fix it?

Thank you.

History

#1 Updated by Tobias Brunner 5 months ago

  • Status changed from New to Feedback
  • Priority changed from High to Normal

Is this a known issue or are there any plans to fix it?

It is known and there are no plans to fix it. Quoting myself:

pkg-config 0.28 was released in January 2013, CentOS 7 in July 2014, so no idea why they would still ship 0.27. And it's really only needed when building from the repository (i.e. to generate the configure script) not when building from a tarball, which can always be created on a newer system in order to build on such older ones.

Also available in: Atom PDF