Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/o/ocaml-curses/ocaml-curses_1.0.6-2_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/ocaml-curses-1.0.6-2vqce9pm6/ocaml-curses_1.0.6-2_amd64.buildinfo Get source package info: ocaml-curses=1.0.6-2 Source URL: http://snapshot.notset.fr/mr/package/ocaml-curses/1.0.6-2/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.2-4 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.48 bash=5.0-7 binutils=2.35.1-2 binutils-common=2.35.1-2 binutils-x86-64-linux-gnu=2.35.1-2 bsdextrautils=2.36-3+b1 bsdutils=1:2.36-3+b1 build-essential=12.8 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.0-1 cpp-10=10.2.0-15 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13.2.1 debianutils=4.11.2 dh-autoreconf=19 dh-ocaml=1.1.3 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-3 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13-5 file=1:5.38-5 findutils=4.7.0-1 g++=4:10.2.0-1 g++-10=10.2.0-15 gcc=4:10.2.0-1 gcc-10=10.2.0-15 gcc-10-base=10.2.0-15 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.58 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libarchive-zip-perl=1.68-1 libasan6=10.2.0-15 libatomic1=10.2.0-15 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libbinutils=2.35.1-2 libblkid1=2.36-3+b1 libbz2-1.0=1.0.8-4 libc-bin=2.31-4 libc-dev-bin=2.31-4 libc6=2.31-4 libc6-dev=2.31-4 libcap-ng0=0.7.9-2.2 libcc1-0=10.2.0-15 libcom-err2=1.45.6-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-2 libctf0=2.35.1-2 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.254 libdebhelper-perl=13.2.1 libdpkg-perl=1.20.5 libelf1=0.181-1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.9.0-1 libfindlib-ocaml=1.8.1-2 libgcc-10-dev=10.2.0-15 libgcc-s1=10.2.0-15 libgcrypt20=1.8.6-2 libgdbm-compat4=1.18.1-5.1 libgdbm6=1.18.1-5.1 libglib2.0-0=2.66.1-1 libgmp10=2:6.2.0+dfsg-6 libgomp1=10.2.0-15 libgpg-error0=1.38-2 libgssapi-krb5-2=1.17-10 libicu67=67.1-4 libisl22=0.22.1-1 libitm1=10.2.0-15 libk5crypto3=1.17-10 libkeyutils1=1.6.1-2 libkrb5-3=1.17-10 libkrb5support0=1.17-10 liblsan0=10.2.0-15 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-5 libmagic1=1:5.38-5 libmount1=2.36-3+b1 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libncurses-dev=6.2+20200918-1 libncurses6=6.2+20200918-1 libncursesw5-dev=6.2+20200918-1 libncursesw6=6.2+20200918-1 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libnss-nis=3.1-3 libnss-nisplus=1.3-3 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcre2-8-0=10.34-7 libpcre3=2:8.39-13 libperl5.30=5.30.3-4 libpipeline1=1.5.3-1 libquadmath0=10.2.0-15 libseccomp2=2.4.4-1 libselinux1=3.1-2 libsigsegv2=2.12-2 libsmartcols1=2.36-3+b1 libssl1.1=1.1.1h-1 libstdc++-10-dev=10.2.0-15 libstdc++6=10.2.0-15 libsub-override-perl=0.09-2 libsystemd0=246.6-1 libtinfo6=6.2+20200918-1 libtirpc-common=1.2.6-2 libtirpc-dev=1.2.6-2 libtirpc3=1.2.6-2 libtool=2.4.6-14 libtsan0=10.2.0-15 libubsan1=10.2.0-15 libuchardet0=0.0.7-1 libudev1=246.6-1 libunistring2=0.9.10-4 libuuid1=2.36-3+b1 libxml2=2.9.10+dfsg-6 libzstd1=1.4.5+dfsg-4 linux-libc-dev=5.8.14-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 ncurses-base=6.2+20200918-1 ncurses-bin=6.2+20200918-1 ocaml-base-nox=4.11.1-3 ocaml-compiler-libs=4.11.1-3 ocaml-findlib=1.8.1-2 ocaml-interp=4.11.1-3 ocaml-nox=4.11.1-3 patch=2.7.6-6 perl=5.30.3-4 perl-base=5.30.3-4 perl-modules-5.30=5.30.3-4 po-debconf=1.0.21 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-5 tar=1.30+dfsg-7 util-linux=2.36-3+b1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201016T150844Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20201011T210159Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d ocaml-curses=1.0.6-2 && mkdir -p /build/ocaml-curses-LPobBK && dpkg-source --no-check -x /*.dsc /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6 && chown -R builduser:builduser /build/ocaml-curses-LPobBK" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1602586504" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/ocaml-curses-LPobBK /tmp/ocaml-curses-1.0.6-2vqce9pm6 bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20201011T210159Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.HgMIlhAzHN as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.HgMIlhAzHN Reading package lists... Building dependency tree... util-linux is already the newest version (2.36-3+b1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20201011T210159Z unstable/main amd64 libfakeroot amd64 1.25.3-1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20201011T210159Z unstable/main amd64 fakeroot amd64 1.25.3-1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (630 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4592 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1_amd64.deb ... Unpacking fakeroot (1.25.3-1) ... Setting up libfakeroot:amd64 (1.25.3-1) ... Setting up fakeroot (1.25.3-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-4) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201016T150844Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20201011T210159Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.HgMIlhAzHN Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Get:2 http://snapshot.notset.fr/archive/debian/20201016T150844Z unstable InRelease [146 kB] Hit:3 http://snapshot.notset.fr/archive/debian/20201011T210159Z unstable InRelease Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Ign:6 http://snapshot.notset.fr/archive/debian/20201016T150844Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20201016T150844Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20201016T150844Z unstable/main amd64 Packages Get:6 http://snapshot.notset.fr/archive/debian/20201016T150844Z unstable/main amd64 Packages [11.4 MB] Fetched 34.1 MB in 43s (787 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.HgMIlhAzHN I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d ocaml-curses=1.0.6-2 && mkdir -p /build/ocaml-curses-LPobBK && dpkg-source --no-check -x /*.dsc /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6 && chown -R builduser:builduser /build/ocaml-curses-LPobBK"' exec /tmp/mmdebstrap.HgMIlhAzHN Reading package lists... NOTICE: 'ocaml-curses' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/ocaml-team/ocaml-curses.git Please use: git clone https://salsa.debian.org/ocaml-team/ocaml-curses.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 97.1 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ocaml-curses 1.0.6-2 (dsc) [1805 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ocaml-curses 1.0.6-2 (tar) [91.2 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ocaml-curses 1.0.6-2 (diff) [4096 B] Fetched 97.1 kB in 0s (548 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'ocaml-curses_1.0.6-2.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting ocaml-curses in /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6 dpkg-source: info: unpacking ocaml-curses_1.0.6.orig.tar.gz dpkg-source: info: unpacking ocaml-curses_1.0.6-2.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1602586504" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.HgMIlhAzHN dpkg-buildpackage: info: source package ocaml-curses dpkg-buildpackage: info: source version 1.0.6-2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Stéphane Glondu dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --with ocaml dh_ocamlclean dh_clean debian/rules binary-arch dh binary-arch --with ocaml dh_update_autotools_config -a dh_autoreconf -a dh_ocamlinit -a debian/rules override_dh_auto_configure make[1]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ./configure --enable-widec checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for working ncurses library... found in -lncursesw checking for term.h... found in checking for wide character support in ncurses library... yes checking for resizeterm... yes checking for resize_term... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.ml config.status: creating config.h make[1]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' debian/rules override_dh_auto_build make[1]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' /usr/bin/make CFLAGS="-O2 -g -fPIC -DHAVE_CONFIG_H" byte make[2]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[3]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ocamldep curses.mli > ._bcdi/curses.di ocamldep -pp "gcc -x c -E " curses.ml > ._d/curses.d ocamldep keys.ml > ._d/keys.d ocamlc -c -cc "gcc" -ccopt "-fPIC -O2 -g -fPIC -DHAVE_CONFIG_H \ -DPIC -Wdate-time -D_FORTIFY_SOURCE=2 \ -o ml_curses.o " ml_curses.c In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_getstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:195:6: note: in expansion of macro ‘r_err’ 195 | BEG1 r_err(getnstr(a_string(aa),string_length(aa))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:195:20: note: in expansion of macro ‘a_string’ 195 | BEG1 r_err(getnstr(a_string(aa),string_length(aa))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_wgetstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:197:6: note: in expansion of macro ‘r_err’ 197 | BEG2 r_err(wgetnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:197:34: note: in expansion of macro ‘a_string’ 197 | BEG2 r_err(wgetnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvgetstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:199:6: note: in expansion of macro ‘r_err’ 199 | BEG3 r_err(mvgetnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:199:42: note: in expansion of macro ‘a_string’ 199 | BEG3 r_err(mvgetnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvwgetstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:201:6: note: in expansion of macro ‘r_err’ 201 | BEG4 r_err(mvwgetnstr(a_window(aa),a_int(ab),a_int(ac),a_string(ad), | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:201:56: note: in expansion of macro ‘a_string’ 201 | BEG4 r_err(mvwgetnstr(a_window(aa),a_int(ab),a_int(ac),a_string(ad), | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_getnstr’: functions.c:204:32: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 204 | BEG3 r_err(getnstr(a_string(aa)+a_int(ab),a_int(ac))); END /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:204:6: note: in expansion of macro ‘r_err’ 204 | BEG3 r_err(getnstr(a_string(aa)+a_int(ab),a_int(ac))); END | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_wgetnstr’: functions.c:206:46: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 206 | BEG4 r_err(wgetnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:206:6: note: in expansion of macro ‘r_err’ 206 | BEG4 r_err(wgetnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvgetnstr’: functions.c:208:54: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 208 | BEG5 r_err(mvgetnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad), | ^ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:208:6: note: in expansion of macro ‘r_err’ 208 | BEG5 r_err(mvgetnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad), | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvwgetnstr_native’: functions.c:211:68: warning: passing argument 2 of ‘wgetnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 211 | BEG6 r_err(mvwgetnstr(a_window(aa),a_int(ab),a_int(ac),a_string(ad)+a_int(ae), | ^ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:211:6: note: in expansion of macro ‘r_err’ 211 | BEG6 r_err(mvwgetnstr(a_window(aa),a_int(ab),a_int(ac),a_string(ad)+a_int(ae), | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:806:47: note: expected ‘char *’ but argument is of type ‘const char *’ 806 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_instr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:337:6: note: in expansion of macro ‘r_err’ 337 | BEG1 r_err(innstr(a_string(aa),string_length(aa))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:337:19: note: in expansion of macro ‘a_string’ 337 | BEG1 r_err(innstr(a_string(aa),string_length(aa))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_winstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:339:6: note: in expansion of macro ‘r_err’ 339 | BEG2 r_err(winnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:339:33: note: in expansion of macro ‘a_string’ 339 | BEG2 r_err(winnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvinstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:341:6: note: in expansion of macro ‘r_err’ 341 | BEG3 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:341:41: note: in expansion of macro ‘a_string’ 341 | BEG3 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvwinstr’: /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:343:6: note: in expansion of macro ‘r_err’ 343 | BEG4 r_err(mvwinnstr(a_window(aa),a_int(ab),a_int(ac), | ^~~~~ ml_curses.c:88:21: note: in expansion of macro ‘String_val’ 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:344:3: note: in expansion of macro ‘a_string’ 344 | a_string(ad),string_length(ad))); END | ^~~~~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_innstr’: functions.c:346:31: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 346 | BEG3 r_err(innstr(a_string(aa)+a_int(ab),a_int(ac))); END | ^ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:346:6: note: in expansion of macro ‘r_err’ 346 | BEG3 r_err(innstr(a_string(aa)+a_int(ab),a_int(ac))); END | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_winnstr’: functions.c:348:45: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 348 | BEG4 r_err(winnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:348:6: note: in expansion of macro ‘r_err’ 348 | BEG4 r_err(winnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvinnstr’: functions.c:350:53: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 350 | BEG5 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad),a_int(ae))); END | ^ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:350:6: note: in expansion of macro ‘r_err’ 350 | BEG5 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad),a_int(ae))); END | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ In file included from ml_curses.c:7: functions.c: In function ‘mlcurses_mvwinnstr_native’: functions.c:353:15: warning: passing argument 2 of ‘winnstr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 353 | a_string(ad)+a_int(ae),a_int(af))); END | ^ /usr/lib/ocaml/caml/memory.h:476:29: note: in definition of macro ‘CAMLreturnT’ 476 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:18: note: in expansion of macro ‘CAMLreturn’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:79:20: note: in expansion of macro ‘Val_long’ 79 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib/ocaml/caml/mlvalues.h:362:21: note: in expansion of macro ‘Val_int’ 362 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:29: note: in expansion of macro ‘Val_bool’ 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:352:6: note: in expansion of macro ‘r_err’ 352 | BEG6 r_err(mvwinnstr(a_window(aa),a_int(ab),a_int(ac), | ^~~~~ In file included from ml_curses.c:22: /usr/include/curses.h:812:47: note: expected ‘char *’ but argument is of type ‘const char *’ 812 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function ‘mlcurses_unctrl’: functions.c:597:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 597 | ML1(unctrl,string,chtype) | ^~~~~~ ml_curses.c:77:15: note: in definition of macro ‘r_string’ 77 | { char *ret=f; \ | ^ functions.c:597:1: note: in expansion of macro ‘ML1’ 597 | ML1(unctrl,string,chtype) | ^~~ functions.c: In function ‘mlcurses_keyname’: functions.c:598:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 598 | ML1(keyname,string,int) | ^~~~~~~ ml_curses.c:77:15: note: in definition of macro ‘r_string’ 77 | { char *ret=f; \ | ^ functions.c:598:1: note: in expansion of macro ‘ML1’ 598 | ML1(keyname,string,int) | ^~~ ar rcs libcurses_stubs.a ml_curses.o ocamlc -c -g keys.ml ocamlc -c -g curses.mli ocamlc -c -pp "gcc -x c -E " -g curses.ml ocamlmklib \ -o curses_stubs ml_curses.o -lncursesw \ ocamlc -a -dllib dllcurses_stubs.so -g -ccopt -Wl,-z,relro -cclib -lcurses_stubs -cclib -lncursesw -o curses.cma keys.cmo curses.cmo make[3]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' sed \ -e 's/@PACKAGE@/curses/' \ -e 's/@VERSION@/1.0.4/' \ -e 's/@CURSES@/ncurses/' \ < META.in > META ranlib *.a make[2]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' /usr/bin/make CFLAGS="-O2 -g -fPIC -DHAVE_CONFIG_H" opt make[2]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[3]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ocamldep -native curses.mli > ._ncdi/curses.di make[3]: 'libcurses_stubs.a' is up to date. ocamlopt -c -g keys.ml ocamlopt -c -pp "gcc -x c -E " -g curses.ml ocamlopt -a -g -ccopt -Wl,-z,relro -cclib -lcurses_stubs -cclib -lncursesw -o curses.cmxa keys.cmx curses.cmx make[3]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ranlib *.a make[2]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' /usr/bin/make htdoc make[2]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' mkdir -p doc/curses/html rm -rf doc/curses/html/* ocamldoc -html -d doc/curses/html -stars curses.mli make[2]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[1]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' dh_auto_test -a make -j4 test VERBOSE=1 make[1]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[2]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[2]: 'libcurses_stubs.a' is up to date. ocamlc -a -dllib dllcurses_stubs.so -g -ccopt -Wl,-z,relro -cclib -lcurses_stubs -cclib -lncursesw -o curses.cma keys.cmo curses.cmo make[2]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ranlib *.a ocamlc -I . -o test curses.cma test.ml File "test.ml", line 41, characters 24-42: 41 | with Invalid_argument "winch_handler_on" -> () ^^^^^^^^^^^^^^^^^^ Warning 52: Code should not depend on the actual values of this constructor's arguments. They are only for information and may change in future versions. (See manual section 9.5) File "test.ml", line 47, characters 15-25: 47 | with Failure "tigetstr" -> () ^^^^^^^^^^ Warning 52: Code should not depend on the actual values of this constructor's arguments. They are only for information and may change in future versions. (See manual section 9.5) make[1]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' create-stamp debian/debhelper-build-stamp dh_testroot -a dh_prep -a debian/rules override_dh_auto_install make[1]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' mkdir -p /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml /usr/bin/make install OCAMLFIND_DESTDIR=/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml OCAMLFIND_LDCONF=ignore make[2]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[3]: Entering directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[3]: 'libcurses_stubs.a' is up to date. make[3]: 'curses.cma' is up to date. make[3]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' ranlib *.a Installing library with ocamlfind ocamlfind install curses META curses.mli curses.cmi keys.cmi test.cmi curses.cma curses.cmxa curses.a libcurses_stubs.a dllcurses_stubs.so curses.cmx keys.cmx Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/keys.cmx Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.cmx Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/dllcurses_stubs.so Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/libcurses_stubs.a Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.a Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.cmxa Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.cma Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/test.cmi Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/keys.cmi Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.cmi Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/curses.mli Installed /build/ocaml-curses-LPobBK/ocaml-curses-1.0.6/debian/tmp//usr/lib/ocaml/curses/META Installation successful. make[2]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' make[1]: Leaving directory '/build/ocaml-curses-LPobBK/ocaml-curses-1.0.6' dh_install -a dh_ocamldoc -a dh_installdocs -a dh_installchangelogs -a dh_perl -a dh_link -a dh_strip_nondeterminism -a dh_compress -a dh_fixperms -a dh_missing -a dh_strip -a -a dh_makeshlibs -a -a dh_shlibdeps -a -a dh_installdeb -a dh_ocaml -a dh_gencontrol -a dpkg-gencontrol: warning: Depends field of package libcurses-ocaml-dev: substitution variable ${shlibs:Depends} used, but is not defined dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'libcurses-ocaml-dev' in '../libcurses-ocaml-dev_1.0.6-2_amd64.deb'. dpkg-deb: building package 'libcurses-ocaml' in '../libcurses-ocaml_1.0.6-2_amd64.deb'. dpkg-deb: building package 'libcurses-ocaml-dbgsym' in '../libcurses-ocaml-dbgsym_1.0.6-2_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../ocaml-curses_1.0.6-2_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/ocaml-curses-LPobBK /tmp/ocaml-curses-1.0.6-2vqce9pm6 I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.HgMIlhAzHN... I: success in 701.6169 seconds md5: libcurses-ocaml-dbgsym_1.0.6-2_amd64.deb: OK md5: libcurses-ocaml-dev_1.0.6-2_amd64.deb: OK md5: libcurses-ocaml_1.0.6-2_amd64.deb: OK sha1: libcurses-ocaml-dbgsym_1.0.6-2_amd64.deb: OK sha1: libcurses-ocaml-dev_1.0.6-2_amd64.deb: OK sha1: libcurses-ocaml_1.0.6-2_amd64.deb: OK sha256: libcurses-ocaml-dbgsym_1.0.6-2_amd64.deb: OK sha256: libcurses-ocaml-dev_1.0.6-2_amd64.deb: OK sha256: libcurses-ocaml_1.0.6-2_amd64.deb: OK Checksums: OK