D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/ocaml-curses-1.0.4-9.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tXwtLm sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.UmAQRY + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-curses-1.0.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-curses-1.0.4-build + rm -rf ocaml-curses-1.0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-curses-1.0.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-curses-1.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + autoreconf configure.ac:42: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:42: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:42: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:51: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:51: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:51: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:51: the top level configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from... ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:51: the top level configure.ac:93: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:93: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... configure.ac:93: the top level configure.ac:93: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:93: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2821: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2837: AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... configure.ac:93: the top level configure.ac:93: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:93: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2821: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2837: AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2821: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2837: AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... configure.ac:93: the top level configure.ac:127: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:127: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.ac:127: the top level + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.D92Vol + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-curses-1.0.4-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ocaml-curses-1.0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-widec configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-mageia-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc and cc understand -c and -o together... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for termios.h... yes checking for sys/ioctl.h... yes checking for windows.h... no checking for working ncurses library... found in -lncurses checking for term.h... found in checking for wide character support in ncurses library... no 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 configure: WARNING: unrecognized options: --disable-dependency-tracking + make all opt make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/ocaml-curses-1.0.4-build/ocaml-curses-1.0.4' ocamldep keys.ml > ._d/keys.d ocamldep -pp "gcc -x c -E " curses.ml > ._d/curses.d ocamldep curses.mli > ._bcdi/curses.di OCamlMakefile:1066: warning: pattern recipe did not update peer target '._ncdi/curses.di'. ocamlc -c -cc "gcc" -ccopt "-fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DHAVE_CONFIG_H \ -DPIC \ -o ml_curses.o " ml_curses.c ml_curses.c: In function 'putc_callback': ml_curses.c:203:7: error: implicit declaration of function 'callback_exn'; did you mean 'caml_callback_exn'? [-Wimplicit-function-declaration] 203 | ret=callback_exn(putc_function,Val_int(c&255)); | ^~~~~~~~~~~~ | caml_callback_exn In file included from ml_curses.c:216: functions.c: In function 'mlcurses_addchstr': functions.c:14:15: error: implicit declaration of function 'failwith' [-Wimplicit-function-declaration] 14 | if(t==NULL) failwith("Out of memory"); \ | ^~~~~~~~ functions.c:19:6: note: in expansion of macro 'copie' 19 | BEG1 copie(Wosize_val(aa),0,aa) call(addchstr(t)) END | ^~~~~ functions.c: In function 'mlcurses_color_content': ml_curses.c:71:9: error: implicit declaration of function 'alloc_tuple' [-Wimplicit-function-declaration] 71 | ret=alloc_tuple(3); \ | ^~~~~~~~~~~ functions.c:162:13: note: in expansion of macro 'r_int_int_int' 162 | x=y=z=-1; r_int_int_int(x,y,z); END | ^~~~~~~~~~~~~ In file included from ml_curses.c:7: functions.c: In function 'mlcurses_getstr': functions.c:195:33: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] 195 | BEG1 r_err(getnstr(a_string(aa),string_length(aa))); END | ^~~~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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 | ^~~~~ /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'wgetnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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:25: 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:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_wgetstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'wgetnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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:25: 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 | ^~~~~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvgetstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'wgetnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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:25: 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 | ^~~~~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvwgetstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'wgetnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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:25: 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), | ^~~~~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ 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/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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 | ^~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ 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/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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 | ^~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ 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/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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), | ^~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ 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/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: 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), | ^~~~~ /usr/include/curses.h:867:47: note: expected 'char *' but argument is of type 'const char *' 867 | extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_instr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:336:6: note: in expansion of macro 'r_err' 336 | BEG1 r_err(innstr(a_string(aa),string_length(aa))); END | ^~~~~ ml_curses.c:88:25: note: in expansion of macro 'String_val' 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:336:19: note: in expansion of macro 'a_string' 336 | BEG1 r_err(innstr(a_string(aa),string_length(aa))); END | ^~~~~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_winstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:338:6: note: in expansion of macro 'r_err' 338 | BEG2 r_err(winnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~ ml_curses.c:88:25: note: in expansion of macro 'String_val' 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:338:33: note: in expansion of macro 'a_string' 338 | BEG2 r_err(winnstr(a_window(aa),a_string(ab),string_length(ab))); END | ^~~~~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvinstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:340:6: note: in expansion of macro 'r_err' 340 | BEG3 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~ ml_curses.c:88:25: note: in expansion of macro 'String_val' 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:340:41: note: in expansion of macro 'a_string' 340 | BEG3 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac),string_length(ac))); END | ^~~~~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvwinstr': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:342:6: note: in expansion of macro 'r_err' 342 | BEG4 r_err(mvwinnstr(a_window(aa),a_int(ab),a_int(ac), | ^~~~~ ml_curses.c:88:25: note: in expansion of macro 'String_val' 88 | #define a_string(a) String_val(a) | ^~~~~~~~~~ functions.c:343:3: note: in expansion of macro 'a_string' 343 | a_string(ad),string_length(ad))); END | ^~~~~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_innstr': functions.c:345:31: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 345 | BEG3 r_err(innstr(a_string(aa)+a_int(ab),a_int(ac))); END | ^ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:345:6: note: in expansion of macro 'r_err' 345 | BEG3 r_err(innstr(a_string(aa)+a_int(ab),a_int(ac))); END | ^~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_winnstr': functions.c:347:45: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 347 | BEG4 r_err(winnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:347:6: note: in expansion of macro 'r_err' 347 | BEG4 r_err(winnstr(a_window(aa),a_string(ab)+a_int(ac),a_int(ad))); END | ^~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvinnstr': functions.c:349:53: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 349 | BEG5 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad),a_int(ae))); END | ^ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:349:6: note: in expansion of macro 'r_err' 349 | BEG5 r_err(mvinnstr(a_int(aa),a_int(ab),a_string(ac)+a_int(ad),a_int(ae))); END | ^~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_mvwinnstr_native': functions.c:352:15: warning: passing argument 2 of 'winnstr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 352 | a_string(ad)+a_int(ae),a_int(af))); END | ^ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:51:25: note: in expansion of macro 'CAMLreturn' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:82:20: note: in expansion of macro 'Val_long' 82 | #define Val_int(x) Val_long(x) | ^~~~~~~~ /usr/lib64/ocaml/caml/mlvalues.h:459:21: note: in expansion of macro 'Val_int' 459 | #define Val_bool(x) Val_int((x) != 0) | ^~~~~~~ ml_curses.c:51:36: note: in expansion of macro 'Val_bool' 51 | #define r_err(f) CAMLreturn(Val_bool((f)!=ERR)) | ^~~~~~~~ functions.c:351:6: note: in expansion of macro 'r_err' 351 | BEG6 r_err(mvwinnstr(a_window(aa),a_int(ab),a_int(ac), | ^~~~~ /usr/include/curses.h:873:47: note: expected 'char *' but argument is of type 'const char *' 873 | extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ | ^~~~~~ functions.c: In function 'mlcurses_slk_label': ml_curses.c:79:16: error: implicit declaration of function 'copy_string'; did you mean 'a_string'? [-Wimplicit-function-declaration] 79 | CAMLreturn(copy_string(ret)); } | ^~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ ml_curses.c:79:5: note: in expansion of macro 'CAMLreturn' 79 | CAMLreturn(copy_string(ret)); } | ^~~~~~~~~~ ml_curses.c:106:9: note: in expansion of macro 'r_string' 106 | { RA1 r_##tr(f(a_##ta(aa))); } | ^~ functions.c:483:1: note: in expansion of macro 'ML1' 483 | ML1(slk_label,string,int) | ^~~ functions.c: In function 'mlcurses_unctrl': functions.c:596:5: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 596 | ML1(unctrl,string,chtype) | ^~~~~~ ml_curses.c:77:15: note: in definition of macro 'r_string' 77 | { char *ret=f; \ | ^ functions.c:596:1: note: in expansion of macro 'ML1' 596 | ML1(unctrl,string,chtype) | ^~~ functions.c: In function 'mlcurses_keyname': functions.c:597:5: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 597 | ML1(keyname,string,int) | ^~~~~~~ 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(keyname,string,int) | ^~~ ml_curses.c: In function 'mlcurses_getch': ml_curses.c:226:4: error: implicit declaration of function 'enter_blocking_section'; did you mean 'caml_enter_blocking_section'? [-Wimplicit-function-declaration] 226 | enter_blocking_section(); | ^~~~~~~~~~~~~~~~~~~~~~ | caml_enter_blocking_section ml_curses.c:228:4: error: implicit declaration of function 'leave_blocking_section'; did you mean 'caml_leave_blocking_section'? [-Wimplicit-function-declaration] 228 | leave_blocking_section(); | ^~~~~~~~~~~~~~~~~~~~~~ | caml_leave_blocking_section make[1]: *** [OCamlMakefile:1036: ml_curses.o] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ocaml-curses-1.0.4-build/ocaml-curses-1.0.4' make: *** [OCamlMakefile:743: byte-code-library] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.D92Vol (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.D92Vol (%build) I: [iurt_root_command] ERROR: chroot