• Bug#1099237: isochron: FTBFS: src/common.h:41:8: error: redefinition of

    From Santiago Vila@21:1/5 to All on Sat Mar 1 22:10:07 2025
    Package: src:isochron
    Version: 0.9-0.1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean
    dh_auto_clean
    make -j2 clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    rm -f src/argparser.o src/common.o src/daemon.o src/isochron.o src/log.o src/management.o src/orchestrate.o src/ptpmon.o src/rcv.o src/report.o src/rtnl.o src/send.o src/sk.o src/syncmon.o src/sysmon.o src/argparser.d src/common.d src/daemon.d src/
    isochron.d src/log.d src/management.d src/orchestrate.d src/ptpmon.d src/rcv.d src/report.d src/rtnl.d src/send.d src/sk.d src/syncmon.d src/sysmon.d isochron
    rm -f docs/man/*
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_clean
    rm -f debian/debhelper-build-stamp
    rm -rf debian/.debhelper/
    rm -f -- debian/isochron.substvars debian/files
    rm -fr -- debian/isochron/ debian/tmp/
    find . \( \( \
    \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
    \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
    -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
    -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
    -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
    \) -exec rm -f {} + \) -o \
    \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
    debian/rules binary
    dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure
    dh_auto_build
    make -j2 "INSTALL=install --strip-program=true"
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/argparser.c -o src/argparser.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/common.c -o src/common.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/daemon.c -o src/daemon.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/isochron.c -o src/isochron.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/log.c -o src/log.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/management.c -o src/management.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/orchestrate.c -o src/orchestrate.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/ptpmon.c -o src/ptpmon.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/rcv.c -o src/rcv.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/report.c -o src/report.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/rtnl.c -o src/rtnl.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/send.c -o src/send.o
    cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=
    . -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/sk.c -o src/sk.o
    In file included from src/send.c:31:
    src/common.h:41:8: error: redefinition of ‘struct sched_attr’
    41 | struct sched_attr {
    | ^~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/sched.h:63,
    from /usr/include/sched.h:43,
    from /usr/include/pthread.h:22,
    from src/send.c:27:
    /usr/include/linux/sched/types.h:98:8: note: originally defined here
    98 | struct sched_attr {
    | ^~~~~~~~~~
    src/common.h:55:19: error: conflicting types for ‘sched_setattr’; have ‘int(pid_t, const struct sched_attr *, unsigned int)’ {aka ‘int(int, const struct sched_attr *, unsigned int)’}
    55 | static inline int sched_setattr(pid_t pid, const struct sched_attr *attr,
    | ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/sched.h:148:5: note: previous declaration of ‘sched_setattr’ with type ‘int(pid_t, struct sched_attr *, unsigned int)’ {aka ‘int(int, struct sched_attr *, unsigned int)’}
    148 | int sched_setattr (pid_t tid, struct sched_attr *attr, unsigned int flags)
    | ^~~~~~~~~~~~~
    make[1]: *** [Makefile:94: src/send.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
    make: *** [debian/rules:9: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:isochron, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Mar 2 13:30:01 2025
    Processing control commands:

    tag -1 + patch
    Bug #1099237 [src:isochron] isochron: FTBFS: src/common.h:41:8: error: redefinition of 'struct sched_attr'
    Added tag(s) patch.

    --
    1099237: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099237
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Aurelien Jarno@21:1/5 to Santiago Vila on Sun Mar 2 13:30:01 2025
    control: tag -1 + patch

    Hi,

    On 2025-03-01 21:01, Santiago Vila wrote:
    In file included from src/send.c:31:
    src/common.h:41:8: error: redefinition of ‘struct sched_attr’
    41 | struct sched_attr {
    | ^~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/sched.h:63,
    from /usr/include/sched.h:43,
    from /usr/include/pthread.h:22,
    from src/send.c:27:
    /usr/include/linux/sched/types.h:98:8: note: originally defined here
    98 | struct sched_attr {
    | ^~~~~~~~~~
    src/common.h:55:19: error: conflicting types for ‘sched_setattr’; have ‘int(pid_t, const struct sched_attr *, unsigned int)’ {aka ‘int(int, const struct sched_attr *, unsigned int)’}
    55 | static inline int sched_setattr(pid_t pid, const struct sched_attr *attr,
    | ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/sched.h:148:5: note: previous declaration of ‘sched_setattr’ with type ‘int(pid_t, struct sched_attr *, unsigned int)’ {aka ‘int(int, struct sched_attr *, unsigned int)’}
    148 | int sched_setattr (pid_t tid, struct sched_attr *attr, unsigned int flags)
    | ^~~~~~~~~~~~~
    make[1]: *** [Makefile:94: src/send.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
    make: *** [debian/rules:9: binary] Error 25

    This build failure is due to glibc 2.41 which started to define
    sched_setattr() and struct sched_attr. I am sorry I missed this when
    preparing this version.

    I have posted a patch upstream that fixes the issue: https://github.com/NXP/isochron/pull/27

    Regards
    Aurelien

    --
    Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Mar 3 11:00:01 2025
    This is a multi-part message in MIME format...

    Your message dated Mon, 03 Mar 2025 09:50:19 +0000
    with message-id <E1tp2RH-00DlZh-HZ@fasolo.debian.org>
    and subject line Bug#1099237: fixed in isochron 0.9-0.2
    has caused the Debian Bug report #1099237,
    regarding isochron: FTBFS: src/common.h:41:8: error: redefinition of 'struct sched_attr'
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1099237: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099237
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 1 Mar 2025 21:01:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.3 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    PP_MIME_FAKE_ASCII_TEXT,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 105; hammy, 150; neutral, 228; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto, 0.000-+--H*F:U*sanvila Return-path: <sanvila@debian.org>
    Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:5