Bug 2045831

Summary: libsafec: FTBFS in Fedora rawhide/f36: misc/qsort_s.c:181:11: error: storing the address of local variable 'tmp' in '*_3' [-Werror=dangling-pointer=]
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libsafecAssignee: Ali Erdinc Koroglu <aekoroglu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: aekoroglu, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libsafec-3.7.1-1.fc36 libsafec-3.7.1-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-05 01:46:24 UTC Type: ---
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, 1992484, 2045102    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2022-01-25 18:38:43 UTC
libsafec failed to build from source in Fedora rawhide/f36

https://koji.fedoraproject.org/koji/taskinfo?taskID=81787451


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Please fix libsafec at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libsafec will be orphaned. Before branching of Fedora 37,
libsafec will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-01-25 18:38:45 UTC
Created attachment 1855314 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2022-01-25 18:38:47 UTC
Created attachment 1855315 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-25 18:38:49 UTC
Created attachment 1855316 [details]
state.log

Comment 4 Ben Cotton 2022-02-08 20:45:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 5 Petr Pisar 2022-09-06 14:30:31 UTC
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I. -pedantic -fno-strict-aliasing -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Wpacked -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Werror -Wno-suggest-attribute=format -Wno-error=unused-parameter -Wno-error=missing-field-initializers -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 -c misc/qsort_s.c  -fPIC -DPIC -o misc/.libs/qsort_s.o
[...]
misc/qsort_s.c: In function 'cycle':
misc/qsort_s.c:181:11: error: storing the address of local variable 'tmp' in '*_3' [-Werror=dangling-pointer=]
  181 |     ar[n] = tmp;
      |     ~~~~~~^~~~~
misc/qsort_s.c:173:19: note: 'tmp' declared here
  173 |     unsigned char tmp[256];
      |                   ^~~
misc/qsort_s.c:173:19: note: 'ar_32(D)' declared here
cc1: all warnings being treated as errors
make[2]: *** [Makefile:1443: misc/qsort_s.lo] Error 1

Comment 7 Fedora Update System 2023-01-30 09:45:41 UTC
FEDORA-2023-c707e1ffe3 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c707e1ffe3

Comment 8 Fedora Update System 2023-01-30 09:45:54 UTC
FEDORA-2023-8db8eb8a6b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-8db8eb8a6b

Comment 9 Fedora Update System 2023-02-05 01:46:24 UTC
FEDORA-2023-c707e1ffe3 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-02-05 01:53:07 UTC
FEDORA-2023-8db8eb8a6b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.