Your message dated Tue, 26 Oct 2021 08:20:23 +0000
with message-id <[email protected]>
and subject line Bug#997144: fixed in dosbox 0.74-3-4
has caused the Debian Bug report #997144,
regarding dosbox: FTBFS: ../../../src/debug/debug_gui.cpp:98:26: error: format 
not a string literal and no format arguments [-Werror=format-security]
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 [email protected]
immediately.)


-- 
997144: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997144
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dosbox
Version: 0.74-3-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H -I. -I../../../src/debug -I../..  -I../../../include 
> -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL 
> -D_GNU_SOURCE=1 -D_REENTRANT  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -mno-ms-bitfields  
> -c -o debug_win32.o ../../../src/debug/debug_win32.cpp
> ../../../src/debug/debug_gui.cpp: In function ‘void DEBUG_RefreshPage(char)’:
> ../../../src/debug/debug_gui.cpp:98:26: error: format not a string literal 
> and no format arguments [-Werror=format-security]
>    98 |                 mvwprintw(dbg.win_out,rem_lines-1, 0, 
> const_cast<char*>((*i).c_str()));
>       |                 
> ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../src/debug/debug_gui.cpp:100:42: warning: zero-length gnu_printf 
> format string [-Wformat-zero-length]
>   100 |         mvwprintw(dbg.win_out,maxy-1, 0, "");
>       |                                          ^~
> ../../../src/debug/debug_gui.cpp: In member function ‘void 
> LOG::operator()(const char*, ...)’:
> ../../../src/debug/debug_gui.cpp:113:27: warning: format ‘%u’ expects 
> argument of type ‘unsigned int’, but argument 2 has type ‘Bitu’ {aka ‘long 
> unsigned int’} [-Wformat=]
>   113 |         DEBUG_ShowMsg("%10u: 
> %s:%s\n",cycle_count,loggrp[d_type].front,buf);
>       |                        ~~~^           ~~~~~~~~~~~
>       |                           |           |
>       |                           |           Bitu {aka long unsigned int}
>       |                           unsigned int
>       |                        %10lu
> ../../../src/debug/debug.cpp: In member function ‘virtual Bitu 
> DebugPageHandler::readb(PhysPt)’:
> ../../../src/debug/debug.cpp:82:9: warning: no return statement in function 
> returning non-void [-Wreturn-type]
>    82 |         }
>       |         ^
> ../../../src/debug/debug.cpp: In member function ‘virtual Bitu 
> DebugPageHandler::readw(PhysPt)’:
> ../../../src/debug/debug.cpp:84:9: warning: no return statement in function 
> returning non-void [-Wreturn-type]
>    84 |         }
>       |         ^
> ../../../src/debug/debug.cpp: In member function ‘virtual Bitu 
> DebugPageHandler::readd(PhysPt)’:
> ../../../src/debug/debug.cpp:86:9: warning: no return statement in function 
> returning non-void [-Wreturn-type]
>    86 |         }
>       |         ^
> ../../../src/debug/debug.cpp: In function ‘bool GetDescriptorInfo(char*, 
> char*, char*)’:
> ../../../src/debug/debug.cpp:198:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   198 |                                 sprintf(out1,"%s: s:%08X type:%02X 
> p",selname,desc.GetSelector(),desc.saved.gate.type);
>       |                                                     ~~~^              
>         ~~~~~~~~~~~~~~~~~~
>       |                                                        |              
>                         |
>       |                                                        unsigned int   
>                         Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:207:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   207 |                                 sprintf(out2,"    l:%08X dpl : %01X 
> %1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.g);
>       |                                                     ~~~^              
>          ~~~~~~~~~~~~~~~
>       |                                                        |              
>                       |
>       |                                                        unsigned int   
>                       Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:211:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   211 |                                 sprintf(out1,"%s: s:%08X type:%02X p 
> params: 
> %02X",selname,desc.GetSelector(),desc.saved.gate.type,desc.saved.gate.paramcount);
>       |                                                     ~~~^              
>                      ~~~~~~~~~~~~~~~~~~
>       |                                                        |              
>                                      |
>       |                                                        unsigned int   
>                                      Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:212:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   212 |                                 sprintf(out2,"    o:%08X dpl : %01X 
> %1X",desc.GetOffset(),desc.saved.gate.dpl,desc.saved.gate.p);
>       |                                                     ~~~^              
>    ~~~~~~~~~~~~~~~~
>       |                                                        |              
>                  |
>       |                                                        unsigned int   
>                  Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:218:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   218 |                                 sprintf(out1,"%s: s:%08X type:%02X 
> p",selname,desc.GetSelector(),desc.saved.gate.type);
>       |                                                     ~~~^              
>         ~~~~~~~~~~~~~~~~~~
>       |                                                        |              
>                         |
>       |                                                        unsigned int   
>                         Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:219:56: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   219 |                                 sprintf(out2,"    o:%08X dpl : %01X 
> %1X",desc.GetOffset(),desc.saved.gate.dpl,desc.saved.gate.p);
>       |                                                     ~~~^              
>    ~~~~~~~~~~~~~~~~
>       |                                                        |              
>                  |
>       |                                                        unsigned int   
>                  Bitu {aka long unsigned int}
>       |                                                     %08lX
> ../../../src/debug/debug.cpp:223:40: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   223 |                 sprintf(out2,"    l:%08X dpl : %01X 
> %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g);
>       |                                     ~~~^                             
> ~~~~~~~~~~~~~~~
>       |                                        |                              
>             |
>       |                                        unsigned int                   
>             Bitu {aka long unsigned int}
>       |                                     %08lX
> ../../../src/debug/debug.cpp: In function ‘void DrawRegisters()’:
> ../../../src/debug/debug.cpp:737:41: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   737 |         mvwprintw (dbg.win_reg,2,72,"%01X",GETFLAG(IOPL)>>12);
>       |                                      ~~~^
>       |                                         |
>       |                                         unsigned int
>       |                                      %01lX
> ../../../src/debug/debug.cpp:741:41: warning: format ‘%X’ expects argument of 
> type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   741 |         mvwprintw (dbg.win_reg,2,78,"%01X",cpu.cpl);
>       |                                      ~~~^  ~~~~~~~
>       |                                         |      |
>       |                                         |      Bitu {aka long 
> unsigned int}
>       |                                         unsigned int
>       |                                      %01lX
> ../../../src/debug/debug.cpp:755:44: error: format not a string literal and 
> no format arguments [-Werror=format-security]
>   755 |                 mvwprintw(dbg.win_reg,2,28,out1);
>       |                                            ^~~~
> ../../../src/debug/debug.cpp:756:44: error: format not a string literal and 
> no format arguments [-Werror=format-security]
>   756 |                 mvwprintw(dbg.win_reg,3,28,out2);
>       |                                            ^~~~
> ../../../src/debug/debug.cpp:760:38: warning: format ‘%u’ expects argument of 
> type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} 
> [-Wformat=]
>   760 |         mvwprintw(dbg.win_reg,3,60,"%u       ",cycle_count);
>       |                                     ~^         ~~~~~~~~~~~
>       |                                      |         |
>       |                                      |         Bitu {aka long 
> unsigned int}
>       |                                      unsigned int
>       |                                     %lu
> ../../../src/debug/debug.cpp: In function ‘void DrawCode()’:
> ../../../src/debug/debug.cpp:840:45: warning: too many arguments for format 
> [-Wformat-extra-args]
>   840 |                 
> mvwprintw(dbg.win_code,10,0,"(Running)",codeViewData.inputStr);
>       |                                             ^~~~~~~~~~~
> ../../../src/debug/debug.cpp: In function ‘void LogGDT()’:
> ../../../src/debug/debug.cpp:1771:57: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1771 |         LOG(LOG_MISC,LOG_ERROR)("GDT Base:%08X 
> Limit:%08X",address,length);
>       |                                                      ~~~^          
> ~~~~~~
>       |                                                         |          |
>       |                                                         |          
> Bitu {aka long unsigned int}
>       |                                                         unsigned int
>       |                                                      %08lX
> ../../../src/debug/debug.cpp:1774:34: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1774 |                 sprintf(out1,"%04X: b:%08X type: %02X 
> parbg",(i<<3),desc.GetBase(),desc.saved.seg.type);
>       |                               ~~~^                           ~~~~~~
>       |                                  |                             |
>       |                                  unsigned int                  Bitu 
> {aka long unsigned int}
>       |                               %04lX
> ../../../src/debug/debug.cpp:1776:42: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1776 |                 sprintf(out1,"      l:%08X dpl : %01X  
> %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g);
>       |                                       ~~~^                            
>   ~~~~~~~~~~~~~~~
>       |                                          |                            
>                |
>       |                                          unsigned int                 
>                Bitu {aka long unsigned int}
>       |                                       %08lX
> ../../../src/debug/debug.cpp: In function ‘void LogLDT()’:
> ../../../src/debug/debug.cpp:1791:57: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1791 |         LOG(LOG_MISC,LOG_ERROR)("LDT Base:%08X 
> Limit:%08X",address,length);
>       |                                                      ~~~^          
> ~~~~~~
>       |                                                         |          |
>       |                                                         |          
> Bitu {aka long unsigned int}
>       |                                                         unsigned int
>       |                                                      %08lX
> ../../../src/debug/debug.cpp:1794:34: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1794 |                 sprintf(out1,"%04X: b:%08X type: %02X 
> parbg",(i<<3)|4,desc.GetBase(),desc.saved.seg.type);
>       |                               ~~~^                           ~~~~~~~~
>       |                                  |                                 |
>       |                                  unsigned int                      
> Bitu {aka long unsigned int}
>       |                               %04lX
> ../../../src/debug/debug.cpp:1796:42: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1796 |                 sprintf(out1,"      l:%08X dpl : %01X  
> %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g);
>       |                                       ~~~^                            
>   ~~~~~~~~~~~~~~~
>       |                                          |                            
>                |
>       |                                          unsigned int                 
>                Bitu {aka long unsigned int}
>       |                                       %08lX
> ../../../src/debug/debug.cpp: In function ‘void LogIDT()’:
> ../../../src/debug/debug.cpp:1808:42: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1808 |                         sprintf(out1,"%04X: sel:%04X 
> off:%02X",address/8,desc.GetSelector(),desc.GetOffset());
>       |                                       ~~~^                     
> ~~~~~~~~~
>       |                                          |                            
> |
>       |                                          unsigned int                 
> Bitu {aka long unsigned int}
>       |                                       %04lX
> ../../../src/debug/debug.cpp:1808:52: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1808 |                         sprintf(out1,"%04X: sel:%04X 
> off:%02X",address/8,desc.GetSelector(),desc.GetOffset());
>       |                                                 ~~~^                  
>    ~~~~~~~~~~~~~~~~~~
>       |                                                    |                  
>                    |
>       |                                                    unsigned int       
>                    Bitu {aka long unsigned int}
>       |                                                 %04lX
> ../../../src/debug/debug.cpp:1808:61: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1808 |                         sprintf(out1,"%04X: sel:%04X 
> off:%02X",address/8,desc.GetSelector(),desc.GetOffset());
>       |                                                          ~~~^         
>                       ~~~~~~~~~~~~~~~~
>       |                                                             |         
>                                     |
>       |                                                             unsigned 
> int                                  Bitu {aka long unsigned int}
>       |                                                          %02lX
> ../../../src/debug/debug.cpp: In function ‘void LogPages(char*)’:
> ../../../src/debug/debug.cpp:1844:55: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1844 |                                 sprintf(out1,"page %05Xxxx -> %04Xxxx 
>  flags [puw] 
> %x:%x::%x:%x::%x:%x",sel,entry.block.base,entry.block.p,table.block.p,entry.block.us,table.block.us,entry.block.wr,table.block.wr);
>       |                                                    ~~~^               
>                                   ~~~
>       |                                                       |               
>                                   |
>       |                                                       unsigned int    
>                                   Bitu {aka long unsigned int}
>       |                                                    %05lX
> ../../../src/debug/debug.cpp:1847:60: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1847 |                                 sprintf(out1,"pagetable %03X not 
> present, flags [puw] %x::%x::%x",(sel >> 
> 10),table.block.p,table.block.us,table.block.wr);
>       |                                                         ~~~^          
>                             ~~~~~~~~~~~
>       |                                                            |          
>                                  |
>       |                                                            unsigned 
> int                                Bitu {aka long unsigned int}
>       |                                                         %03lX
> ../../../src/debug/debug.cpp: In function ‘void LogCPUInfo()’:
> ../../../src/debug/debug.cpp:1856:30: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1856 |         sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X  
> cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl);
>       |                           ~~~^                            ~~~~~~~
>       |                              |                                |
>       |                              unsigned int                     Bitu 
> {aka long unsigned int}
>       |                           %08lX
> ../../../src/debug/debug.cpp:1856:39: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1856 |         sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X  
> cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl);
>       |                                    ~~~^                           
> ~~~~~~~~~~
>       |                                       |                               
>    |
>       |                                       unsigned int                    
>    Bitu {aka long unsigned int}
>       |                                    %08lX
> ../../../src/debug/debug.cpp:1856:48: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1856 |         sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X  
> cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl);
>       |                                             ~~~^                      
>        ~~~~~~~~~~
>       |                                                |                      
>               |
>       |                                                unsigned int           
>               Bitu {aka long unsigned int}
>       |                                             %08lX
> ../../../src/debug/debug.cpp:1856:56: warning: format ‘%x’ expects argument 
> of type ‘unsigned int’, but argument 6 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1856 |         sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X  
> cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl);
>       |                                                       ~^              
>                   ~~~~~~~
>       |                                                        |              
>                       |
>       |                                                        unsigned int   
>                       Bitu {aka long unsigned int}
>       |                                                       %lx
> ../../../src/debug/debug.cpp:1858:33: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1858 |         sprintf(out1,"eflags:%08X [vm=%x iopl=%x 
> nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14);
>       |                              ~~~^
>       |                                 |
>       |                                 unsigned int
>       |                              %08lX
> ../../../src/debug/debug.cpp:1858:40: warning: format ‘%x’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1858 |         sprintf(out1,"eflags:%08X [vm=%x iopl=%x 
> nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14);
>       |                                       ~^
>       |                                        |
>       |                                        unsigned int
>       |                                       %lx
> ../../../src/debug/debug.cpp:1858:48: warning: format ‘%x’ expects argument 
> of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1858 |         sprintf(out1,"eflags:%08X [vm=%x iopl=%x 
> nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14);
>       |                                               ~^
>       |                                                |
>       |                                                unsigned int
>       |                                               %lx
> ../../../src/debug/debug.cpp:1858:54: warning: format ‘%x’ expects argument 
> of type ‘unsigned int’, but argument 6 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1858 |         sprintf(out1,"eflags:%08X [vm=%x iopl=%x 
> nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14);
>       |                                                     ~^
>       |                                                      |
>       |                                                      unsigned int
>       |                                                     %lx
> ../../../src/debug/debug.cpp:1860:46: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1860 |         sprintf(out1,"GDT base=%08X 
> limit=%08X",cpu.gdt.GetBase(),cpu.gdt.GetLimit());
>       |                                           ~~~^                    
> ~~~~~~~~~~~~~~~~~~
>       |                                              |                        
>             |
>       |                                              unsigned int             
>             Bitu {aka long unsigned int}
>       |                                           %08lX
> ../../../src/debug/debug.cpp:1862:46: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1862 |         sprintf(out1,"IDT base=%08X 
> limit=%08X",cpu.idt.GetBase(),cpu.idt.GetLimit());
>       |                                           ~~~^                    
> ~~~~~~~~~~~~~~~~~~
>       |                                              |                        
>             |
>       |                                              unsigned int             
>             Bitu {aka long unsigned int}
>       |                                           %08lX
> ../../../src/debug/debug.cpp:1868:46: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1868 |                 sprintf(out1,"TR selector=%04X, base=%08X 
> limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1);
>       |                                           ~~~^                        
>    ~~~
>       |                                              |                        
>    |
>       |                                              unsigned int             
>    Bitu {aka long unsigned int}
>       |                                           %04lX
> ../../../src/debug/debug.cpp:1868:68: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1868 |                 sprintf(out1,"TR selector=%04X, base=%08X 
> limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1);
>       |                                                                 ~~~^  
>                       ~~~~~~~~~~~~~~~
>       |                                                                    |  
>                                    |
>       |                                                                    
> unsigned int                          Bitu {aka long unsigned int}
>       |                                                                 %08lX
> ../../../src/debug/debug.cpp:1873:47: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1873 |                 sprintf(out1,"LDT selector=%04X, base=%08X 
> limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1);
>       |                                            ~~~^                       
>     ~~~
>       |                                               |                       
>     |
>       |                                               unsigned int            
>     Bitu {aka long unsigned int}
>       |                                            %04lX
> ../../../src/debug/debug.cpp:1873:69: warning: format ‘%X’ expects argument 
> of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned 
> int’} [-Wformat=]
>  1873 |                 sprintf(out1,"LDT selector=%04X, base=%08X 
> limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1);
>       |                                                                  ~~~^ 
>                        ~~~~~~~~~~~~~~~
>       |                                                                     | 
>                                     |
>       |                                                                     
> unsigned int                          Bitu {aka long unsigned int}
>       |                                                                  %08lX
> ../../../src/debug/debug.cpp: In function ‘void LogInstruction(Bit16u, 
> Bit32u, std::ofstream&)’:
> ../../../src/debug/debug.cpp:1905:77: warning: too many arguments for format 
> [-Wformat-extra-args]
>  1905 |                         if (mem_readb_checked(start+i,&value)) 
> sprintf(tmpc,"?? ",value);
>       |                                                                       
>       ^~~~~
> ../../../src/debug/debug.cpp: In function ‘void SaveMemory(Bit16u, Bit32u, 
> Bit32u)’:
> ../../../src/debug/debug.cpp:2150:92: warning: too many arguments for format 
> [-Wformat-extra-args]
>  2150 |                         if 
> (mem_readb_checked(GetAddress(seg,ofs1+x),&value)) sprintf(temp,"?? ",value);
>       |                                                                       
>                      ^~~~~
> ../../../src/debug/debug.cpp:2163:92: warning: too many arguments for format 
> [-Wformat-extra-args]
>  2163 |                         if 
> (mem_readb_checked(GetAddress(seg,ofs1+x),&value)) sprintf(temp,"?? ",value);
>       |                                                                       
>                      ^~~~~
> ../../../src/debug/debug.cpp: In function ‘void DrawVariables()’:
> ../../../src/debug/debug.cpp:2225:60: warning: too many arguments for format 
> [-Wformat-extra-args]
>  2225 |                         snprintf(buffer,DEBUG_VAR_BUF_LEN, "??????", 
> value);
>       |                                                            ^~~~~~~~
> ../../../src/debug/debug.cpp:2231:26: error: format not a string literal and 
> no format arguments [-Werror=format-security]
>  2231 |                 mvwprintw(dbg.win_var, y, x, dv->GetName());
>       |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../src/debug/debug.cpp:2232:74: error: format not a string literal and 
> no format arguments [-Werror=format-security]
>  2232 |                 mvwprintw(dbg.win_var, y,  (x + DEBUG_VAR_BUF_LEN + 
> 1) , buffer);
>       |                                                                       
>    ^~~~~~
> cc1plus: some warnings being treated as errors
> make[5]: *** [Makefile:358: debug_gui.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/dosbox_0.74-3-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: dosbox
Source-Version: 0.74-3-4
Done: Stephen Kitt <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dosbox, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Kitt <[email protected]> (supplier of updated dosbox package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 26 Oct 2021 09:33:48 +0200
Source: dosbox
Architecture: source
Version: 0.74-3-4
Distribution: unstable
Urgency: medium
Maintainer: Stephen Kitt <[email protected]>
Changed-By: Stephen Kitt <[email protected]>
Closes: 997144
Changes:
 dosbox (0.74-3-4) unstable; urgency=medium
 .
   * Replace uses of variable strings as format strings with constants.
     Closes: #997144.
   * Drop the libncurses5-dev build-dependency in favour of libncurses-
     dev.
   * Standards-Version 4.6.0, no change required.
Checksums-Sha1:
 5e0da76286498c184ccd38c69ea2289bf3e16f91 1963 dosbox_0.74-3-4.dsc
 ae8b8108fa44c130fe87f2af726e6907d86e34dc 91396 dosbox_0.74-3-4.debian.tar.xz
 4c4fbd2cf7e940241233b8760da7487c5a90163f 10541 dosbox_0.74-3-4_source.buildinfo
Checksums-Sha256:
 3f5060aebb151fdd567de7340e1e63cc1ff1e851102bbd05422a587dace1983a 1963 
dosbox_0.74-3-4.dsc
 2c73998d1c3446e03c12d590282adf1552c16796d6bed96406e222addf073ed2 91396 
dosbox_0.74-3-4.debian.tar.xz
 5439021a256f17e7afb3e55cf62b921cb433da930a82e18b8015c3bda836b57c 10541 
dosbox_0.74-3-4_source.buildinfo
Files:
 194c6b4b95b733d18f2cdef4bfc0c300 1963 otherosfs optional dosbox_0.74-3-4.dsc
 9f2d4ce5c7783459763df0390b7e14f3 91396 otherosfs optional 
dosbox_0.74-3-4.debian.tar.xz
 82fe177e8f75b103249972208ed16074 10541 otherosfs optional 
dosbox_0.74-3-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmF3sdQACgkQgNMC9Yht
g5yPZA//TDxwe+MhsC6kogWsO5Cr8+l/g0FiFeAKZFnZRlrQ4UYRHBy1bWEFcm/Z
a9swy5v39QE2J5vBaVNAF6jdjpayzDPG/qU8n+X01oWI1ills3v1YlCGjGIHzoix
w0xdXpmh7gizlX2Y+7ErW67baF6z6JzYqotySEs0BdrTOIkOjs3UWZ0J8e6Bg0L5
l4mnLBnj+ffb/IW8mqbk/MKOzGY7DUz40MLr88fYs+7YDijmccnxjU3mARh+WmUn
g/8u7P9u+I4Jmy8oxKf6cZGfpWxTwVIOjZYbWz3RIa3LFy/NzzheDSCDf374pWGW
UWY25D/KTCaRw72wLX+ELUUqEvjugVzINQDsxR52FN2eppRduBu9Ap6sB2YhdYVC
4TIX0HGyNYNet+yvVQ3mOPgxuBoPkG1mwM9uTJmSfqjT09vaBOMLAP6eygvq/mgS
vh8wZg8NCA4xG61sF4FweNZQpXqEdD9AeGBuuzMg29y7XAPwFQZxVX/eDGbaSjLq
OYU0ZgOaRDNvaksK76dCjH6YG2U3LNQOzlHJ4fGrhsCWQPsac7iZbvEZtnV4LROr
lqsqff1jSqalw2g3CC6cm9o0G5L7jVGF5FD/xbAPfJ1Cd1ZkD7kv5AcJqYvMoUQv
Z8L1shi4uVZJFSc39AjkJ+if1/CEhZaqpMc2U3OYgyAI/7C070o=
=KCBc
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to