D: [iurt_root_command] chroot warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Installing /home/iurt/rpmbuild/SRPMS/chroma-1.18-1.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.R7tRSI + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf chroma-1.18 + /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/chroma-1.18.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd chroma-1.18 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/chroma-1.17-use-cflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.OpQiVr + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd chroma-1.18 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi configure.ac:112: warning: AC_OUTPUT should be used without arguments. configure.ac:112: You should run autoupdate. + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=aarch64-mageia-linux-gnu --build=aarch64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr/games --datadir=/usr/share/games configure: WARNING: unrecognized options: --disable-dependency-tracking checking for aarch64-mageia-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for sdl-config... /usr/bin/sdl-config checking for IMG_LoadPNG_RW in -lSDL_image... yes checking for freetype-config... /usr/bin/freetype-config checking for initscr in -lncurses... yes checking for library containing gettext... none required configure: creating ./config.status config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o util.o util.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o enigma.o enigma.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o main.o main.c main.c: In function 'help': main.c:390:31: warning: '%s' directive writing up to 4095 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 390 | sprintf(filename, "%s.%s", directory, buffer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:25: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 2 and 8192 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c:405:31: warning: '%s' directive writing up to 4095 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 405 | sprintf(filename, "%s.%s", directory, buffer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:25: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 2 and 8192 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c:418:31: warning: '%s' directive writing up to 4095 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 418 | sprintf(filename, "%s.%s", directory, buffer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:25: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 2 and 8192 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'level_play': main.c:272:55: warning: '%x' directive writing between 1 and 8 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 272 | sprintf(filename, "%s/%x.chroma", directory, (int)time(NULL)); | ^~ main.c:272:51: note: using the range [0, 4294967295] for directive argument 272 | sprintf(filename, "%s/%x.chroma", directory, (int)time(NULL)); | ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:25: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 10 and 4112 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o names.o names.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o xmlparser.o xmlparser.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o xor.o xor.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o colours.o colours.c colours.c: In function 'colours_init': colours.c:61:32: warning: '%s' directive writing 22 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 61 | sprintf(filename, "%s%s%s", directory, "/", COLOURS_DEFAULT); | ^~ In file included from /usr/include/stdio.h:888, from colours.c:22: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 24 and 4119 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ colours.c: In function 'colours_menu': colours.c:376:36: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 376 | sprintf(filename, "%s%s%s", directory, "/", dentry->d_name); | ^~ In file included from /usr/include/stdio.h:888, from colours.c:22: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 2 and 4352 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o menu.o menu.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o engine.o engine.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o sdlscreen.o sdlscreen.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o editor.o editor.c editor.c: In function 'editor': editor.c:218:47: warning: '%x' directive writing between 1 and 8 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 218 | sprintf(filename, "%s/%x.chroma", directory, (int)time(NULL)); | ^~ editor.c:218:43: note: using the range [0, 4294967295] for directive argument 218 | sprintf(filename, "%s/%x.chroma", directory, (int)time(NULL)); | ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:888, from editor.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 10 and 4112 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o sdlfont.o sdlfont.c sdlfont.c: In function 'font_calculate_width': sdlfont.c:182:18: warning: overflow in conversion from 'int' to 'Uint16' {aka 'short unsigned int'} changes value from '(int)*(text + (sizetype)n++) << 18 & 1835008' to '0' [-Woverflow] 182 | c = (text[n++] & 0x07) << 18; | ^ sdlfont.c: In function 'font_render': sdlfont.c:276:22: warning: overflow in conversion from 'int' to 'Uint16' {aka 'short unsigned int'} changes value from '(int)*(text + (sizetype)n++) << 18 & 1835008' to '0' [-Woverflow] 276 | c = (text[n++] & 0x07) << 18; | ^ sdlfont.c: In function 'font_init': sdlfont.c:119:26: warning: '/font.ttf' directive writing 9 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 119 | sprintf(filename, "%s/font.ttf", directory); | ^~~~~~~~~ In file included from /usr/include/stdio.h:888, from sdlfont.c:22: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 10 and 4105 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o level.o level.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o sdlmenudisplay.o sdlmenudisplay.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o sdlshadowdisplay.o sdlshadowdisplay.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o cursesmenudisplay.o cursesmenudisplay.c cursesmenudisplay.c: In function 'menu_displayentry': cursesmenudisplay.c:135:28: error: format not a string literal and no format arguments [-Werror=format-security] 135 | mvprintw(y, x, buffer); | ^~~~~~ cursesmenudisplay.c:151:28: error: format not a string literal and no format arguments [-Werror=format-security] 151 | mvprintw(y, x, buffer); | ^~~~~~ cursesmenudisplay.c:200:28: error: format not a string literal and no format arguments [-Werror=format-security] 200 | mvprintw(y, x, buffer); | ^~~~~~ cursesmenudisplay.c:211:28: error: format not a string literal and no format arguments [-Werror=format-security] 211 | mvprintw(y, x, buffer); | ^~~~~~ cursesmenudisplay.c: In function 'menu_display': cursesmenudisplay.c:360:32: error: format not a string literal and no format arguments [-Werror=format-security] 360 | mvprintw(2, x, buffer); | ^~~~~~ cursesmenudisplay.c:376:17: error: format not a string literal and no format arguments [-Werror=format-security] 376 | mvprintw(y, x, pmenu->title); | ^~~~~~~~ cursesmenudisplay.c:390:36: error: format not a string literal and no format arguments [-Werror=format-security] 390 | mvprintw(y, x, buffer); | ^~~~~~ cc1: some warnings being treated as errors make: *** [: cursesmenudisplay.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o cursesdisplay.o cursesdisplay.c cursesdisplay.c: In function 'display_play': cursesdisplay.c:497:29: error: format not a string literal and no format arguments [-Werror=format-security] 497 | printw(buffer + x); | ^~~~~~ cursesdisplay.c: In function 'display_options_load': cursesdisplay.c:1634:34: warning: '%s' directive writing 22 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 1634 | sprintf(options_colours, "%s/%s", filename, COLOURS_DEFAULT); | ^~ In file included from /usr/include/stdio.h:888, from /usr/include/curses.h:232, from cursesdisplay.c:27: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 24 and 4119 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [: cursesdisplay.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o sdldisplay.o sdldisplay.c sdldisplay.c: In function 'display_options_load': sdldisplay.c:3560:34: warning: '%s' directive writing 22 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 3560 | sprintf(options_colours, "%s/%s", filename, COLOURS_DEFAULT); | ^~ In file included from /usr/include/stdio.h:888, from sdldisplay.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 24 and 4119 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sdldisplay.c:3562:35: warning: '%s' directive writing 17 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 3562 | sprintf(options_graphics, "%s/%s", filename, GRAPHICS_DEFAULT); | ^~ In file included from /usr/include/stdio.h:888, from sdldisplay.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"/usr/share/games/chroma/\" -c -o graphics.o graphics.c graphics.c: In function 'graphics_loadimage': graphics.c:427:34: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 427 | sprintf(fullfilename, "%s%s%s", directory, "/", filename); | ^ In file included from /usr/include/stdio.h:888, from graphics.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ graphics.c: In function 'graphics_init.part.0': graphics.c:84:32: warning: '%s' directive writing 17 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 84 | sprintf(filename, "%s%s%s", directory, "/", GRAPHICS_DEFAULT); | ^~ In file included from /usr/include/stdio.h:888, from graphics.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ graphics.c: In function 'graphics_menu': graphics.c:386:36: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 386 | sprintf(filename, "%s%s%s", directory, "/", dentry->d_name); | ^~ In file included from /usr/include/stdio.h:888, from graphics.c:21: /usr/include/bits/stdio2.h:38:10: note: '__builtin___sprintf_chk' output between 2 and 4352 bytes into a destination of size 4096 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.OpQiVr (%build) RPM build errors: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.OpQiVr (%build) I: [iurt_root_command] ERROR: chroot