asterisk-18.4.0-1.fc35.1 fails to build in Fedora 35: make[1]: Entering directory '/builddir/build/BUILD/asterisk-18.4.0/channels' gcc -o console_board.o -c console_board.c -MD -MT console_board.o -MF .console_board.o.d -MP -pthread -I/builddir/build/BUILD/asterisk-18.4.0/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC -I/usr/include/libxml2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -DAST_MODULE=\"chan_oss\" -DAST_MODULE_SELF_SYM=__internal_chan_oss_self -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT In file included from /builddir/build/BUILD/asterisk-18.4.0/include/asterisk.h:23, from console_board.c:44: /builddir/build/BUILD/asterisk-18.4.0/include/asterisk/astmm.h:160:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token 160 | Do_not_use_malloc__use_ast_malloc->fail(a) | ^~ /builddir/build/BUILD/asterisk-18.4.0/include/asterisk/astmm.h:158:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token 158 | Do_not_use_calloc__use_ast_calloc->fail(a, b) | ^~ /builddir/build/BUILD/asterisk-18.4.0/include/asterisk/astmm.h:164:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token 164 | Do_not_use_realloc__use_ast_realloc->fail(a, b) | ^~ /builddir/build/BUILD/asterisk-18.4.0/include/asterisk/astmm.h:162:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token 162 | Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory->fail(a) | ^~ make[1]: *** [/builddir/build/BUILD/asterisk-18.4.0/Makefile.rules:165: console_board.o] Error 1 A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/10392462>.
Dear Maintainer, your package has an open Fails To Build From Source bug for Fedora 35. Action is required from you. If you can fix your package to build, perform a build in koji, and either create an update in bodhi, or close this bug without creating an update, if updating is not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to acknowledge this. If you have already fixed this issue, please close this Bugzilla report. Following the policy for such packages [2], your package will be orphaned if this bug remains in NEW state more than 8 weeks (not sooner than 2021-08-25). A week before the mass branching of Fedora 36 according to the schedule [3], any packages not successfully rebuilt at least on Fedora 34 will be retired regardless of the status of this bug. [1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/ [2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ [3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35.
I'm working on this.
*** Bug 1999433 has been marked as a duplicate of this bug. ***
This issue(s) seems to be related to gcc 11. There is no possibility to rebuild f35 version of asterisk, which was build. With same issue. I observed two things: * ASTMM issue mentioned in this ticket. ** It could be muted by #define ASTMM_LIBC ASTMM_IGNORE in channels/console_board.c before calling of #include "asterisk.h". ** I don't understand root cause * Issue with res_snmp and -fPIC (https://issues.asterisk.org/jira/browse/ASTERISK-29634) I prepared PR for it, but will be good to review. https://src.fedoraproject.org/rpms/asterisk/pull-request/15 Tested build on systems: * rawhide * f36 * f35
I updated PR (rebase, add 18.11.2, fix issue witl ilbc v3) Still no one to merge it.
FEDORA-2022-25ba58cc83 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-25ba58cc83
FEDORA-2022-39e20b8128 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-39e20b8128
FEDORA-2022-25ba58cc83 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-25ba58cc83` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-25ba58cc83 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-39e20b8128 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-39e20b8128` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-39e20b8128 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-39e20b8128 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-25ba58cc83 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.