D: [iurt_root_command] chroot warning: %patchN is deprecated (6 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/kterm-6.2.0-41.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.y55l7T + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf kterm-6.2.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd kterm-6.2.0 + rm -rf /home/pterjan/rpmbuild/BUILD/kterm-6.2.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/kterm-6.2.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (kterm-6.2.0-kbd.patch.bz2):' Patch #0 (kterm-6.2.0-kbd.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-kbd.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .kbd --fuzz=0 patching file KTerm.ad + echo 'Patch #1 (kterm-6.2.0-glibc.patch.bz2):' Patch #1 (kterm-6.2.0-glibc.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-glibc.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .glibc --fuzz=0 patching file main.c patching file screen.c patching file scrollbar.c + echo 'Patch #2 (kterm-6.2.0-utmp98.patch.bz2):' Patch #2 (kterm-6.2.0-utmp98.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-utmp98.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .utempter --fuzz=0 patching file main.c patching file Imakefile + echo 'Patch #4 (kterm-6.2.0-allfonts.patch.bz2):' Patch #4 (kterm-6.2.0-allfonts.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-allfonts.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .allfonts --fuzz=0 patching file KTerm.ad + echo 'Patch #5 (kterm-6.2.0-gcc3.4-fix.patch.bz2):' Patch #5 (kterm-6.2.0-gcc3.4-fix.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-gcc3.4-fix.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc34 --fuzz=0 patching file button.c patching file charproc.c + echo 'Patch #6 (kterm-6.2.0-varargs.patch.bz2):' Patch #6 (kterm-6.2.0-varargs.patch.bz2): + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/kterm-6.2.0-varargs.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .varargs --fuzz=0 patching file main.c + uudecode DEMO.kt.uu + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.nxIaXi + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd kterm-6.2.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + xmkmf imake -DUseInstalled -I/usr/share/X11/config + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CDEBUGFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o VTPrsTbl.o VTPrsTbl.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o convert.o convert.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from convert.c:24: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ convert.c: In function 'convCStoJIS': convert.c:43:16: error: implicit declaration of function 'convCStoANY'; did you mean 'convCStoJIS'? [-Wimplicit-function-declaration] 43 | return convCStoANY(cs, js, NULL); | ^~~~~~~~~~~ | convCStoJIS make: *** [: convert.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o tabs.o tabs.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from tabs.c:30: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ tabs.c:40:1: error: return type defaults to 'int' [-Wimplicit-int] 40 | TabReset(tabs) | ^~~~~~~~ tabs.c: In function 'TabReset': tabs.c:49:17: error: implicit declaration of function 'TabSet'; did you mean 'TabReset'? [-Wimplicit-function-declaration] 49 | TabSet(tabs, i); | ^~~~~~ | TabReset tabs.c: At top level: tabs.c:56:1: error: return type defaults to 'int' [-Wimplicit-int] 56 | TabSet(tabs, col) | ^~~~~~ tabs.c:66:1: error: return type defaults to 'int' [-Wimplicit-int] 66 | TabClear(tabs, col) | ^~~~~~~~ tabs.c:78:1: error: return type defaults to 'int' [-Wimplicit-int] 78 | TabNext (tabs, col) | ^~~~~~~ tabs.c: In function 'TabNext': tabs.c:86:17: error: implicit declaration of function 'Index'; did you mean 'index'? [-Wimplicit-function-declaration] 86 | Index(screen, 1); | ^~~~~ | index tabs.c: At top level: tabs.c:99:1: error: return type defaults to 'int' [-Wimplicit-int] 99 | TabZonk (tabs) | ^~~~~~~ make: *** [: tabs.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o cursor.o cursor.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from cursor.c:31: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ cursor.c: In function '_CheckSelection': cursor.c:47:9: error: implicit declaration of function 'TrackText' [-Wimplicit-function-declaration] 47 | TrackText(0, 0, 0, 0); | ^~~~~~~~~ cursor.c: At top level: cursor.c:58:1: error: return type defaults to 'int' [-Wimplicit-int] 58 | CursorSet(screen, row, col, flags) | ^~~~~~~~~ cursor.c:81:1: error: return type defaults to 'int' [-Wimplicit-int] 81 | CursorBack(screen, n) | ^~~~~~~~~~ cursor.c:110:1: error: return type defaults to 'int' [-Wimplicit-int] 110 | CursorForward(screen, n) | ^~~~~~~~~~~~~ cursor.c:125:1: error: return type defaults to 'int' [-Wimplicit-int] 125 | CursorDown(screen, n) | ^~~~~~~~~~ cursor.c:145:1: error: return type defaults to 'int' [-Wimplicit-int] 145 | CursorUp(screen, n) | ^~~~~~~~ cursor.c:165:1: error: return type defaults to 'int' [-Wimplicit-int] 165 | Index(screen, amount) | ^~~~~ cursor.c: In function 'Index': cursor.c:178:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 178 | return; | ^~~~~~ cursor.c:165:1: note: declared here 165 | Index(screen, amount) | ^~~~~ cursor.c:182:9: error: implicit declaration of function 'Scroll' [-Wimplicit-function-declaration] 182 | Scroll(screen, amount - j); | ^~~~~~ cursor.c: At top level: cursor.c:189:1: error: return type defaults to 'int' [-Wimplicit-int] 189 | RevIndex(screen, amount) | ^~~~~~~~ cursor.c: In function 'RevIndex': cursor.c:200:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 200 | return; | ^~~~~~ cursor.c:189:1: note: declared here 189 | RevIndex(screen, amount) | ^~~~~~~~ cursor.c:203:9: error: implicit declaration of function 'RevScroll' [-Wimplicit-function-declaration] 203 | RevScroll(screen, amount - (screen->cur_row - screen->top_marg)); | ^~~~~~~~~ cursor.c: At top level: cursor.c:210:1: error: return type defaults to 'int' [-Wimplicit-int] 210 | CarriageReturn(screen) | ^~~~~~~~~~~~~~ cursor.c:221:1: error: return type defaults to 'int' [-Wimplicit-int] 221 | CursorSave(term, sc) | ^~~~~~~~~~ cursor.c:238:1: error: return type defaults to 'int' [-Wimplicit-int] 238 | CursorRestore(term, sc) | ^~~~~~~~~~~~~ make: *** [: cursor.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o data.o data.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from data.c:29: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o gset.o gset.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from gset.c:28: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o input.o input.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from input.c:31: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ input.c: In function 'AdjustAfterInput': input.c:50:17: error: implicit declaration of function 'WindowScroll' [-Wimplicit-function-declaration] 50 | WindowScroll(screen, 0); | ^~~~~~~~~~~~ input.c:56:33: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 56 | Bell(XkbBI_MarginBell,0); | ^~~~ | XBell input.c: At top level: input.c:67:1: error: return type defaults to 'int' [-Wimplicit-int] 67 | Input (keyboard, screen, event, eightbit) | ^~~~~ input.c: In function 'Input': input.c:94:22: error: implicit declaration of function 'XmuLookupKana'; did you mean 'XLookupNone'? [-Wimplicit-function-declaration] 94 | nbytes = XmuLookupKana (event, strbuf, STRBUFSIZE, | ^~~~~~~~~~~~~ | XLookupNone input.c:124:17: error: implicit declaration of function 'unparseseq' [-Wimplicit-function-declaration] 124 | unparseseq(&reply, pty); | ^~~~~~~~~~ input.c:125:17: error: implicit declaration of function 'unparseputc' [-Wimplicit-function-declaration] 125 | unparseputc((char)(keysym-XK_KP_F1+'P'), pty); | ^~~~~~~~~~~ input.c:229:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 229 | return; | ^~~~~~ input.c:67:1: note: declared here 67 | Input (keyboard, screen, event, eightbit) | ^~~~~ input.c: At top level: input.c:232:1: error: return type defaults to 'int' [-Wimplicit-int] 232 | StringInput (screen, string, nbytes) | ^~~~~~~~~~~ make: *** [: input.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o xim.o xim.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from xim.c:21: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ xim.c: In function 'OpenIM': xim.c:450:17: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 450 | Bell(XkbBI_MinorError,0); | ^~~~ | XBell make: *** [: xim.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o button.o button.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from button.c:33: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ button.c: In function 'SelectionReceived': button.c:375:13: error: implicit declaration of function 'convCTtoCS'; did you mean 'convCStoJIS'? [-Wimplicit-function-declaration] 375 | n = convCTtoCS(ct, *length, NULL); | ^~~~~~~~~~ | convCStoJIS button.c:434:13: error: implicit declaration of function 'v_write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 434 | v_write(pty, lag, cp - lag + 1); | ^~~~~~~ | fwrite button.c: In function 'StartSelect': button.c:573:13: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 573 | HideCursor (); | ^~~~~~~~~~ | BadCursor button.c: In function 'EndExtend': button.c:638:25: error: implicit declaration of function 'TrackText' [-Wimplicit-function-declaration] 638 | TrackText(0, 0, 0, 0); | ^~~~~~~~~ button.c: In function 'SelectSet': button.c:670:17: error: implicit declaration of function 'DisownSelection'; did you mean 'XtDisownSelection'? [-Wimplicit-function-declaration] 670 | DisownSelection(term); | ^~~~~~~~~~~~~~~ | XtDisownSelection button.c: At top level: button.c:780:1: error: return type defaults to 'int' [-Wimplicit-int] 780 | ScrollSelection(screen, amount) | ^~~~~~~~~~~~~~~ button.c:815:1: error: return type defaults to 'int' [-Wimplicit-int] 815 | ResizeSelection (screen, rows, cols) | ^~~~~~~~~~~~~~~ button.c: In function 'PointToRowCol': button.c:845:18: error: type defaults to 'int' in declaration of 'row' [-Wimplicit-int] 845 | register row, col; | ^~~ button.c:845:23: error: type defaults to 'int' in declaration of 'col' [-Wimplicit-int] 845 | register row, col; | ^~~ button.c: At top level: button.c:1257:1: error: return type defaults to 'int' [-Wimplicit-int] 1257 | TrackText(frow, fcol, trow, tcol) | ^~~~~~~~~ button.c: In function 'TrackText': button.c:1270:57: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1270 | trow == old_endrow && tcol == old_endcol) return; | ^~~~~~ button.c:1257:1: note: declared here 1257 | TrackText(frow, fcol, trow, tcol) | ^~~~~~~~~ button.c: In function 'ReHiliteText': button.c:1325:21: error: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration] 1325 | ScrnRefresh(screen, frow, fcol, 1, i, True); | ^~~~~~~~~~~ button.c: In function 'SaltTextAway': button.c:1388:32: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 1388 | if((line = (Ichr *)malloc((unsigned)((j + 1) * sizeof(Ichr)))) == (Ichr *)NULL) | ^~~~~~ button.c:43:1: note: include '' or provide a declaration of 'malloc' 42 | #include "menu.h" +++ |+#include 43 | button.c:1388:32: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1388 | if((line = (Ichr *)malloc((unsigned)((j + 1) * sizeof(Ichr)))) == (Ichr *)NULL) | ^~~~~~ button.c:1388:32: note: include '' or provide a declaration of 'malloc' button.c:1389:17: error: implicit declaration of function 'SysError' [-Wimplicit-function-declaration] 1389 | SysError(ERROR_BMALLOC2); | ^~~~~~~~ button.c: In function 'ConvertSelection': button.c:1488:23: error: implicit declaration of function 'convCStoCT' [-Wimplicit-function-declaration] 1488 | *length = convCStoCT(xterm->screen.selection, NULL); | ^~~~~~~~~~ button.c:1493:23: error: implicit declaration of function 'convCStoLatin1' [-Wimplicit-function-declaration] 1493 | *length = convCStoLatin1(xterm->screen.selection, NULL); | ^~~~~~~~~~~~~~ button.c: At top level: button.c:1692:1: error: return type defaults to 'int' [-Wimplicit-int] 1692 | DisownSelection(termw) | ^~~~~~~~~~~~~~~ button.c: In function 'SaveText': button.c:1767:20: error: implicit declaration of function 'ScrnGetAttributes' [-Wimplicit-function-declaration] 1767 | if(ScrnGetAttributes(screen, row + screen->topline, 0, &attr, 1) == 1) { | ^~~~~~~~~~~~~~~~~ make: *** [: button.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o kinput2.o kinput2.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xos.h:42, from kinput2.c:20: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ kinput2.c: In function 'inputString': kinput2.c:199:17: error: implicit declaration of function 'v_write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 199 | v_write(pty, lp, p - lp + 1); | ^~~~~~~ | fwrite kinput2.c: In function 'setFonts': kinput2.c:314:9: error: implicit declaration of function 'LoadOneFont'; did you mean 'XLoadFont'? [-Wimplicit-function-declaration] 314 | LoadOneFont(screen, True, screen->menu_font_number, F_ISO8859_1, False); | ^~~~~~~~~~~ | XLoadFont kinput2.c: In function 'HandleBeginConversion': kinput2.c:366:17: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 366 | Bell(XkbBI_MinorError,0); | ^~~~ | XBell make: *** [: kinput2.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o scrollbar.o scrollbar.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from scrollbar.c:29: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ scrollbar.c: In function 'ResizeScreen': scrollbar.c:164:9: error: implicit declaration of function 'IMSendSize'; did you mean 'PMinSize'? [-Wimplicit-function-declaration] 164 | IMSendSize(screen); | ^~~~~~~~~~ | PMinSize scrollbar.c:165:9: error: implicit declaration of function 'IMSendSpot' [-Wimplicit-function-declaration] 165 | IMSendSpot(screen); | ^~~~~~~~~~ scrollbar.c:168:9: error: implicit declaration of function 'Kinput2SendSize' [-Wimplicit-function-declaration] 168 | Kinput2SendSize(); | ^~~~~~~~~~~~~~~ scrollbar.c:169:9: error: implicit declaration of function 'Kinput2SendSpot' [-Wimplicit-function-declaration] 169 | Kinput2SendSpot(); | ^~~~~~~~~~~~~~~ scrollbar.c: At top level: scrollbar.c:216:1: error: return type defaults to 'int' [-Wimplicit-int] 216 | ScrollBarReverseVideo(scrollWidget) | ^~~~~~~~~~~~~~~~~~~~~ scrollbar.c:242:1: error: return type defaults to 'int' [-Wimplicit-int] 242 | ScrollBarDrawThumb(scrollWidget) | ^~~~~~~~~~~~~~~~~~ scrollbar.c:258:1: error: return type defaults to 'int' [-Wimplicit-int] 258 | ResizeScrollBar(scrollWidget, x, y, height) | ^~~~~~~~~~~~~~~ scrollbar.c:268:1: error: return type defaults to 'int' [-Wimplicit-int] 268 | WindowScroll(screen, top) | ^~~~~~~~~~~~ scrollbar.c: In function 'WindowScroll': scrollbar.c:285:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 285 | return; | ^~~~~~ scrollbar.c:268:1: note: declared here 268 | WindowScroll(screen, top) | ^~~~~~~~~~~~ scrollbar.c:289:17: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 289 | HideCursor(); | ^~~~~~~~~~ | BadCursor scrollbar.c:301:9: error: implicit declaration of function 'scrolling_copy_area' [-Wimplicit-function-declaration] 301 | scrolling_copy_area(screen, scrolltop, scrollheight, -i); | ^~~~~~~~~~~~~~~~~~~ scrollbar.c:304:9: error: implicit declaration of function 'ScrollSelection' [-Wimplicit-function-declaration] 304 | ScrollSelection(screen, i); | ^~~~~~~~~~~~~~~ scrollbar.c:314:9: error: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration] 314 | ScrnRefresh(screen, refreshtop, 0, lines, screen->max_col + 1, False); | ^~~~~~~~~~~ scrollbar.c: At top level: scrollbar.c:320:1: error: return type defaults to 'int' [-Wimplicit-int] 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c: In function 'ScrollBarOn': scrollbar.c:330:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 330 | return; | ^~~~~~ scrollbar.c:320:1: note: declared here 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c:333:39: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 333 | if (screen->scrollWidget) return; | ^~~~~~ scrollbar.c:320:1: note: declared here 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c:338:17: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 338 | Bell(XkbBI_MinorError,0); | ^~~~ | XBell scrollbar.c:339:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 339 | return; | ^~~~~~ scrollbar.c:320:1: note: declared here 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c:342:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 342 | return; | ^~~~~~ scrollbar.c:320:1: note: declared here 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c:349:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 349 | return; | ^~~~~~ scrollbar.c:320:1: note: declared here 320 | ScrollBarOn (xw, init, doalloc) | ^~~~~~~~~~~ scrollbar.c:360:15: error: implicit declaration of function 'Error'; did you mean 'perror'? [-Wimplicit-function-declaration] 360 | Error (ERROR_SBRALLOC); | ^~~~~ | perror scrollbar.c:366:61: warning: 'calloc' argument 1 type is 'unsigned int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 366 | (Bchr *)calloc((unsigned) screen->max_col + 1, sizeof(Bchr))) == NULL) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ scrollbar.c:327:27: note: built-in 'calloc' declared here 327 | void *realloc(), *calloc(); | ^~~~~~ scrollbar.c:403:13: error: implicit declaration of function 'Redraw' [-Wimplicit-function-declaration] 403 | Redraw (); | ^~~~~~ scrollbar.c: At top level: scrollbar.c:407:1: error: return type defaults to 'int' [-Wimplicit-int] 407 | ScrollBarOff(screen) | ^~~~~~~~~~~~ scrollbar.c: In function 'ScrollBarOff': scrollbar.c:411:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 411 | return; | ^~~~~~ scrollbar.c:407:1: note: declared here 407 | ScrollBarOff(screen) | ^~~~~~~~~~~~ scrollbar.c: In function 'ScrollTextUpDownBy': scrollbar.c:450:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 450 | int pixels = (int) call_data; | ^ scrollbar.c: In function 'params_to_pixels': scrollbar.c:501:14: error: type defaults to 'int' in declaration of 'mult' [-Wimplicit-int] 501 | register mult = 1; | ^~~~ scrollbar.c:514:17: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 514 | mult *= atoi (params[0]); | ^~~~ scrollbar.c: In function 'HandleScrollForward': scrollbar.c:539:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 539 | (XtPointer)params_to_pixels (screen, params, (int) *nparams)); | ^ scrollbar.c: In function 'HandleScrollBack': scrollbar.c:555:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 555 | (XtPointer)-params_to_pixels (screen, params, (int) *nparams)); | ^ make: *** [: scrollbar.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o screen.o screen.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from screen.c:31: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ screen.c: In function 'Allocate': screen.c:77:31: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] 77 | if ((base = (ScrnBuf) calloc ((unsigned)nrow, sizeof (Bchr *))) == 0) | ^~~~~~ screen.c:41:1: note: include '' or provide a declaration of 'calloc' 40 | #include +++ |+#include 41 | #endif screen.c:77:31: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 77 | if ((base = (ScrnBuf) calloc ((unsigned)nrow, sizeof (Bchr *))) == 0) | ^~~~~~ screen.c:77:31: note: include '' or provide a declaration of 'calloc' screen.c:81:17: error: implicit declaration of function 'SysError' [-Wimplicit-function-declaration] 81 | SysError (ERROR_SCALLOC); | ^~~~~~~~ screen.c:84:28: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 84 | if ((tmp = (Bchr *)calloc ((unsigned) (nrow * ncol), sizeof(Bchr))) == 0) | ^~~~~~ screen.c:84:28: note: include '' or provide a declaration of 'calloc' screen.c: At top level: screen.c:103:1: error: return type defaults to 'int' [-Wimplicit-int] 103 | Reallocate(sbuf, sbufaddr, nrow, ncol, oldrow, oldcol) | ^~~~~~~~~~ screen.c: In function 'Reallocate': screen.c:167:27: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 167 | *sbuf = (ScrnBuf) realloc((char *) (*sbuf), | ^~~~~~~ screen.c:167:27: note: include '' or provide a declaration of 'realloc' screen.c:167:27: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] screen.c:167:27: note: include '' or provide a declaration of 'realloc' screen.c:193:28: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 193 | if ((tmp = (Bchr *)calloc((unsigned) (nrow * ncol), sizeof(Bchr))) == 0) | ^~~~~~ screen.c:193:28: note: include '' or provide a declaration of 'calloc' screen.c: At top level: screen.c:248:1: error: return type defaults to 'int' [-Wimplicit-int] 248 | ScreenWrite (screen, str, flags, gset, length) | ^~~~~~~~~~~ screen.c: In function 'ScreenWrite': screen.c:281:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 281 | return; | ^~~~~~ screen.c:248:1: note: declared here 248 | ScreenWrite (screen, str, flags, gset, length) | ^~~~~~~~~~~ screen.c: At top level: screen.c:328:1: error: return type defaults to 'int' [-Wimplicit-int] 328 | ScrnInsertLine (sb, last, where, n, size) | ^~~~~~~~~~~~~~ screen.c:395:1: error: return type defaults to 'int' [-Wimplicit-int] 395 | ScrnDeleteLine (sb, last, where, n, size) | ^~~~~~~~~~~~~~ screen.c:452:1: error: return type defaults to 'int' [-Wimplicit-int] 452 | ScrnInsertChar (sb, row, col, n, size) | ^~~~~~~~~~~~~~ screen.c:502:1: error: return type defaults to 'int' [-Wimplicit-int] 502 | ScrnDeleteChar (sb, row, col, n, size) | ^~~~~~~~~~~~~~ screen.c: In function 'ScrnDeleteChar': screen.c:512:18: error: type defaults to 'int' in declaration of 'nbytes' [-Wimplicit-int] 512 | register nbytes = (size - n - col); | ^~~~~~ screen.c: At top level: screen.c:537:1: error: return type defaults to 'int' [-Wimplicit-int] 537 | ScrnRefresh (screen, toprow, leftcol, nrows, ncols, force) | ^~~~~~~~~~~ screen.c: In function 'ScrnRefresh': screen.c:613:21: error: implicit declaration of function 'StatusBox'; did you mean 'Status'? [-Wimplicit-function-declaration] 613 | StatusBox(screen); | ^~~~~~~~~ | Status screen.c:713:20: error: implicit declaration of function 'ScreenDraw' [-Wimplicit-function-declaration] 713 | ScreenDraw(screen, row + topline, lastind, col, flags, False); | ^~~~~~~~~~ screen.c: At top level: screen.c:790:1: error: return type defaults to 'int' [-Wimplicit-int] 790 | ClearBufRows (screen, first, last) | ^~~~~~~~~~~~ screen.c:825:1: error: return type defaults to 'int' [-Wimplicit-int] 825 | ScreenResize (screen, width, height, flags) | ^~~~~~~~~~~~ screen.c: In function 'ScreenResize': screen.c:908:25: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 908 | HideCursor(); | ^~~~~~~~~~ | BadCursor screen.c:912:21: error: implicit declaration of function 'SwitchBufPtrs' [-Wimplicit-function-declaration] 912 | SwitchBufPtrs(screen); | ^~~~~~~~~~~~~ screen.c:940:21: error: implicit declaration of function 'ScrollSelection' [-Wimplicit-function-declaration] 940 | ScrollSelection(screen, move_down_by); | ^~~~~~~~~~~~~~~ screen.c:972:17: error: implicit declaration of function 'ResizeScrollBar' [-Wimplicit-function-declaration] 972 | ResizeScrollBar(screen->scrollWidget, -1, -1, height); | ^~~~~~~~~~~~~~~ screen.c:976:9: error: implicit declaration of function 'ResizeSelection' [-Wimplicit-function-declaration] 976 | ResizeSelection (screen, rows, cols); | ^~~~~~~~~~~~~~~ screen.c:1011:9: error: implicit declaration of function 'IMSendSize'; did you mean 'PMinSize'? [-Wimplicit-function-declaration] 1011 | IMSendSize(screen); | ^~~~~~~~~~ | PMinSize screen.c:1012:9: error: implicit declaration of function 'IMSendSpot' [-Wimplicit-function-declaration] 1012 | IMSendSpot(screen); | ^~~~~~~~~~ screen.c:1015:9: error: implicit declaration of function 'Kinput2SendSize' [-Wimplicit-function-declaration] 1015 | Kinput2SendSize(); | ^~~~~~~~~~~~~~~ screen.c:1016:9: error: implicit declaration of function 'Kinput2SendSpot' [-Wimplicit-function-declaration] 1016 | Kinput2SendSpot(); | ^~~~~~~~~~~~~~~ screen.c: At top level: screen.c:1128:1: error: return type defaults to 'int' [-Wimplicit-int] 1128 | ScreenDraw(screen, row, col, endcol, flags, oncursor) | ^~~~~~~~~~ screen.c: In function 'ScreenDraw': screen.c:1190:13: error: implicit declaration of function 'LoadOneFont'; did you mean 'XLoadFont'? [-Wimplicit-function-declaration] 1190 | LoadOneFont(screen, True, screen->menu_font_number, fnum, False); | ^~~~~~~~~~~ | XLoadFont make: *** [: screen.o] Error 1 rm -f misc.o gcc -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE misc.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from misc.c:29: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ misc.c:64:1: error: return type defaults to 'int' [-Wimplicit-int] 64 | xevents() | ^~~~~~~ misc.c: In function 'xevents': misc.c:74:17: error: implicit declaration of function 'FlushScroll' [-Wimplicit-function-declaration] 74 | FlushScroll(screen); | ^~~~~~~~~~~ misc.c:92:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 92 | return; | ^~~~~~ misc.c:64:1: note: declared here 64 | xevents() | ^~~~~~~ misc.c:96:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 96 | return; | ^~~~~~ misc.c:64:1: note: declared here 64 | xevents() | ^~~~~~~ misc.c: In function 'make_colored_cursor': misc.c:156:9: error: implicit declaration of function 'recolor_cursor'; did you mean 'XRecolorCursor'? [-Wimplicit-function-declaration] 156 | recolor_cursor (c, fg, bg); | ^~~~~~~~~~~~~~ | XRecolorCursor misc.c: In function 'HandleKeyPressed': misc.c:172:9: error: implicit declaration of function 'Input' [-Wimplicit-function-declaration] 172 | Input (&term->keyboard, screen, &event->xkey, False); | ^~~~~ misc.c: In function 'HandleStringEvent': misc.c:225:13: error: implicit declaration of function 'StringInput' [-Wimplicit-function-declaration] 225 | StringInput (screen, hexval, 1); | ^~~~~~~~~~~ misc.c: In function 'DoSpecialEnterNotify': misc.c:248:9: error: implicit declaration of function 'selectwindow' [-Wimplicit-function-declaration] 248 | selectwindow(screen, INWINDOW); | ^~~~~~~~~~~~ misc.c: In function 'DoSpecialLeaveNotify': misc.c:277:9: error: implicit declaration of function 'unselectwindow' [-Wimplicit-function-declaration] 277 | unselectwindow(screen, INWINDOW); | ^~~~~~~~~~~~~~ misc.c: In function 'HandleFocusChange': misc.c:308:21: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 308 | Bell(XkbBI_Info, 100); | ^~~~ | XBell misc.c:309:21: error: implicit declaration of function 'ReverseVideo'; did you mean 'HandleReverseVideo'? [-Wimplicit-function-declaration] 309 | ReverseVideo(term); | ^~~~~~~~~~~~ | HandleReverseVideo misc.c: At top level: misc.c:318:1: error: return type defaults to 'int' [-Wimplicit-int] 318 | selectwindow(screen, flag) | ^~~~~~~~~~~~ misc.c: In function 'selectwindow': misc.c:338:21: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 338 | HideCursor(); | ^~~~~~~~~~ | BadCursor misc.c:341:25: error: implicit declaration of function 'ShowCursor'; did you mean 'CWCursor'? [-Wimplicit-function-declaration] 341 | ShowCursor(); | ^~~~~~~~~~ | CWCursor misc.c:342:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 342 | return; | ^~~~~~ misc.c:318:1: note: declared here 318 | selectwindow(screen, flag) | ^~~~~~~~~~~~ misc.c: At top level: misc.c:348:1: error: return type defaults to 'int' [-Wimplicit-int] 348 | unselectwindow(screen, flag) | ^~~~~~~~~~~~~~ misc.c: In function 'unselectwindow': misc.c:352:35: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 352 | if (screen->always_highlight) return; | ^~~~~~ misc.c:348:1: note: declared here 348 | unselectwindow(screen, flag) | ^~~~~~~~~~~~~~ misc.c: At top level: misc.c:377:1: error: return type defaults to 'int' [-Wimplicit-int] 377 | Bell(which,percent) | ^~~~ misc.c: In function 'Bell': misc.c:401:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 401 | return; | ^~~~~~ misc.c:377:1: note: declared here 377 | Bell(which,percent) | ^~~~ misc.c:408:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 408 | return; | ^~~~~~ misc.c:377:1: note: declared here 377 | Bell(which,percent) | ^~~~ misc.c:414:9: error: implicit declaration of function 'VisualBell' [-Wimplicit-function-declaration] 414 | VisualBell(); | ^~~~~~~~~~ misc.c: At top level: misc.c:439:1: error: return type defaults to 'int' [-Wimplicit-int] 439 | VisualBell() | ^~~~~~~~~~ misc.c:503:1: error: return type defaults to 'int' [-Wimplicit-int] 503 | Redraw() | ^~~~~~ misc.c:759:1: error: return type defaults to 'int' [-Wimplicit-int] 759 | do_osc(func) | ^~~~~~ misc.c: In function 'do_osc': misc.c:784:17: error: implicit declaration of function 'Changename' [-Wimplicit-function-declaration] 784 | Changename(buf); | ^~~~~~~~~~ misc.c:785:17: error: implicit declaration of function 'Changetitle' [-Wimplicit-function-declaration] 785 | Changetitle(buf); | ^~~~~~~~~~~ misc.c:817:17: error: implicit declaration of function 'SetVTFont'; did you mean 'XSetFont'? [-Wimplicit-function-declaration] 817 | SetVTFont (fontMenu_fontescape, True, buf, NULL); | ^~~~~~~~~ | XSetFont misc.c: At top level: misc.c:827:8: error: return type defaults to 'int' [-Wimplicit-int] 827 | static ChangeGroup(attribute, value) | ^~~~~~~~~~~ misc.c:838:1: error: return type defaults to 'int' [-Wimplicit-int] 838 | Changename(name) | ^~~~~~~~~~ misc.c:844:1: error: return type defaults to 'int' [-Wimplicit-int] 844 | Changetitle(name) | ^~~~~~~~~~~ misc.c:853:1: error: return type defaults to 'int' [-Wimplicit-int] 853 | Panic(s, a) | ^~~~~ misc.c:875:1: error: return type defaults to 'int' [-Wimplicit-int] 875 | SysError (i) | ^~~~~~~~ misc.c: In function 'SysError': misc.c:884:9: error: implicit declaration of function 'Cleanup'; did you mean 'SmsCleanUp'? [-Wimplicit-function-declaration] 884 | Cleanup(i); | ^~~~~~~ | SmsCleanUp misc.c: At top level: misc.c:887:1: error: return type defaults to 'int' [-Wimplicit-int] 887 | Error (i) | ^~~~~ misc.c:898:1: error: return type defaults to 'int' [-Wimplicit-int] 898 | Cleanup (code) | ^~~~~~~ misc.c: In function 'Cleanup': misc.c:908:9: error: implicit declaration of function 'Exit'; did you mean 'exit'? [-Wimplicit-function-declaration] 908 | Exit (code); | ^~~~ | exit misc.c: At top level: misc.c:918:1: error: return type defaults to 'int' [-Wimplicit-int] 918 | Setenv (var, value) | ^~~~~~ misc.c: In function 'Setenv': misc.c:931:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 931 | return; | ^~~~~~ misc.c:918:1: note: declared here 918 | Setenv (var, value) | ^~~~~~ misc.c: At top level: misc.c:965:1: error: return type defaults to 'int' [-Wimplicit-int] 965 | xerror(d, ev) | ^~~~~~ misc.c:975:1: error: return type defaults to 'int' [-Wimplicit-int] 975 | xioerror(dpy) | ^~~~~~~~ misc.c:995:1: error: return type defaults to 'int' [-Wimplicit-int] 995 | XStrCmp(s1, s2) | ^~~~~~~ make: *** [Makefile:1081: misc.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o menu.o menu.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from menu.c:30: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ menu.c: In function 'domenu': menu.c:207:9: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 207 | Bell(XkbBI_MinorError,0); | ^~~~ | XBell menu.c: In function 'do_securekbd': menu.c:433:9: error: implicit declaration of function 'ReverseVideo'; did you mean 'XtCReverseVideo'? [-Wimplicit-function-declaration] 433 | ReverseVideo (term); | ^~~~~~~~~~~~ | XtCReverseVideo menu.c: In function 'do_redraw': menu.c:489:5: error: implicit declaration of function 'Redraw'; did you mean 'do_redraw'? [-Wimplicit-function-declaration] 489 | Redraw (); | ^~~~~~ | do_redraw menu.c: In function 'do_quit': menu.c:555:5: error: implicit declaration of function 'Cleanup'; did you mean 'SmsCleanUp'? [-Wimplicit-function-declaration] 555 | Cleanup (0); | ^~~~~~~ | SmsCleanUp menu.c: In function 'do_scrollbar': menu.c:571:9: error: implicit declaration of function 'ScrollBarOff' [-Wimplicit-function-declaration] 571 | ScrollBarOff (screen); | ^~~~~~~~~~~~ menu.c:573:9: error: implicit declaration of function 'ScrollBarOn' [-Wimplicit-function-declaration] 573 | ScrollBarOn (term, FALSE, FALSE); | ^~~~~~~~~~~ menu.c: In function 'do_jumpscroll': menu.c:588:33: error: implicit declaration of function 'FlushScroll' [-Wimplicit-function-declaration] 588 | if (screen->scroll_amt) FlushScroll(screen); | ^~~~~~~~~~~ menu.c: In function 'do_softreset': menu.c:752:5: error: implicit declaration of function 'VTReset' [-Wimplicit-function-declaration] 752 | VTReset (FALSE); | ^~~~~~~ menu.c: In function 'do_clearsavedlines': menu.c:771:5: error: implicit declaration of function 'ScrollBarDrawThumb' [-Wimplicit-function-declaration] 771 | ScrollBarDrawThumb(screen->scrollWidget); | ^~~~~~~~~~~~~~~~~~ menu.c: In function 'do_statusline': menu.c:803:9: error: implicit declaration of function 'HideStatus' [-Wimplicit-function-declaration] 803 | HideStatus(); | ^~~~~~~~~~ menu.c:805:9: error: implicit declaration of function 'ShowStatus' [-Wimplicit-function-declaration] 805 | ShowStatus(); | ^~~~~~~~~~ menu.c: In function 'do_reversestatus': menu.c:820:5: error: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration] 820 | ScrnRefresh(screen, screen->max_row+1, 0, 1, screen->max_col+1, False); | ^~~~~~~~~~~ menu.c: In function 'do_vtfont': menu.c:918:13: error: implicit declaration of function 'SetVTFont'; did you mean 'XSetFont'? [-Wimplicit-function-declaration] 918 | SetVTFont (i, True, NULL, NULL); | ^~~~~~~~~ | XSetFont make: *** [: menu.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -c -o util.o util.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from util.c:31: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ util.c:48:1: error: return type defaults to 'int' [-Wimplicit-int] 48 | FlushScroll(screen) | ^~~~~~~~~~~ util.c: In function 'FlushScroll': util.c:60:17: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 60 | HideCursor(); | ^~~~~~~~~~ | BadCursor util.c:81:33: error: implicit declaration of function 'ScrollBarDrawThumb' [-Wimplicit-function-declaration] 81 | ScrollBarDrawThumb(screen->scrollWidget); | ^~~~~~~~~~~~~~~~~~ util.c:110:9: error: implicit declaration of function 'scrolling_copy_area' [-Wimplicit-function-declaration] 110 | scrolling_copy_area(screen, scrolltop+screen->scroll_amt, | ^~~~~~~~~~~~~~~~~~~ util.c:112:9: error: implicit declaration of function 'ScrollSelection' [-Wimplicit-function-declaration] 112 | ScrollSelection(screen, -(screen->scroll_amt)); | ^~~~~~~~~~~~~~~ util.c:124:17: error: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration] 124 | ScrnRefresh(screen, refreshtop, 0, refreshheight, | ^~~~~~~~~~~ util.c: At top level: util.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | AddToRefresh(screen) | ^~~~~~~~~~~~ util.c:167:1: error: return type defaults to 'int' [-Wimplicit-int] 167 | Scroll(screen, amount) | ^~~~~~ util.c: In function 'Scroll': util.c:199:17: error: implicit declaration of function 'ClearScreen' [-Wimplicit-function-declaration] 199 | ClearScreen(screen); | ^~~~~~~~~~~ util.c:200:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 200 | return; | ^~~~~~ util.c:167:1: note: declared here 167 | Scroll(screen, amount) | ^~~~~~ util.c:235:17: error: implicit declaration of function 'CopyWait' [-Wimplicit-function-declaration] 235 | CopyWait(screen); | ^~~~~~~~ util.c:253:17: error: implicit declaration of function 'ScrnDeleteLine' [-Wimplicit-function-declaration] 253 | ScrnDeleteLine(screen->allbuf, screen->bot_marg + | ^~~~~~~~~~~~~~ util.c: At top level: util.c:270:1: error: return type defaults to 'int' [-Wimplicit-int] 270 | RevScroll(screen, amount) | ^~~~~~~~~ util.c: In function 'RevScroll': util.c:329:9: error: implicit declaration of function 'ScrnInsertLine' [-Wimplicit-function-declaration] 329 | ScrnInsertLine (screen->buf, screen->bot_marg, screen->top_marg, | ^~~~~~~~~~~~~~ util.c: At top level: util.c:338:1: error: return type defaults to 'int' [-Wimplicit-int] 338 | InsertLine (screen, n) | ^~~~~~~~~~ util.c: In function 'InsertLine': util.c:352:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 352 | return; | ^~~~~~ util.c:338:1: note: declared here 338 | InsertLine (screen, n) | ^~~~~~~~~~ util.c: At top level: util.c:399:1: error: return type defaults to 'int' [-Wimplicit-int] 399 | DeleteLine(screen, n) | ^~~~~~~~~~ util.c: In function 'DeleteLine': util.c:413:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 413 | return; | ^~~~~~ util.c:399:1: note: declared here 399 | DeleteLine(screen, n) | ^~~~~~~~~~ util.c: At top level: util.c:479:1: error: return type defaults to 'int' [-Wimplicit-int] 479 | InsertChar (screen, n) | ^~~~~~~~~~ util.c: In function 'InsertChar': util.c:489:9: error: implicit declaration of function 'BreakMBchar' [-Wimplicit-function-declaration] 489 | BreakMBchar(screen); | ^~~~~~~~~~~ util.c:505:21: error: implicit declaration of function 'non_blank_line' [-Wimplicit-function-declaration] 505 | if (non_blank_line (screen->buf, screen->cur_row, | ^~~~~~~~~~~~~~ util.c:527:9: error: implicit declaration of function 'ScrnInsertChar'; did you mean 'InsertChar'? [-Wimplicit-function-declaration] 527 | ScrnInsertChar(screen->buf, screen->cur_row, screen->cur_col, n, | ^~~~~~~~~~~~~~ | InsertChar util.c: At top level: util.c:534:1: error: return type defaults to 'int' [-Wimplicit-int] 534 | DeleteChar (screen, n) | ^~~~~~~~~~ util.c: In function 'DeleteChar': util.c:580:9: error: implicit declaration of function 'ScrnDeleteChar'; did you mean 'DeleteChar'? [-Wimplicit-function-declaration] 580 | ScrnDeleteChar (screen->buf, screen->cur_row, screen->cur_col, n, | ^~~~~~~~~~~~~~ | DeleteChar util.c: At top level: util.c:588:1: error: return type defaults to 'int' [-Wimplicit-int] 588 | ClearAbove (screen) | ^~~~~~~~~~ util.c: In function 'ClearAbove': util.c:591:18: error: type defaults to 'int' in declaration of 'top' [-Wimplicit-int] 591 | register top, height; | ^~~ util.c:591:23: error: type defaults to 'int' in declaration of 'height' [-Wimplicit-int] 591 | register top, height; | ^~~~~~ util.c:607:25: error: implicit declaration of function 'ClearLeft' [-Wimplicit-function-declaration] 607 | ClearLeft(screen); | ^~~~~~~~~ util.c:609:9: error: implicit declaration of function 'ClearBufRows' [-Wimplicit-function-declaration] 609 | ClearBufRows(screen, 0, screen->cur_row - 1); | ^~~~~~~~~~~~ util.c: At top level: util.c:615:1: error: return type defaults to 'int' [-Wimplicit-int] 615 | ClearBelow (screen) | ^~~~~~~~~~ util.c: In function 'ClearBelow': util.c:618:18: error: type defaults to 'int' in declaration of 'top' [-Wimplicit-int] 618 | register top; | ^~~ util.c:620:9: error: implicit declaration of function 'ClearRight' [-Wimplicit-function-declaration] 620 | ClearRight(screen); | ^~~~~~~~~~ util.c: At top level: util.c:637:1: error: return type defaults to 'int' [-Wimplicit-int] 637 | ClearRight (screen) | ^~~~~~~~~~ util.c:685:1: error: return type defaults to 'int' [-Wimplicit-int] 685 | ClearLeft (screen) | ^~~~~~~~~ util.c:746:1: error: return type defaults to 'int' [-Wimplicit-int] 746 | ClearLine(screen) | ^~~~~~~~~ util.c:780:1: error: return type defaults to 'int' [-Wimplicit-int] 780 | ClearScreen(screen) | ^~~~~~~~~~~ util.c:807:1: error: return type defaults to 'int' [-Wimplicit-int] 807 | CopyWait(screen) | ^~~~~~~~ util.c: In function 'CopyWait': util.c:818:25: error: implicit declaration of function 'HandleExposure' [-Wimplicit-function-declaration] 818 | HandleExposure (screen, &reply); | ^~~~~~~~~~~~~~ util.c:836:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 836 | return; | ^~~~~~ util.c:807:1: note: declared here 807 | CopyWait(screen) | ^~~~~~~~ util.c: At top level: util.c:928:1: error: return type defaults to 'int' [-Wimplicit-int] 928 | scrolling_copy_area(screen, firstline, nlines, amount) | ^~~~~~~~~~~~~~~~~~~ util.c:944:1: error: return type defaults to 'int' [-Wimplicit-int] 944 | HandleExposure (screen, event) | ^~~~~~~~~~~~~~ util.c: In function 'HandleExposure': util.c:952:16: error: implicit declaration of function 'handle_translated_exposure' [-Wimplicit-function-declaration] 952 | return handle_translated_exposure (screen, reply->x, reply->y, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util.c: At top level: util.c:989:1: error: return type defaults to 'int' [-Wimplicit-int] 989 | handle_translated_exposure (screen, rect_x, rect_y, rect_width, rect_height) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:1043:1: error: return type defaults to 'int' [-Wimplicit-int] 1043 | ReverseVideo (termw) | ^~~~~~~~~~~~ util.c: In function 'ReverseVideo': util.c:1099:9: error: implicit declaration of function 'recolor_cursor'; did you mean 'XRecolorCursor'? [-Wimplicit-function-declaration] 1099 | recolor_cursor (screen->pointer_cursor, | ^~~~~~~~~~~~~~ | XRecolorCursor util.c:1114:17: error: implicit declaration of function 'ScrollBarReverseVideo' [-Wimplicit-function-declaration] 1114 | ScrollBarReverseVideo(screen->scrollWidget); | ^~~~~~~~~~~~~~~~~~~~~ util.c:1138:9: error: implicit declaration of function 'IMSendColor' [-Wimplicit-function-declaration] 1138 | IMSendColor(screen); | ^~~~~~~~~~~ util.c:1141:9: error: implicit declaration of function 'Kinput2SendColor' [-Wimplicit-function-declaration] 1141 | Kinput2SendColor(); | ^~~~~~~~~~~~~~~~ util.c: At top level: util.c:1146:1: error: return type defaults to 'int' [-Wimplicit-int] 1146 | recolor_cursor (cursor, fg, bg) | ^~~~~~~~~~~~~~ util.c: In function 'recolor_cursor': util.c:1159:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1159 | return; | ^~~~~~ util.c:1146:1: note: declared here 1146 | recolor_cursor (cursor, fg, bg) | ^~~~~~~~~~~~~~ util.c: At top level: util.c:1167:1: error: return type defaults to 'int' [-Wimplicit-int] 1167 | BreakMBchar(screen) | ^~~~~~~~~~~ make: *** [: util.o] Error 1 rm -f main.o gcc -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE -DUTMP -DUSE_TTY_GROUP -DOSMAJORVERSION=6 -DOSMINORVERSION=4 main.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from main.c:71: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ main.c:1090:1: error: return type defaults to 'int' [-Wimplicit-int] 1090 | main (argc, argv) | ^~~~ main.c: In function 'main': main.c:1311:27: warning: passing argument 1 of 'XtSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers] 1311 | XtSetErrorHandler(xt_error); | ^~~~~~~~ /usr/include/X11/Intrinsic.h:1775:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)()' 1775 | XtErrorHandler /* handler */ _X_NORETURN | ^ main.c:1577:9: error: implicit declaration of function 'get_terminal' [-Wimplicit-function-declaration] 1577 | get_terminal (); | ^~~~~~~~~~~~ main.c:1578:9: error: implicit declaration of function 'spawn' [-Wimplicit-function-declaration] 1578 | spawn (); | ^~~~~ main.c:1627:17: error: implicit declaration of function 'Error'; did you mean 'xerror'? [-Wimplicit-function-declaration] 1627 | Error(); | ^~~~~ | xerror main.c:1662:25: error: implicit declaration of function 'VTRun' [-Wimplicit-function-declaration] 1662 | VTRun(); | ^~~~~ main.c: At top level: main.c:1684:1: error: return type defaults to 'int' [-Wimplicit-int] 1684 | get_pty (pty) | ^~~~~~~ main.c: In function 'get_pty': main.c:1688:13: error: implicit declaration of function 'openpty'; did you mean 'openat'? [-Wimplicit-function-declaration] 1688 | return (openpty(pty, &tty, ttydev, NULL, NULL)); | ^~~~~~~ | openat main.c:1784:16: error: implicit declaration of function 'pty_search'; did you mean 'bsearch'? [-Wimplicit-function-declaration] 1784 | return pty_search(pty); | ^~~~~~~~~~ | bsearch main.c: At top level: main.c:1851:1: error: return type defaults to 'int' [-Wimplicit-int] 1851 | get_terminal () | ^~~~~~~~~~~~ main.c:2002:1: error: return type defaults to 'int' [-Wimplicit-int] 2002 | spawn () | ^~~~~ main.c: In function 'spawn': main.c:2147:29: error: implicit declaration of function 'SysError'; did you mean 'HsSysError'? [-Wimplicit-function-declaration] 2147 | SysError(ERROR_OPDEVTTY); | ^~~~~~~~ | HsSysError main.c:2227:13: error: implicit declaration of function 'VTInit' [-Wimplicit-function-declaration] 2227 | VTInit(); /* realize now so know window size for tty driver */ | ^~~~~~ main.c:2261:17: error: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration] 2261 | if (tgetent (ptr, resource.term_name) == 1) { | ^~~~~~~ | getenv main.c:2266:21: error: implicit declaration of function 'resize'; did you mean 'dysize'? [-Wimplicit-function-declaration] 2266 | resize (screen, TermName, termcap, newtc); | ^~~~~~ | dysize main.c:2327:9: error: implicit declaration of function 'addToUtmp' [-Wimplicit-function-declaration] 2327 | addToUtmp(ttydev, NULL, screen->respond); | ^~~~~~~~~ main.c:2841:17: error: implicit declaration of function 'Setenv'; did you mean 'setenv'? [-Wimplicit-function-declaration] 2841 | Setenv ("TERM=", TermName); | ^~~~~~ | setenv main.c:3013:19: error: implicit declaration of function 'initgroups' [-Wimplicit-function-declaration] 3013 | initgroups (pw->pw_name, pw->pw_gid); | ^~~~~~~~~~ In file included from main.c:2521: /usr/include/grp.h:201:12: note: previous declaration of 'initgroups' with type 'int(const char *, __gid_t)' {aka 'int(const char *, unsigned int)'} 201 | extern int initgroups (const char *__user, __gid_t __group); | ^~~~~~~~~~ main.c:3084:21: error: implicit declaration of function 'remove_termcap_entry' [-Wimplicit-function-declaration] 3084 | remove_termcap_entry (newtc, ":ti="); | ^~~~~~~~~~~~~~~~~~~~ main.c: In function 'Exit': main.c:3347:13: error: implicit declaration of function 'removeFromUtmp' [-Wimplicit-function-declaration] 3347 | removeFromUtmp(); | ^~~~~~~~~~~~~~ main.c: At top level: main.c:3397:1: error: return type defaults to 'int' [-Wimplicit-int] 3397 | resize(screen, TermName, oldtc, newtc) | ^~~~~~ main.c: In function 'reapchild': main.c:3485:13: error: implicit declaration of function 'Cleanup'; did you mean 'SmsCleanUp'? [-Wimplicit-function-declaration] 3485 | Cleanup (0); | ^~~~~~~ | SmsCleanUp main.c: At top level: main.c:3493:1: error: return type defaults to 'int' [-Wimplicit-int] 3493 | consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) | ^~~~~~~~~ main.c: In function 'consolepr': main.c:3493:1: error: type of 'x0' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x1' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x2' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x3' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x4' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x5' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x6' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x7' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x8' defaults to 'int' [-Wimplicit-int] main.c:3493:1: error: type of 'x9' defaults to 'int' [-Wimplicit-int] main.c: At top level: main.c:3519:1: error: return type defaults to 'int' [-Wimplicit-int] 3519 | remove_termcap_entry (buf, str) | ^~~~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:1595:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1595 | write (screen->respond, buf, strlen (buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'HsSysError': main.c:1965:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1965 | write(pf, (char *) &handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'first_map_occurred': main.c:1977:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1977 | write (pc_pipe[1], (char *) &handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'spawn': main.c:2097:17: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 2097 | setgid (screen->gid); | ^~~~~~~~~~~~~~~~~~~~ main.c:2098:17: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2098 | setuid (screen->uid); | ^~~~~~~~~~~~~~~~~~~~ main.c:2481:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2481 | write(cp_pipe[1], (char *) &handshake, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2482 | sizeof(handshake)); | ~~~~~~~~~~~~~~~~~~ main.c:2525:25: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 2525 | chown (ttydev, screen->uid, ttygrp->gr_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:2530:25: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 2530 | chown (ttydev, screen->uid, screen->gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:2879:36: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 2879 | (void) dup(tty); | ^~~~~~~~ main.c:3006:23: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3006 | (void)write(cp_pipe[1], (char *)&handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:3010:24: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 3010 | (void) setgid (screen->gid); | ^~~~~~~~~~~~~~~~~~~~ main.c:3015:24: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3015 | (void) setuid (screen->uid); | ^~~~~~~~~~~~~~~~~~~~ main.c:3029:23: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3029 | (void)write(cp_pipe[1], (char *)&handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:3215:29: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3215 | write(pc_pipe[1], (char *) &handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:3220:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3220 | write(pc_pipe[1], (char *) &handshake, sizeof(handshake)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'Exit': main.c:3381:17: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 3381 | chown (ttydev, 0, 0); | ^~~~~~~~~~~~~~~~~~~~ main.c:3383:17: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 3383 | chown (ptydev, 0, 0); | ^~~~~~~~~~~~~~~~~~~~ main.c: In function 'consolepr': main.c:3508:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3508 | write(f, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1069: main.o] Error 1 rm -f charproc.o gcc -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE charproc.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from ptyx.h:35, from charproc.c:57: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ charproc.c:106:14: warning: conflicting types for built-in function 'realloc'; expected 'void *(void *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 106 | extern char *realloc(); | ^~~~~~~ charproc.c:82:1: note: 'realloc' is declared in header '' 81 | #include "main.h" +++ |+#include 82 | charproc.c:946:1: error: return type defaults to 'int' [-Wimplicit-int] 946 | doSS(gset) | ^~~~ charproc.c:1005:1: error: return type defaults to 'int' [-Wimplicit-int] 1005 | doLS(gset) | ^~~~ charproc.c:1105:1: error: return type defaults to 'int' [-Wimplicit-int] 1105 | doSJIS() | ^~~~~~ charproc.c: In function 'VTparse': charproc.c:261:57: error: implicit declaration of function 'in_put'; did you mean 'finput'? [-Wimplicit-function-declaration] 261 | #define doinput() (bcnt-- > 0 ? *bptr++ : in_put()) | ^~~~~~ charproc.c:1195:21: note: in expansion of macro 'doinput' 1195 | c = doinput(); | ^~~~~~~ charproc.c:1265:25: error: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration] 1265 | Bell(XkbBI_TerminalBell,0); | ^~~~ | XBell charproc.c:1270:25: error: implicit declaration of function 'CursorBack' [-Wimplicit-function-declaration] 1270 | CursorBack(screen, 1); | ^~~~~~~~~~ charproc.c:1275:25: error: implicit declaration of function 'CarriageReturn' [-Wimplicit-function-declaration] 1275 | CarriageReturn(screen); | ^~~~~~~~~~~~~~ charproc.c:1291:25: error: implicit declaration of function 'Index'; did you mean 'index'? [-Wimplicit-function-declaration] 1291 | Index(screen, 1); | ^~~~~ | index charproc.c:1300:27: error: implicit declaration of function 'xevents' [-Wimplicit-function-declaration] 1300 | xevents(); | ^~~~~~~ charproc.c:1306:43: error: implicit declaration of function 'TabNext' [-Wimplicit-function-declaration] 1306 | screen->cur_col = TabNext(term->tabs, screen->cur_col); | ^~~~~~~ charproc.c:1402:25: error: implicit declaration of function 'InsertChar' [-Wimplicit-function-declaration] 1402 | InsertChar(screen, row); | ^~~~~~~~~~ charproc.c:1413:25: error: implicit declaration of function 'CursorUp'; did you mean 'CursorX'? [-Wimplicit-function-declaration] 1413 | CursorUp(screen, row); | ^~~~~~~~ | CursorX charproc.c:1424:25: error: implicit declaration of function 'CursorDown'; did you mean 'CursorX'? [-Wimplicit-function-declaration] 1424 | CursorDown(screen, row); | ^~~~~~~~~~ | CursorX charproc.c:1432:25: error: implicit declaration of function 'CursorForward' [-Wimplicit-function-declaration] 1432 | CursorForward(screen, row); | ^~~~~~~~~~~~~ charproc.c:1459:25: error: implicit declaration of function 'CursorSet'; did you mean 'CursorX'? [-Wimplicit-function-declaration] 1459 | CursorSet(screen, row-1, col-1, term->flags); | ^~~~~~~~~ | CursorX charproc.c:1479:33: error: implicit declaration of function 'ClearRight' [-Wimplicit-function-declaration] 1479 | ClearRight(screen); | ^~~~~~~~~~ charproc.c:1482:33: error: implicit declaration of function 'ClearBelow' [-Wimplicit-function-declaration] 1482 | ClearBelow(screen); | ^~~~~~~~~~ charproc.c:1488:33: error: implicit declaration of function 'ClearLeft' [-Wimplicit-function-declaration] 1488 | ClearLeft(screen); | ^~~~~~~~~ charproc.c:1491:33: error: implicit declaration of function 'ClearAbove' [-Wimplicit-function-declaration] 1491 | ClearAbove(screen); | ^~~~~~~~~~ charproc.c:1497:33: error: implicit declaration of function 'ClearLine' [-Wimplicit-function-declaration] 1497 | ClearLine(screen); | ^~~~~~~~~ charproc.c:1500:33: error: implicit declaration of function 'ClearScreen' [-Wimplicit-function-declaration] 1500 | ClearScreen(screen); | ^~~~~~~~~~~ charproc.c:1530:25: error: implicit declaration of function 'InsertLine' [-Wimplicit-function-declaration] 1530 | InsertLine(screen, row); | ^~~~~~~~~~ charproc.c:1541:25: error: implicit declaration of function 'DeleteLine' [-Wimplicit-function-declaration] 1541 | DeleteLine(screen, row); | ^~~~~~~~~~ charproc.c:1549:25: error: implicit declaration of function 'DeleteChar' [-Wimplicit-function-declaration] 1549 | DeleteChar(screen, row); | ^~~~~~~~~~ charproc.c:1573:33: error: implicit declaration of function 'unparseseq' [-Wimplicit-function-declaration] 1573 | unparseseq(&reply, screen->respond); | ^~~~~~~~~~ charproc.c:1581:33: error: implicit declaration of function 'TabClear' [-Wimplicit-function-declaration] 1581 | TabClear(term->tabs, screen->cur_col); | ^~~~~~~~ charproc.c:1583:33: error: implicit declaration of function 'TabZonk' [-Wimplicit-function-declaration] 1583 | TabZonk(term->tabs); | ^~~~~~~ charproc.c:1589:25: error: implicit declaration of function 'ansi_modes' [-Wimplicit-function-declaration] 1589 | ansi_modes(term, bitset); | ^~~~~~~~~~ charproc.c:1682:29: error: implicit declaration of function 'FlushScroll' [-Wimplicit-function-declaration] 1682 | FlushScroll(screen); | ^~~~~~~~~~~ charproc.c:1735:25: error: implicit declaration of function 'dpmodes' [-Wimplicit-function-declaration] 1735 | dpmodes(term, bitset); | ^~~~~~~ charproc.c:1752:33: error: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration] 1752 | HideCursor(); | ^~~~~~~~~~ | BadCursor charproc.c:1769:25: error: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration] 1769 | ScrnRefresh(screen, 0, 0, screen->max_row + 1, | ^~~~~~~~~~~ charproc.c:1789:25: error: implicit declaration of function 'CursorSave'; did you mean 'CursorShape'? [-Wimplicit-function-declaration] 1789 | CursorSave(term, &screen->sc); | ^~~~~~~~~~ | CursorShape charproc.c:1795:25: error: implicit declaration of function 'CursorRestore' [-Wimplicit-function-declaration] 1795 | CursorRestore(term, &screen->sc); | ^~~~~~~~~~~~~ charproc.c:1849:25: error: implicit declaration of function 'TabSet' [-Wimplicit-function-declaration] 1849 | TabSet(term->tabs, screen->cur_col); | ^~~~~~ charproc.c:1858:25: error: implicit declaration of function 'RevIndex'; did you mean 'rindex'? [-Wimplicit-function-declaration] 1858 | RevIndex(screen, 1); | ^~~~~~~~ | rindex charproc.c:1883:25: error: implicit declaration of function 'do_osc' [-Wimplicit-function-declaration] 1883 | do_osc(finput); | ^~~~~~ charproc.c:1889:25: error: implicit declaration of function 'VTReset' [-Wimplicit-function-declaration] 1889 | VTReset(TRUE); | ^~~~~~~ charproc.c:1927:25: error: implicit declaration of function 'ToStatus'; did you mean 'Status'? [-Wimplicit-function-declaration] 1927 | ToStatus(col-1); | ^~~~~~~~ | Status charproc.c:1932:25: error: implicit declaration of function 'FromStatus' [-Wimplicit-function-declaration] 1932 | FromStatus(); | ^~~~~~~~~~ charproc.c:1937:25: error: implicit declaration of function 'ShowStatus'; did you mean 'Status'? [-Wimplicit-function-declaration] 1937 | ShowStatus(); | ^~~~~~~~~~ | Status charproc.c:1942:25: error: implicit declaration of function 'HideStatus'; did you mean 'Status'? [-Wimplicit-function-declaration] 1942 | HideStatus(); | ^~~~~~~~~~ | Status charproc.c:1947:25: error: implicit declaration of function 'EraseStatus' [-Wimplicit-function-declaration] 1947 | EraseStatus(); | ^~~~~~~~~~~ charproc.c:1953:25: error: implicit declaration of function 'savemodes' [-Wimplicit-function-declaration] 1953 | savemodes(term); | ^~~~~~~~~ charproc.c:1958:25: error: implicit declaration of function 'restoremodes' [-Wimplicit-function-declaration] 1958 | restoremodes(term); | ^~~~~~~~~~~~ charproc.c: At top level: charproc.c:1969:8: error: return type defaults to 'int' [-Wimplicit-int] 1969 | static finput() | ^~~~~~ charproc.c:1984:1: error: return type defaults to 'int' [-Wimplicit-int] 1984 | v_write(f, d, len) | ^~~~~~~ charproc.c:2131:1: error: return type defaults to 'int' [-Wimplicit-int] 2131 | in_put() | ^~~~~~ charproc.c: In function 'in_put': charproc.c:2146:21: error: implicit declaration of function 'Cleanup' [-Wimplicit-function-declaration] 2146 | Cleanup (0); | ^~~~~~~ charproc.c:2148:21: error: implicit declaration of function 'Panic' [-Wimplicit-function-declaration] 2148 | Panic( | ^~~~~ charproc.c:2176:21: error: implicit declaration of function 'WindowScroll' [-Wimplicit-function-declaration] 2176 | WindowScroll(screen, 0); /* Scroll to bottom */ | ^~~~~~~~~~~~ charproc.c:2193:13: error: implicit declaration of function 'ShowCursor'; did you mean 'CWCursor'? [-Wimplicit-function-declaration] 2193 | ShowCursor(); | ^~~~~~~~~~ | CWCursor charproc.c:2230:17: error: implicit declaration of function 'SysError' [-Wimplicit-function-declaration] 2230 | SysError(ERROR_SELECT); | ^~~~~~~~ charproc.c: In function 'WriteText': charproc.c:2377:9: error: implicit declaration of function 'BreakMBchar' [-Wimplicit-function-declaration] 2377 | BreakMBchar(screen); | ^~~~~~~~~~~ charproc.c:2382:9: error: implicit declaration of function 'ScreenWrite' [-Wimplicit-function-declaration] 2382 | ScreenWrite(screen, str, flags, gset, len); | ^~~~~~~~~~~ charproc.c:2385:23: error: implicit declaration of function 'AddToRefresh' [-Wimplicit-function-declaration] 2385 | if (!(AddToRefresh(screen))) { | ^~~~~~~~~~~~ charproc.c:2388:25: error: implicit declaration of function 'ScreenDraw' [-Wimplicit-function-declaration] 2388 | ScreenDraw(screen, screen->cur_row, screen->cur_col, | ^~~~~~~~~~ charproc.c: At top level: charproc.c:2483:1: error: return type defaults to 'int' [-Wimplicit-int] 2483 | ansi_modes(termw, func) | ^~~~~~~~~~ charproc.c:2506:1: error: return type defaults to 'int' [-Wimplicit-int] 2506 | dpmodes(termw, func) | ^~~~~~~ charproc.c: In function 'dpmodes': charproc.c:2554:45: error: implicit declaration of function 'ScreenResize' [-Wimplicit-function-declaration] 2554 | ScreenResize (&termw->screen, | ^~~~~~~~~~~~ charproc.c:2577:33: error: implicit declaration of function 'ReverseVideo'; did you mean 'XtCReverseVideo'? [-Wimplicit-function-declaration] 2577 | ReverseVideo(termw); | ^~~~~~~~~~~~ | XtCReverseVideo charproc.c: At top level: charproc.c:2686:1: error: return type defaults to 'int' [-Wimplicit-int] 2686 | savemodes(termw) | ^~~~~~~~~ charproc.c:2757:1: error: return type defaults to 'int' [-Wimplicit-int] 2757 | restoremodes(termw) | ^~~~~~~~~~~~ charproc.c:2914:1: error: return type defaults to 'int' [-Wimplicit-int] 2914 | unparseseq(ap, fd) | ^~~~~~~~~~ charproc.c: In function 'unparseseq': charproc.c:2924:17: error: implicit declaration of function 'unparseputc' [-Wimplicit-function-declaration] 2924 | unparseputc(ESC, fd); | ^~~~~~~~~~~ charproc.c:2935:25: error: implicit declaration of function 'unparseputn' [-Wimplicit-function-declaration] 2935 | unparseputn((unsigned int) ap->a_param[i], fd); | ^~~~~~~~~~~ charproc.c: At top level: charproc.c:2947:1: error: return type defaults to 'int' [-Wimplicit-int] 2947 | unparseputn(n, fd) | ^~~~~~~~~~~ charproc.c:2959:1: error: return type defaults to 'int' [-Wimplicit-int] 2959 | unparseputc(c, fd) | ^~~~~~~~~~~ charproc.c: In function 'unparseputc': charproc.c:2964:18: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 2964 | register i = 1; | ^ charproc.c: At top level: charproc.c:2974:1: error: return type defaults to 'int' [-Wimplicit-int] 2974 | unparsefputs (s, fd) | ^~~~~~~~~~~~ charproc.c: In function 'SwitchBufs': charproc.c:3021:9: error: implicit declaration of function 'SwitchBufPtrs'; did you mean 'SwitchBufs'? [-Wimplicit-function-declaration] 3021 | SwitchBufPtrs(screen); | ^~~~~~~~~~~~~ | SwitchBufs charproc.c:3022:9: error: implicit declaration of function 'TrackText' [-Wimplicit-function-declaration] 3022 | TrackText(0, 0, 0, 0); /* remove any highlighting */ | ^~~~~~~~~ charproc.c: At top level: charproc.c:3048:1: error: return type defaults to 'int' [-Wimplicit-int] 3048 | SwitchBufPtrs(screen) | ^~~~~~~~~~~~~ charproc.c:3073:1: error: return type defaults to 'int' [-Wimplicit-int] 3073 | VTRun() | ^~~~~ charproc.c: In function 'VTRun': charproc.c:3079:9: error: implicit declaration of function 'VTInit' [-Wimplicit-function-declaration] 3079 | VTInit (); | ^~~~~~ charproc.c: In function 'VTExpose': charproc.c:3129:17: error: implicit declaration of function 'HandleExposure'; did you mean 'HandleSecure'? [-Wimplicit-function-declaration] 3129 | HandleExposure (screen, event); | ^~~~~~~~~~~~~~ | HandleSecure charproc.c: In function 'VTInitialize': charproc.c:3363:4: error: implicit declaration of function 'set_character_class' [-Wimplicit-function-declaration] 3363 | set_character_class (new->screen.charClass); | ^~~~~~~~~~~~~~~~~~~ charproc.c:3366:4: error: implicit declaration of function 'ScrollBarOn' [-Wimplicit-function-declaration] 3366 | ScrollBarOn (new, TRUE, FALSE); | ^~~~~~~~~~~ charproc.c: In function 'VTRealize': charproc.c:3409:9: error: implicit declaration of function 'TabReset' [-Wimplicit-function-declaration] 3409 | TabReset (term->tabs); | ^~~~~~~~ charproc.c:3416:14: error: implicit declaration of function 'LoadNewFont'; did you mean 'XLoadFont'? [-Wimplicit-function-declaration] 3416 | if (!LoadNewFont(screen, False, 0)) { | ^~~~~~~~~~~ | XLoadFont charproc.c:3447:13: error: implicit declaration of function 'Exit'; did you mean 'exit'? [-Wimplicit-function-declaration] 3447 | Exit (1); | ^~~~ | exit charproc.c:3456:11: error: implicit declaration of function 'recolor_cursor'; did you mean 'XRecolorCursor'? [-Wimplicit-function-declaration] 3456 | recolor_cursor (screen->pointer_cursor, | ^~~~~~~~~~~~~~ | XRecolorCursor charproc.c:3556:9: error: implicit declaration of function 'set_cursor_gcs' [-Wimplicit-function-declaration] 3556 | set_cursor_gcs (screen, F_ISO8859_1); | ^~~~~~~~~~~~~~ charproc.c:3564:9: error: implicit declaration of function 'setupgset' [-Wimplicit-function-declaration] 3564 | setupgset(); | ^~~~~~~~~ charproc.c:3617:9: error: implicit declaration of function 'set_vt_box' [-Wimplicit-function-declaration] 3617 | set_vt_box (screen); | ^~~~~~~~~~ charproc.c: In function 'VTSetValues': charproc.c:3849:13: error: implicit declaration of function 'ScrollBarOff' [-Wimplicit-function-declaration] 3849 | ScrollBarOff (&newvt->screen); | ^~~~~~~~~~~~ charproc.c: At top level: charproc.c:3876:1: error: return type defaults to 'int' [-Wimplicit-int] 3876 | ShowCursor() | ^~~~~~~~~~ charproc.c: In function 'ShowCursor': charproc.c:3888:34: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 3888 | if (eventMode != NORMAL) return; | ^~~~~~ charproc.c:3876:1: note: declared here 3876 | ShowCursor() | ^~~~~~~~~~ charproc.c:3896:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 3896 | return; | ^~~~~~ charproc.c:3876:1: note: declared here 3876 | ShowCursor() | ^~~~~~~~~~ charproc.c:3990:9: error: implicit declaration of function 'IMSendSpot' [-Wimplicit-function-declaration] 3990 | IMSendSpot(screen); | ^~~~~~~~~~ charproc.c:3993:9: error: implicit declaration of function 'Kinput2SendSpot' [-Wimplicit-function-declaration] 3993 | Kinput2SendSpot(); | ^~~~~~~~~~~~~~~ charproc.c: At top level: charproc.c:4000:1: error: return type defaults to 'int' [-Wimplicit-int] 4000 | HideCursor() | ^~~~~~~~~~ charproc.c: In function 'HideCursor': charproc.c:4021:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 4021 | return; | ^~~~~~ charproc.c:4000:1: note: declared here 4000 | HideCursor() | ^~~~~~~~~~ charproc.c: At top level: charproc.c:4090:1: error: return type defaults to 'int' [-Wimplicit-int] 4090 | VTReset(full) | ^~~~~~~ charproc.c:4172:1: error: return type defaults to 'int' [-Wimplicit-int] 4172 | ToStatus(col) | ^~~~~~~~ charproc.c:4191:1: error: return type defaults to 'int' [-Wimplicit-int] 4191 | FromStatus() | ^~~~~~~~~~ charproc.c: In function 'FromStatus': charproc.c:4196:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 4196 | return; | ^~~~~~ charproc.c:4191:1: note: declared here 4191 | FromStatus() | ^~~~~~~~~~ charproc.c: At top level: charproc.c:4201:1: error: return type defaults to 'int' [-Wimplicit-int] 4201 | ShowStatus() | ^~~~~~~~~~ charproc.c: In function 'ShowStatus': charproc.c:4206:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 4206 | return; | ^~~~~~ charproc.c:4201:1: note: declared here 4201 | ShowStatus() | ^~~~~~~~~~ charproc.c:4208:9: error: implicit declaration of function 'DoResizeScreen' [-Wimplicit-function-declaration] 4208 | DoResizeScreen(term); | ^~~~~~~~~~~~~~ charproc.c:4210:17: error: implicit declaration of function 'ResizeScrollBar' [-Wimplicit-function-declaration] 4210 | ResizeScrollBar(screen->scrollWidget, -1, -1, | ^~~~~~~~~~~~~~~ charproc.c: At top level: charproc.c:4214:1: error: return type defaults to 'int' [-Wimplicit-int] 4214 | HideStatus() | ^~~~~~~~~~ charproc.c: In function 'HideStatus': charproc.c:4222:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 4222 | return; | ^~~~~~ charproc.c:4214:1: note: declared here 4214 | HideStatus() | ^~~~~~~~~~ charproc.c: At top level: charproc.c:4240:1: error: return type defaults to 'int' [-Wimplicit-int] 4240 | EraseStatus() | ^~~~~~~~~~~ charproc.c: In function 'EraseStatus': charproc.c:4251:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 4251 | return; | ^~~~~~ charproc.c:4240:1: note: declared here 4240 | EraseStatus() | ^~~~~~~~~~~ charproc.c: At top level: charproc.c:4268:1: error: return type defaults to 'int' [-Wimplicit-int] 4268 | StatusBox(screen) | ^~~~~~~~~ charproc.c: In function 'set_character_class': charproc.c:4355:24: error: implicit declaration of function 'SetCharacterClassRange' [-Wimplicit-function-declaration] 4355 | } else if (SetCharacterClassRange (low, high, acc) != 0) { | ^~~~~~~~~~~~~~~~~~~~~~ charproc.c: In function 'HandleBell': charproc.c:4427:36: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 4427 | int percent = (*param_count) ? atoi(params[0]) : 0; | ^~~~ charproc.c: In function 'HandleVisualBell': charproc.c:4445:5: error: implicit declaration of function 'VisualBell'; did you mean 'XtCVisualBell'? [-Wimplicit-function-declaration] 4445 | VisualBell(); | ^~~~~~~~~~ | XtCVisualBell charproc.c: In function 'LoadNewFont': charproc.c:4881:5: error: implicit declaration of function 'IMSendFonts' [-Wimplicit-function-declaration] 4881 | IMSendFonts(screen); | ^~~~~~~~~~~ charproc.c:4884:5: error: implicit declaration of function 'Kinput2SendFonts' [-Wimplicit-function-declaration] 4884 | Kinput2SendFonts(); | ^~~~~~~~~~~~~~~~ charproc.c: In function 'update_font_info': charproc.c:5094:9: error: implicit declaration of function 'Redraw' [-Wimplicit-function-declaration] 5094 | Redraw (); | ^~~~~~ charproc.c:5098:5: error: implicit declaration of function 'set_vt_graphics' [-Wimplicit-function-declaration] 5098 | set_vt_graphics (screen); | ^~~~~~~~~~~~~~~ charproc.c: At top level: charproc.c:5102:1: error: return type defaults to 'int' [-Wimplicit-int] 5102 | set_vt_box (screen) | ^~~~~~~~~~ charproc.c: In function 'set_vt_box': charproc.c:5120:9: error: implicit declaration of function 'set_vt_box_per_gset' [-Wimplicit-function-declaration] 5120 | set_vt_box_per_gset(screen); | ^~~~~~~~~~~~~~~~~~~ charproc.c: At top level: charproc.c:5133:1: error: return type defaults to 'int' [-Wimplicit-int] 5133 | set_vt_graphics (screen) | ^~~~~~~~~~~~~~~ charproc.c:5255:1: error: return type defaults to 'int' [-Wimplicit-int] 5255 | set_cursor_gcs (screen, fnum) | ^~~~~~~~~~~~~~ make: *** [Makefile:1093: charproc.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.nxIaXi (%build) RPM build warnings: %patchN is deprecated (6 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.nxIaXi (%build) I: [iurt_root_command] ERROR: chroot