diff -Nru linux86-0.16.17/debian/changelog linux86-0.16.17/debian/changelog --- linux86-0.16.17/debian/changelog 2024-05-05 17:26:06.000000000 +0200 +++ linux86-0.16.17/debian/changelog 2024-10-04 08:02:45.000000000 +0200 @@ -1,3 +1,10 @@ +linux86 (0.16.17-3.7) unstable; urgency=medium + + * Non-maintainer upload. + * Fix function declarations. Closes: #1075226 + + -- Bastian Germann Fri, 04 Oct 2024 08:02:45 +0200 + linux86 (0.16.17-3.6) unstable; urgency=medium * Non-maintainer upload. diff -Nru linux86-0.16.17/debian/.debhelper/generated/bin86/installed-by-dh_installman linux86-0.16.17/debian/.debhelper/generated/bin86/installed-by-dh_installman --- linux86-0.16.17/debian/.debhelper/generated/bin86/installed-by-dh_installman 2024-05-05 17:26:06.000000000 +0200 +++ linux86-0.16.17/debian/.debhelper/generated/bin86/installed-by-dh_installman 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ -./debian/man/ar86.1 -./debian/man/objdump86.1 -./debian/man/ar86.1 -./debian/man/objdump86.1 -./debian/man/ar86.1 -./debian/man/objdump86.1 -./debian/man/ar86.1 -./debian/man/objdump86.1 diff -Nru linux86-0.16.17/debian/patches/function-declaration.patch linux86-0.16.17/debian/patches/function-declaration.patch --- linux86-0.16.17/debian/patches/function-declaration.patch 1970-01-01 01:00:00.000000000 +0100 +++ linux86-0.16.17/debian/patches/function-declaration.patch 2024-10-04 08:02:45.000000000 +0200 @@ -0,0 +1,91 @@ +Description: Fix missing/conflicting function declarations +Author: Bastian Germann +Bug-Debian: https://bugs.debian.org/1075226 +--- +--- linux86-0.16.17.orig/cpp/cpp.c ++++ linux86-0.16.17/cpp/cpp.c +@@ -545,7 +545,7 @@ chget() + } + + static void +-unchget(ch) ++unchget(int ch) + { + #if CPP_DEBUG + fprintf(stderr, "\b", ch); +--- linux86-0.16.17.orig/ld/dumps.c ++++ linux86-0.16.17/ld/dumps.c +@@ -6,6 +6,7 @@ + #include "obj.h" + #include "type.h" + #include "globvar.h" ++#include + + /* print list of modules and whether they are loaded */ + +--- linux86-0.16.17.orig/unproto/Makefile ++++ linux86-0.16.17/unproto/Makefile +@@ -83,7 +83,7 @@ OBJECTS = tok_io.o tok_class.o tok_pool. + + CFLAGS = -O + LDFLAGS = +-CCFLAGS = $(CFLAGS) -w $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DREOPEN ++CCFLAGS = $(CFLAGS) -w $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DREOPEN -Wno-error=implicit-function-declaration + + #CFLAGS = -O $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -p -Dstatic= + #CFLAGS = -g $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DDEBUG +--- linux86-0.16.17.orig/unproto/symbol.c ++++ linux86-0.16.17/unproto/symbol.c +@@ -42,6 +42,7 @@ static char symbol_sccsid[] = "@(#) symb + + /* C library */ + ++#include + extern char *strcpy(); + extern char *malloc(); + +--- linux86-0.16.17.orig/unproto/tok_class.c ++++ linux86-0.16.17/unproto/tok_class.c +@@ -49,6 +49,7 @@ static char class_sccsid[] = "@(#) tok_c + /* C library */ + + #include ++#include + + extern char *strcpy(); + extern long time(); +--- linux86-0.16.17.orig/unproto/tok_io.c ++++ linux86-0.16.17/unproto/tok_io.c +@@ -79,11 +79,11 @@ static char io_sccsid[] = "@(#) tok_io.c + /* C library */ + + #include ++#include ++#include + #include + + extern char *strchr(); +-extern char *malloc(); +-extern char *realloc(); + extern char *strcpy(); + + /* Application-specific stuff */ +@@ -189,7 +189,7 @@ static char *ignore_directives[] = { + + /* do_control - parse control line */ + +-static int do_control() ++static void do_control() + { + struct token *t; + int line; +--- linux86-0.16.17.orig/unproto/unproto.c ++++ linux86-0.16.17/unproto/unproto.c +@@ -137,6 +137,7 @@ static char unproto_sccsid[] = "@(#) unp + #include + #include + #include ++#include + #include + + extern void exit(); diff -Nru linux86-0.16.17/debian/patches/makefile.in.patch linux86-0.16.17/debian/patches/makefile.in.patch --- linux86-0.16.17/debian/patches/makefile.in.patch 1970-01-01 01:00:00.000000000 +0100 +++ linux86-0.16.17/debian/patches/makefile.in.patch 2024-10-04 08:02:45.000000000 +0200 @@ -0,0 +1,11 @@ +--- linux86-0.16.17.orig/makefile.in ++++ linux86-0.16.17/makefile.in +@@ -39,7 +39,7 @@ WALL =-Wall -Wtraditional -Wshadow -Wid + -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls \ + -Wnested-externs -Winline + +-WALL =-Wall -Wstrict-prototypes ++WALL =-Wall -Wstrict-prototypes -Wno-error=implicit-function-declaration + + CC =%CC% + CFLAGS =$(GCCFLAG) $(WALL) -O2 -g diff -Nru linux86-0.16.17/debian/patches/missing-includes.patch linux86-0.16.17/debian/patches/missing-includes.patch --- linux86-0.16.17/debian/patches/missing-includes.patch 1970-01-01 01:00:00.000000000 +0100 +++ linux86-0.16.17/debian/patches/missing-includes.patch 2024-10-04 08:02:45.000000000 +0200 @@ -0,0 +1,15 @@ +Description: Add missing includes +Author: Bastian Germann +Bug-Debian: https://bugs.debian.org/1075226 +--- +--- linux86-0.16.17.orig/bcc/dbprintf.c ++++ linux86-0.16.17/bcc/dbprintf.c +@@ -1,6 +1,8 @@ + + #include + #include ++#include ++#include + + #if defined(__STDC__) && !defined(__FIRST_ARG_IN_AX__) + #include diff -Nru linux86-0.16.17/debian/patches/series linux86-0.16.17/debian/patches/series --- linux86-0.16.17/debian/patches/series 2024-02-21 14:47:40.000000000 +0100 +++ linux86-0.16.17/debian/patches/series 2024-10-04 08:02:45.000000000 +0200 @@ -1 +1,5 @@ debian.patch +vdbprintf-declaration.patch +missing-includes.patch +function-declaration.patch +makefile.in.patch diff -Nru linux86-0.16.17/debian/patches/vdbprintf-declaration.patch linux86-0.16.17/debian/patches/vdbprintf-declaration.patch --- linux86-0.16.17/debian/patches/vdbprintf-declaration.patch 1970-01-01 01:00:00.000000000 +0100 +++ linux86-0.16.17/debian/patches/vdbprintf-declaration.patch 2024-10-04 08:02:45.000000000 +0200 @@ -0,0 +1,15 @@ +Description: Declare vdbprintf before using it +Author: Bastian Germann +Bug-Debian: https://bugs.debian.org/1075226 +--- +--- linux86-0.16.17.orig/bcc/dbprintf.c ++++ linux86-0.16.17/bcc/dbprintf.c +@@ -10,6 +10,8 @@ + #define va_strt(p,i) va_start(p) + #endif + ++int vdbprintf(register __const char *, register va_list); ++ + #if defined(__STDC__) && !defined(__FIRST_ARG_IN_AX__) + int dbprintf(const char * fmt, ...) + #else