Building with sys-devel/clang-16.0.0_pre20230107 fails with: > ifdef.c:63:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in > C2x [-Werror,-Wdeprecated-non-prototype] > main(argc, argv) > ^ > ifdef.c:109:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > void Usage(prog) > ^ > ifdef.c:129:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > save_name(varname, state) > ^ > ifdef.c:155:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > do_file(fname) > ^ > ifdef.c:195:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > set_line(lineno) > ^ > ifdef.c:256:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > do_ifdef(p, which) > ^ > ifdef.c:373:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > check_name(nm) > ^ > ifdef.c:399:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported > in C2x [-Werror,-Wdeprecated-non-prototype] > fatal(msg) > ^ > 8 errors generated.
this should be reported upstream with a patch. There are forks which are still maintained and who likely will merge it.
(In reply to Jonas Stein from comment #1) > this should be reported upstream with a patch. There are forks which are > still maintained and who likely will merge it. I'm working on several bugs for this package, including this one. The list of forks: https://techgaun.github.io/active-forks/index.html#lkundrak/dev86 I assume the jbruchon fork would be the best choice.
Created attachment 850368 [details, diff] dev86-clang16.patch I started this with the best of intentions but I don't think I can devote much more time to this. Aside from the clang-16 issues, there were a number of bcc runtime parsing errors that I'm not inclined to debug. I've attached the clang-16 fixes if anyone wants to continue.