int bwaddstr(str, win) char *str; WINDOW *win; {waddstr(win, str);return 0;} ^ crs.c:54:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sizet bwwrite(str, siz, num, win) ^ crs.c:72:3: error: incompatible function pointer types initializing 'int (*)(FILE *)' (aka 'int (*)(struct _IO_FILE *)') with an expression of type 'int (WINDOW *)' (aka 'int (struct _win_st *)') ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j4-20221211-150005 ------------------------------------------------------------------- CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.6 Python 3.10.9 Available Rust versions: [1] rust-bin-1.65.0 * The following VMs are available for generation-2: 1) OpenJDK 17.0.5_p8 [openjdk-17] 2) Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17] 4) Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-17 [2] openjdk-bin-8 [3] openjdk-bin-11 [4] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): [1] php8.2 * HEAD of ::gentoo commit 99de764a300d78f7afb77a8733e3bc03401df056 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Dec 12 16:16:53 2022 +0000 2022-12-12 16:16:53 UTC emerge -qpvO dev-scheme/scm [ebuild N ] dev-scheme/scm-5.5.6-r4 USE="ncurses readline -arrays -bignums -cautious -dynamic-linking -engineering-notation -gsubr -inexact -ioext -libscm -macro -posix -regex -sockets -unix"
Created attachment 842117 [details] emerge-info.txt
Created attachment 842119 [details] dev-scheme:scm-5.5.6-r4:20221212-171149.log.bz2
Created attachment 842121 [details] emerge-history.txt
Created attachment 842123 [details] environment
Created attachment 842125 [details] etc.clang.tar.bz2
Created attachment 842127 [details] etc.portage.tar.bz2
Created attachment 842129 [details] temp.tar.bz2
Ebuild is outdated: - e-build scm version is scm-5e6 (August 2009) - Current scm version is scm-5f3 (2020-02-16)
tinderbox-stable has reproduced this issue in a STABLE environment with version 5.5.6-r4
(In reply to Lukas Schmelting from comment #8) > Ebuild is outdated: > - e-build scm version is scm-5e6 (August 2009) > - Current scm version is scm-5f3 (2020-02-16) I started looking at this and ran into some other issue.. it's somewhere in my 'git stash' stack.
As far as I understand this, those functions are assigned to struct for function pointers: typedef struct { char *name; SCM (*mark)P((SCM ptr)); int (*free)P((FILE *p)); int (*print)P((SCM exp, SCM port, int writing)); SCM (*equalp)P((SCM, SCM)); int (*fputc)P((int c, FILE *p)); int (*fputs)P((const char *s, FILE *p)); sizet (*fwrite)P((const void *s, sizet siz, sizet num, FILE *p)); int (*fflush)P((FILE *stream)); int (*fgetc)P((FILE *p)); int (*fclose)P((FILE *p)); int (*ungetc)P((int c, SCM p)); } ptobfuns; and all FILE*/WINDOW* handles are opaque and could be replaced by void * in function declarations. My understanding may be flawed.