Bug 1306632

Summary: crypto-utils-2.4.1-60.fc24 FTBFS: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: crypto-utilsAssignee: Joe Orton <jorton>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emaldona, jorton
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=12810451
Whiteboard:
Fixed In Version: crypto-utils-2.4.1-61.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-11 16:48:45 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:

Description Petr Pisar 2016-02-11 13:48:25 UTC
crypto-utils-2.4.1-60.fc24 fails to build in F24:

+ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wall -Werror=implicit-function-declaration -Werror -I/usr/include/nspr4 -I/usr/include/nss3 keyutil.c certext.c secutil.c -o keyutil -lplc4 -lnspr4 -lnss3
keyutil.c: In function 'CertReq':
keyutil.c:705:6: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
      country = CERT_GetCountryName(subject);
      ^~~~~~~
keyutil.c:702:9: note: ...this 'if' clause, but it is not
         if (!state)
         ^~
cc1: all warnings being treated as errors
error: Bad exit status from /var/tmp/rpm-tmp.7FLViK (%build)

This seems to be triggered by GCC 6 that enabled a new warnings.

Comment 2 Joe Orton 2016-02-11 15:23:20 UTC
Package: crypto-utils-2.4.1-61.fc24
Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=734994

Comment 3 Joe Orton 2016-02-11 16:48:45 UTC
Thanks Petr.