clone -1
reassign -1 src:aide 0.16~b1-1
severity -1 serious
thanks

On Sun, 3 Jul 2016 23:17:43 +0200 Hannes von Haugwitz <han...@vonhaugwitz.com> wrote:

> Dear Maintainer,
>
> AIDE fails to build from source with libaudit-dev 1:2.6.1-1, due to
> "undefined reference to `capng_have_capability'":
>
> [...]
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libaudit.a(libaudit.o): In function `audit_is_enabled':
> (.text+0x740): undefined reference to `capng_have_capability'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libaudit.a(libaudit.o): In function `audit_can_control':
> (.text+0x273b): undefined reference to `capng_have_capability'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libaudit.a(libaudit.o): In function `audit_can_write':
> (.text+0x274b): undefined reference to `capng_have_capability'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libaudit.a(libaudit.o): In function `audit_can_read':
> (.text+0x275b): undefined reference to `capng_have_capability'
> collect2: error: ld returned 1 exit status
> Makefile:586: recipe for target 'aide' failed
> make[3]: *** [aide] Error 1
> make[3]: Leaving directory '/build/aide-0.16~b1/aide'
> Makefile:434: recipe for target 'all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory '/build/aide-0.16~b1/aide'
> dh_auto_build: make -j1 returned exit code 2
> debian/rules:33: recipe for target 'override_dh_auto_build-arch' failed
> make[1]: *** [override_dh_auto_build-arch] Error 2
> make[1]: Leaving directory '/build/aide-0.16~b1'
> debian/rules:25: recipe for target 'build' failed
> make: *** [build] Error 2

There are actually 2 issues here:

1) libaudit.pc file doesn't have a dependency against libcap-ng (something like Requires.private: libcap-ng) and this needs to be added. 2) The aide configure files doesn't use the pkg-config file at all to guess the needed flags for audit. So the flags need to be added to AUDITLIB variable (or the configure should be changed to use pkg-config)

Reply via email to