Bug 1448819

Summary: FTBFS: Mrmlread.c:701:7: error: format not a string literal and no format arguments
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: motifAssignee: Petr Šabata <psabata>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 26CC: psabata, siddharth.kde, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: motif-2.3.4-13.fc27 motif-2.3.4-13.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-13 13:35:48 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:

Description Karsten Hopp 2017-05-08 09:43:13 UTC
Description of problem:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../lib/Xm -I./.. -I.. -I../Xm -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 -D_FILE_OFFSET_BITS=64 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/freetype2 -I/usr/include/libpng16 -MT Mrmerror.lo -MD -MP -MF .deps/Mrmerror.Tpo -c Mrmerror.c -o Mrmerror.o >/dev/null 2>&1
Mrmlread.c: In function 'MrmFetchColorLiteral':
Mrmlread.c:701:7: error: format not a string literal and no format arguments [-Werror=format-security]
       sprintf(err_msg, _MrmMMsg_0040);
       ^~~~~~~
Mrmwcrw.c: In function 'Urm__CW_CreateArglist':
Mrmwcrw.c:1393:9: error: format not a string literal and no format arguments [-Werror=format-security]
         sprintf (err_msg, _MrmMMsg_0040);
         ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../lib/Xm -I./.. -I.. -I../Xm -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 -D_FILE_OFFSET_BITS=64 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/freetype2 -I/usr/include/libpng16 -MT Mrmos.lo -MD -MP -MF .deps/Mrmos.Tpo -c Mrmos.c -o Mrmos.o >/dev/null 2>&1
Mrmicon.c: In function 'Urm__RealizeColorTable':
MrmIrid.c: In function 'Idb__RID_ReturnItem':
Mrmicon.c:1179:3: error: format not a string literal and no format arguments [-Werror=format-security]
   sprintf(err_msg, _MrmMMsg_0040);
   ^~~~~~~
MrmIrid.c:266:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if ((recptr->pointers[resndx].internal_id.rec_no == 0) &&
      ^
Mrmicon.c:1255:8: error: format not a string literal and no format arguments [-Werror=format-security]
        sprintf (err_msg, _MrmMMsg_0040);
        ^~~~~~~

Version-Release number of selected component (if applicable):
motif-2.3.4-12.fc26

How reproducible:
always

Steps to Reproduce:
1. koji build --scratch f26 motif-2.3.4-12.fc26.src.rpm
2.
3.

Actual results:


Expected results:


Additional info:
This is blocking us in the Modularity team as we need to be able to rebuild
 motif

Comment 1 Petr Šabata 2017-06-08 10:15:23 UTC
I'll fix this.

Comment 2 Fedora Update System 2017-06-08 10:50:24 UTC
motif-2.3.4-13.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8de9a60073

Comment 3 Fedora Update System 2017-06-10 01:09:16 UTC
motif-2.3.4-13.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8de9a60073

Comment 4 Fedora Update System 2017-06-13 13:35:48 UTC
motif-2.3.4-13.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.