Summary: | sys-process/audit-2.8.5 : fails to build with -fno-common or gcc-10 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex.iris.parker, dennis.lissov, jer, Phil, robbat2 |
Priority: | Normal | Keywords: | PATCH, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/linux-audit/audit-userspace/commit/017e6c6ab95df55f34e339d2139def83e5dada1f | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 705764 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 sys-process:audit-2.8.5:20200127-174027.log temp.tbz2 files/audit-2.8.5-fno-common.patch sys-process/audit/audit-2.8.5-r1.ebuild |
Description
Toralf Förster
![]() Created attachment 605656 [details]
emerge-info.txt
Created attachment 605658 [details]
emerge-history.txt
Created attachment 605660 [details]
environment
Created attachment 605662 [details]
etc.portage.tbz2
Created attachment 605664 [details]
logs.tbz2
Created attachment 605666 [details]
sys-process:audit-2.8.5:20200127-174027.log
Created attachment 605668 [details]
temp.tbz2
Created attachment 613750 [details, diff]
files/audit-2.8.5-fno-common.patch
Well, that was easy. One of these declarations is not like the others. 8-)
Also upstream. *** Bug 727082 has been marked as a duplicate of this bug. *** jer: The upstream patch and your patch don't seem to be sufficent. Somewhere it's got either another instance of it, or it's using the wrong libraries. trying to use upstream latest commit 80866dc78b5db17010516e24344eaed8dcc6fb99 as a tarball since it includes this fix and others, and it fails with that same event_node_list symbol. libtool: link: x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -Wno-pointer-sign -march=native -O2 -pipe -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/aureport aureport.o auditd-config.o ausearch-llist.o aureport-options.o ausearch-string.o ausearch-parse.o aureport-scan.o aureport-output.o ausearch-lookup.o ausearch-int.o ausearch-time.o ausearch-nvpair.o ausearch-avc.o ausearch-lol.o -Wl,--as-needed -L../lib -L../auparse /var/tmp/portage-tmpfs/portage/sys-process/audit-2.8.5-r1/work/audit-userspace-80866dc78b5db17010516e24344eaed8dcc6fb99-abi_x86_64.amd64/auparse/.libs/libauparse.so /var/tmp/portage-tmpfs/portage/sys-process/audit-2.8.5-r1/work/audit-userspace-80866dc78b5db17010516e24344eaed8dcc6fb99-abi_x86_64.amd64/lib/.libs/libaudit.so -lcap-ng /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-llist.o:(.bss+0x0): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-options.o:(.bss+0xc8): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-report.o:(.bss+0x0): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-match.o:(.bss+0x0): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-parse.o:(.bss+0x0): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-time.o:(.bss+0x10): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-lookup.o:(.bss+0x0): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-lol.o:(.bss+0x28): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-checkpt.o:(.bss+0x40): multiple definition of `event_node_list'; ausearch.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-llist.o:(.bss+0x0): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: aureport-options.o:(.bss+0xa0): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-parse.o:(.bss+0x0): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: aureport-scan.o:(.bss+0x1f8): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: aureport-output.o:(.bss+0x8): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-lookup.o:(.bss+0x0): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-time.o:(.bss+0x10): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ausearch-lol.o:(.bss+0x28): multiple definition of `event_node_list'; aureport.o:(.bss+0x28): first defined here collect2: error: ld returned 1 exit status make[3]: *** [Makefile:589: ausearch] Error 1 make[3]: *** Waiting for unfinished jobs.... collect2: error: ld returned 1 exit status make[3]: *** [Makefile:585: aureport] Error 1 make[3]: Leaving directory '/var/tmp/portage-tmpfs/portage/sys-process/audit-2.8.5-r1/work/audit-userspace-80866dc78b5db17010516e24344eaed8dcc6fb99-abi_x86_64.amd64/src' make[2]: *** [Makefile:829: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage-tmpfs/portage/sys-process/audit-2.8.5-r1/work/audit-userspace-80866dc78b5db17010516e24344eaed8dcc6fb99-abi_x86_64.amd64/src' make[1]: *** [Makefile:468: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage-tmpfs/portage/sys-process/audit-2.8.5-r1/work/audit-userspace-80866dc78b5db17010516e24344eaed8dcc6fb99-abi_x86_64.amd64' make: *** [Makefile:400: all] Error 2 * ERROR: sys-process/audit-2.8.5-r1::gentoo failed (compile phase): * emake failed Created attachment 644322 [details]
sys-process/audit/audit-2.8.5-r1.ebuild
(In reply to Robin Johnson from comment #12) > Created attachment 644322 [details] > sys-process/audit/audit-2.8.5-r1.ebuild After src_prepare for both ebuilds, in the directory diff between the unpacked sources of audit-2.8.5.ebuild and the attached audit-2.8.5-r1.ebuild, I do not see the fix in src/ausearch-common.h at all. Did you pick the wrong head commit? (In reply to Jeroen Roovers from comment #13) > (In reply to Robin Johnson from comment #12) > > Created attachment 644322 [details] > > sys-process/audit/audit-2.8.5-r1.ebuild > > After src_prepare for both ebuilds, in the directory diff between the > unpacked sources of audit-2.8.5.ebuild and the attached > audit-2.8.5-r1.ebuild, I do not see the fix in src/ausearch-common.h at all. > Did you pick the wrong head commit? I see what happened there. The commit you picked is in the 2.8_maintenance branch, whereas the commit matching the attached patch is only in the master branch and not back-ported to the 2.8_maintenance branch. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02b399622334871b168d21845e0ce30b33745b38 commit 02b399622334871b168d21845e0ce30b33745b38 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2020-07-05 22:36:04 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2020-07-05 22:36:43 +0000 sys-process/audit: -fno-common fix Closes: https://bugs.gentoo.org/706734 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> sys-process/audit/Manifest | 2 + sys-process/audit/audit-2.8.5-r1.ebuild | 238 ++++++++++++++++++++++++++++++++ 2 files changed, 240 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852e1a4913c6d3ea5fec171de65944bdf3cce059 commit 852e1a4913c6d3ea5fec171de65944bdf3cce059 Author: Andreas K. Huettel <dilfridge@gentoo.org> AuthorDate: 2021-01-03 09:00:05 +0000 Commit: Andreas K. Huettel <dilfridge@gentoo.org> CommitDate: 2021-01-04 11:11:23 +0000 sys-process/audit: Remove old Bug: https://bugs.gentoo.org/706734 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org> sys-process/audit/Manifest | 2 - sys-process/audit/audit-2.8.4.ebuild | 206 ----------------------------------- sys-process/audit/audit-2.8.5.ebuild | 204 ---------------------------------- 3 files changed, 412 deletions(-) |