Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669532 - sys-process/audit-2.8.3 : /.../libaudit.h:292:30: error: AUDIT_FILTER_EXCLUDE undeclared here (not in a function)
Summary: sys-process/audit-2.8.3 : /.../libaudit.h:292:30: error: AUDIT_FILTER_EXCLUDE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords: STABLEREQ
: 675116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-24 17:31 UTC by Toralf Förster
Modified: 2019-02-08 08:45 UTC (History)
13 users (show)

See Also:
Package list:
sys-process/audit-2.8.4
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
emerge-info.txt (emerge-info.txt,16.54 KB, text/plain)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
emerge-history.txt (emerge-history.txt,260.54 KB, text/plain)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
environment (environment,152.22 KB, text/plain)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
etc.portage.tbz2 (etc.portage.tbz2,14.93 KB, application/x-bzip)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
logs.tbz2 (logs.tbz2,12.23 KB, application/x-bzip)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
sys-process:audit-2.8.3:20181024-172012.log (sys-process:audit-2.8.3:20181024-172012.log,19.93 KB, text/plain)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
temp.tbz2 (temp.tbz2,38.80 KB, application/x-bzip)
2018-10-24 17:31 UTC, Toralf Förster
no flags Details
Corrects repeating #define AUDIT_FILTER_EXCLUDE AUDIT_FILTER_TYPE (audit-2.8.3-libaudit.h.patch,617 bytes, patch)
2018-10-28 01:43 UTC, Drake Donahue
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-10-24 17:31:08 UTC
 #define AUDIT_FILTER_EXCLUDE 0x05 /* Apply rule before record creation */
 
/var/tmp/portage/sys-process/audit-2.8.3/work/audit-2.8.3/lib/libaudit.h:292:30: error: ‘AUDIT_FILTER_EXCLUDE’ undeclared here (not in a function)
 #define AUDIT_FILTER_EXCLUDE AUDIT_FILTER_TYPE
                              ^~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-process/audit-2.8.3/work/audit-2.8.3/lib/gen_tables.c:89:23: note: in definition of macro ‘_S’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_libressl_20181019-202112

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby25 (with Rubygems) *



emerge -qpvO sys-process/audit
[ebuild  N    ] sys-process/audit-2.8.3  USE="-gssapi -ldap -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2018-10-24 17:31:11 UTC
Created attachment 552790 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-10-24 17:31:14 UTC
Created attachment 552792 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-10-24 17:31:17 UTC
Created attachment 552794 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-10-24 17:31:19 UTC
Created attachment 552796 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-10-24 17:31:22 UTC
Created attachment 552798 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-10-24 17:31:25 UTC
Created attachment 552800 [details]
sys-process:audit-2.8.3:20181024-172012.log
Comment 7 Toralf Förster gentoo-dev 2018-10-24 17:31:27 UTC
Created attachment 552802 [details]
temp.tbz2
Comment 8 Drake Donahue 2018-10-28 01:43:55 UTC
Created attachment 553420 [details, diff]
Corrects repeating #define AUDIT_FILTER_EXCLUDE	AUDIT_FILTER_TYPE

added: audit-2.8.3-libaudit.h.patch to local repository at /usr/local/portage/sys-process/audit/files/audit-2.8.3-libaudit.h.patch
edited the ebuild /usr/local/portage/sys-process/audit/audit-2.8.3.ebuild to add  eapply "${FILESDIR}"/${PN}-2.8.3-libaudit.h.patch
after the existing 
eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
ran: ebuild /usr/local/portage/sys-process/audit/audit-2.8.3.ebuild manifest
ran: emerge audit
worked

this problem is likely solved in version 2.8.4 but that version has problems with 
the old: audit-2.1.3-ia64-compile-fix.patch
Comment 9 jeremy mills 2018-11-29 15:10:17 UTC
I can confirm this. can also confirm The patch posted by drake fixes the issue. Seems to only happen with gcc8 though...built fine with gcc7.
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2018-12-13 17:16:40 UTC
I added audit-2.8.4 which contains an upstream fix the reported issue.
Comment 11 Matt Turner gentoo-dev 2019-01-22 21:29:51 UTC
*** Bug 675116 has been marked as a duplicate of this bug. ***
Comment 12 Matt Turner gentoo-dev 2019-01-23 01:31:43 UTC
robbat2 said to go ahead with sys-process/audit-2.8.4 stabilization.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-23 21:27:49 UTC
ia64 stable
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-23 21:28:46 UTC
ppc stable
Comment 15 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-23 21:29:56 UTC
ppc64 stable
Comment 16 Thomas Deutschmann (RETIRED) gentoo-dev 2019-01-24 22:24:00 UTC
x86 stable
Comment 17 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-01-25 10:14:17 UTC
amd64 stable
Comment 18 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-29 07:30:21 UTC
hppa stable
Comment 19 Rolf Eike Beer archtester 2019-01-29 17:13:03 UTC
sparc stable
Comment 20 Larry the Git Cow gentoo-dev 2019-01-30 13:20:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a25cde981ebb3b6d8ec80032fbb1ecc2f5fbede

commit 4a25cde981ebb3b6d8ec80032fbb1ecc2f5fbede
Author:     Tobias Klausmann <klausman@gentoo.org>
AuthorDate: 2019-01-30 13:19:57 +0000
Commit:     Tobias Klausmann <klausman@gentoo.org>
CommitDate: 2019-01-30 13:19:57 +0000

    sys-process/audit-2.8.4-r0: alpha stable
    
    Bug: http://bugs.gentoo.org/669532
    Signed-off-by: Tobias Klausmann <klausman@gentoo.org>

 sys-process/audit/audit-2.8.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 21 Markus Meier gentoo-dev 2019-02-04 20:14:13 UTC
arm stable
Comment 22 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-02-08 08:45:57 UTC
s390 stable