Bug 2112282
Summary: | trafficserver-9.1.2-10.fc37 FTBFS: /usr/include/linux/mount.h:95:6: error: multiple definition of 'enum fsconfig_command' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Petr Pisar <ppisar> |
Component: | trafficserver | Assignee: | Jered Floyd <jered> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 37 | CC: | aoliva, arjun.is, codonell, crobinso, dj, fweimer, jered, law, mcermak, mcoufal, mfabian, pfrankli, rth, sipoyare, skolosov, zrhoffman |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://koschei.fedoraproject.org/package/trafficserver?collection=f37 | ||
Whiteboard: | |||
Fixed In Version: | trafficserver-9.1.3-1.fc38 trafficserver-9.1.3-1.fc37 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-11 19:28:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2117176, 2045102 |
Description
Petr Pisar
2022-07-29 08:44:11 UTC
Thanks! I'll check it out and determine an appropriate resolution. Hitting this with libvirt rawhide build too: https://kojipkgs.fedoraproject.org//work/tasks/8886/90348886/build.log /usr/include/sys/mount.h from glibc has `enum fsconfig_command` /usr/include/linux/mount.h from kernel does too. The kernel one has been there for a while, but the glibc one was added in june, so the glibc change probably tickled this issue. https://sourceware.org/git/?p=glibc.git;a=commit;h=7eae6a91e9b1670330c9f15730082c91c0b1d570 Yes, it's a glibc change, documented here: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E We couldn't find a good way to work around this on the glibc side. Fix looks like this: diff -ur src/tscore/ink_file.cc src/tscore/ink_file.cc --- src/tscore/ink_file.cc 2021-11-08 20:01:21.000000000 +0100 +++ src/tscore/ink_file.cc 2022-08-01 17:39:37.461438599 +0200 @@ -52,8 +52,8 @@ #include <linux/hdreg.h> /* for struct hd_geometry */ #endif -#if HAVE_LINUX_FS_H -#include <linux/fs.h> /* for BLKGETSIZE. sys/mount.h is another candidate */ +#if HAVE_SYS_MOUNT_H +#include <sys/mount.h> #endif using ioctl_arg_t = union { Thanks, Florian. I'm traveling right now but will soon do a mock build with this patch and also submit upstream (if not already fixed). FWIW here's what I did to fix the libvirt issue, incase anyone else ends up in this bug: https://gitlab.com/libvirt/libvirt/-/commit/c0d9adf220dc0d223330a7bac37b174132d330ba This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37. FEDORA-2022-9e33ef38c1 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9e33ef38c1 FEDORA-2022-9e33ef38c1 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-652b52f0ea has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-652b52f0ea FEDORA-2022-652b52f0ea has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |