Running phase: unpackPhase unpacking source archive /nix/store/m0rbb1v3qxpvb5b6jl3ax39jhq5293hr-zgv-5.9.tar.gz source root is zgv-5.9 setting SOURCE_DATE_EPOCH to timestamp 1106923841 of file "zgv-5.9/INSTALL" Running phase: patchPhase applying patch /nix/store/jkaxpq7y4bm1gy45ddvc7qm5l4diicp1-zgv-5.9-libpng15.patch patching file src/readpng.c applying patch /nix/store/pj9plhxza6cg57c045rk3rfc3b49q78a-switch.patch patching file src/zgv_io.c Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash BACKEND=SDL cd src && make zgv make[1]: Entering directory '/build/zgv-5.9/src' gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o zgv.o zgv.c zgv.c: In function 'mainloop': zgv.c:1391:9: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 1391 | if(curent>1) curent--; break; | ^~ zgv.c:1391:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1391 | if(curent>1) curent--; break; | ^~~~~ zgv.c:1393:9: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 1393 | if(curent255) actual0=255; | ^~ zgv.c:3840:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3840 | if(actual0<0) actual0=0; if(actual0>255) actual0=255; | ^~ zgv.c:3841:7: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 3841 | if(actual1<0) actual1=0; if(actual1>255) actual1=255; | ^~ zgv.c:3841:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3841 | if(actual1<0) actual1=0; if(actual1>255) actual1=255; | ^~ zgv.c:3842:7: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 3842 | if(actual2<0) actual2=0; if(actual2>255) actual2=255; | ^~ zgv.c:3842:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3842 | if(actual2<0) actual2=0; if(actual2>255) actual2=255; | ^~ zgv.c:3884:7: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 3884 | if(c<0) c=0; if(c>GREY_MAXVAL) c=GREY_MAXVAL; | ^~ zgv.c:3884:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3884 | if(c<0) c=0; if(c>GREY_MAXVAL) c=GREY_MAXVAL; | ^~ zgv.c: In function 'my_mouse_init': zgv.c:485:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 485 | read(mouse_fd,&c,1); | ^~~~~~~~~~~~~~~~~~~ zgv.c: In function 'load_one_file': zgv.c:565:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 565 | chdir(filename); | ^~~~~~~~~~~~~~~ zgv.c: In function 'file_details': zgv.c:736:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 736 | fgets(buf,sizeof(buf),tn); /* lose first line */ | ^~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c:737:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 737 | fgets(buf,sizeof(buf),tn); /* this may be "#IMGINFO:123x456 " */ | ^~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c:746:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 746 | fgets(buf,sizeof(buf),tn); | ^~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c: In function 'mainloop': zgv.c:1126:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 1126 | getcwd(cdir,MAXPATHLEN); | ^~~~~~~~~~~~~~~~~~~~~~~ zgv.c:1430:13: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 1430 | chdir(gifdir[curent].name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c: In function 'showgifdir': zgv.c:2245:1: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 2245 | getcwd(cdir,MAXPATHLEN); | ^~~~~~~~~~~~~~~~~~~~~~~ zgv.c:2287:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 2287 | getcwd(ptr,sizeof(ctmp2)-strlen(ctmp2)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c:2348:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 2348 | getcwd(ptr,sizeof(ctmp2)-strlen(ctmp2)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c: In function 'readgifdir': zgv.c:2451:1: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 2451 | getcwd(cdir,MAXPATHLEN); | ^~~~~~~~~~~~~~~~~~~~~~~ zgv.c:2475:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 2475 | chdir(getenv("HOME")); | ^~~~~~~~~~~~~~~~~~~~~ zgv.c: In function 'update_xvpics_common': zgv.c:3234:1: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 3234 | getcwd(ptr,sizeof(altdirbuf)-strlen(altdirbuf)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zgv.c: In function 'recursive_update_internal': zgv.c:3512:7: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 3512 | chdir(old_cwd); | ^~~~~~~~~~~~~~ zgv.c:3531:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 3531 | chdir(old_cwd); | ^~~~~~~~~~~~~~ zgv.c:3569:1: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 3569 | chdir(old_cwd); | ^~~~~~~~~~~~~~ zgv.c: In function 'rename_file': zgv.c:1546:40: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 249 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 1546 | snprintf(prompt,sizeof(prompt),"Rename %s to what?",gifdir[curent].name); | ^~ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:970, from zgv.c:23: In function 'snprintf', inlined from 'rename_file' at zgv.c:1546:1: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 17 and 272 bytes into a destination of size 256 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ zgv.c: In function 'copymovedel_file_or_tagged_files': zgv.c:1970:40: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 249 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 1970 | snprintf(buf,sizeof(buf),"Error %s %s",msg_acting,gifdir[f].name); | ^~ In function 'snprintf', inlined from 'copymovedel_file_or_tagged_files' at zgv.c:1970:5: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 8 or more bytes (assuming 263) into a destination of size 256 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ zgv.c: In function 'showerrmessage': zgv.c:2850:5: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 2850 | strncat(buf,jpeg_png_errmsg,sizeof(buf)-strlen(buf)-1); break; | ^ zgv.c: In function 'makedirxv332': zgv.c:3079:5: warning: '__builtin___strncpy_chk' output may be truncated copying 255 bytes from a string of length 255 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 3079 | strncpy(files[pos],anentry->d_name,sizeof(files[pos])-1); | ^ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o vgadisp.o vgadisp.c vgadisp.c: In function 'makerealpal': vgadisp.c:753:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 753 | if(r>63) r=63; if(g>63) g=63; if(b>63) b=63; | ^~ vgadisp.c:753:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 753 | if(r>63) r=63; if(g>63) g=63; if(b>63) b=63; | ^~ vgadisp.c: In function 'showgif': vgadisp.c:1235:9: warning: variable 'mleft' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1235 | int mleft=is_end_click_left(),mright=is_end_click_right(); | ^~~~~ vgadisp.c: In function 'redrawgif': vgadisp.c:1999:28: warning: variable 'pyym' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1999 | int cdown=-1,i,pxx,pyy,pyym; | ^~~~ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o bdf2h.o bdf2h.c gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -o bdf2h bdf2h.o ./bdf2h 0 <../fonts/timI12.bdf >fontbmps.h ./bdf2h 1 <../fonts/helvR08.bdf >>fontbmps.h ./bdf2h 2 <../fonts/helvR12.bdf >>fontbmps.h ./bdf2h 2b <../fonts/helvB12.bdf >>fontbmps.h ./bdf2h 3 <../fonts/helvR18.bdf >>fontbmps.h gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o font.o font.c font.c:64:13: warning: 'its_too_damn_picky_sometimes' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 64 | static void its_too_damn_picky_sometimes() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o 3deffects.o 3deffects.c gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o mousecur.o mousecur.c gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o readnbkey.o readnbkey.c awk -f mkopts.awk 255) actual0=255; | ^~ readpnm.c:350:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 350 | if(actual0<0) actual0=0; if(actual0>255) actual0=255; | ^~ readpnm.c:351:3: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 351 | if(actual1<0) actual1=0; if(actual1>255) actual1=255; | ^~ readpnm.c:351:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 351 | if(actual1<0) actual1=0; if(actual1>255) actual1=255; | ^~ readpnm.c:352:3: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 352 | if(actual2<0) actual2=0; if(actual2>255) actual2=255; | ^~ readpnm.c:352:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 352 | if(actual2<0) actual2=0; if(actual2>255) actual2=255; | ^~ readpnm.c: In function 'read_xv332': readpnm.c:404:1: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 404 | fgets(buf,sizeof(buf),in); | ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o readbmp.o readbmp.c readbmp.c: In function 'read_bmp_file': readbmp.c:87:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 87 | fread (buf, 1, 26, in); | ^~~~~~~~~~~~~~~~~~~~~~ readbmp.c:100:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 100 | fread (buf + 26, 1, 28, in);/* then we need the rest */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:206:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 206 | fread (ptr , 1, 3, in); | ^~~~~~~~~~~~~~~~~~~~~~ readbmp.c:208:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 208 | fread (&dummy, 1, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:209:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 209 | fread (ptr + 3, 1, 3, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:211:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 211 | fread (&dummy, 1, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:247:11: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 247 | fread (ptr + 3 * i, 1, 3, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:249:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 249 | fread (&dummy, 1, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:285:15: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 285 | fread (read, 1, 2, in); | ^~~~~~~~~~~~~~~~~~~~~~ readbmp.c:326:19: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 326 | fread (dptr, 1, ((read[1]+3)>>2) << 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:357:11: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 357 | fread (ptr + 3 * i, 1, 3, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:373:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 373 | fread (ptr + pp->width * i, 1, pp->width, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:387:15: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 387 | fread (read, 1, 2, in); | ^~~~~~~~~~~~~~~~~~~~~~ readbmp.c:418:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 418 | fread (ptr, 1, read[1], in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ readbmp.c:451:15: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 451 | fread (hptr, 1, w, in); | ^~~~~~~~~~~~~~~~~~~~~~ readbmp.c:465:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 465 | fread (ptr + pp->width * 3 * i, 1, w, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o readtga.o readtga.c readtga.c: In function 'read_tga_file': readtga.c:139:28: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 139 | for(i=0;i2) | ^~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ readxpm.c:238:15: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 238 | if(strlen(colname)+strlen(buf)+2>sizeof(colname)) | ^~~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ readxpm.c:238:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 238 | if(strlen(colname)+strlen(buf)+2>sizeof(colname)) | ^~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ readxpm.c:241:12: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 241 | strcat(colname," "); | ^~~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'unsigned char *' 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ readxpm.c:242:12: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 242 | strcat(colname,buf); | ^~~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'unsigned char *' 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ readxpm.c:242:20: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 242 | strcat(colname,buf); | ^~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:136:1: note: expected 'const char *' but argument is of type 'unsigned char *' 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~ readxpm.c:258:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 258 | switch(strlen(colname+1)) | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ readxpm.c:261:27: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 261 | rgb=strtol(colname+1,NULL,16); | ~~~~~~~^~ | | | unsigned char * In file included from readxpm.c:20: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:268:27: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 268 | rgb=strtol(colname+1,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:279:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 279 | r=strtol(colname+1,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:280:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 280 | g=strtol(colname+4,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:281:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 281 | b=strtol(colname+7,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:289:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 289 | r=strtol(colname+1,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:290:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 290 | g=strtol(colname+5,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:291:25: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 291 | b=strtol(colname+9,NULL,16); | ~~~~~~~^~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdlib.h:177:48: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 177 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ readxpm.c:299:19: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 299 | if(strcasecmp(colname,"None")==0 || strcasecmp(colname,"#Transparent")==0) | ^~~~~~~ | | | unsigned char * In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:462: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/strings.h:116:36: note: expected 'const char *' but argument is of type 'unsigned char *' 116 | extern int strcasecmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c:299:52: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 299 | if(strcasecmp(colname,"None")==0 || strcasecmp(colname,"#Transparent")==0) | ^~~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/strings.h:116:36: note: expected 'const char *' but argument is of type 'unsigned char *' 116 | extern int strcasecmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c: In function 'colchars_cmp': readxpm.c:467:18: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 467 | return(strcmp(cc1->name,cc2->name)); | ~~~^~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c:467:28: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 467 | return(strcmp(cc1->name,cc2->name)); | ~~~^~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c: In function 'lookup_named_colour': readxpm.c:580:17: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 580 | if(strcasecmp(colname,rgb_db_array[f].name)==0) | ^~~~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/strings.h:116:36: note: expected 'const char *' but argument is of type 'unsigned char *' 116 | extern int strcasecmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c:580:40: warning: pointer targets in passing argument 2 of 'strcasecmp' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 580 | if(strcasecmp(colname,rgb_db_array[f].name)==0) | ~~~~~~~~~~~~~~~^~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/strings.h:116:54: note: expected 'const char *' but argument is of type 'unsigned char *' 116 | extern int strcasecmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ readxpm.c: In function 'init_rgb_db': readxpm.c:605:42: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 605 | strcpy(rgb_db_array[rgb_db_num_entries].name,"black"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ readxpm.c:608:42: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 608 | strcpy(rgb_db_array[rgb_db_num_entries].name,"white"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ readxpm.c:643:18: warning: pointer targets in passing argument 1 of 'next_token' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 643 | ptr=next_token(ptr); | ^~~ | | | char * readxpm.c:554:42: note: expected 'unsigned char *' but argument is of type 'char *' 554 | unsigned char *next_token(unsigned char *ptr) | ~~~~~~~~~~~~~~~^~~ readxpm.c:643:6: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 643 | ptr=next_token(ptr); | ^ readxpm.c:646:42: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 646 | strcpy(rgb_db_array[rgb_db_num_entries].name,ptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ | | | unsigned char * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -fomit-frame-pointer -finline-functions -I/usr/local/include -DBACKEND_SDL -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\" -DETC_RCFILE=\"/usr/local/etc/zgv.conf\" -c -o modesel.o modesel.c modesel.c: In function 'cma_abort': modesel.c:102:1: error: implicit declaration of function 'exit' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 102 | exit(1); | ^~~~ modesel.c:12:1: note: include '' or provide a declaration of 'exit' 11 | #include "modesel.h" +++ |+#include 12 | modesel.c:102:1: warning: incompatible implicit declaration of built-in function 'exit' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 102 | exit(1); | ^~~~ modesel.c:102:1: note: include '' or provide a declaration of 'exit' make[1]: *** [: modesel.o] Error 1 make[1]: Leaving directory '/build/zgv-5.9/src' make: *** [Makefile:36: zgv] Error 2