D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/ocaml-camlzip-1.05-8.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.i5bDa1 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf camlzip-1.05 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/camlzip-1.05.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd camlzip-1.05 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/test-makefile.dpatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/uncompress.dpatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.UfXo46 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd camlzip-1.05 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 depend gcc -MM -I/usr/local/include *.c > .depend ocamldep *.mli *.ml >> .depend + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 all allopt ocamlc -g -c zlib.mli ocamlc -g -c gzip.mli ocamlc -g -c zip.mli ocamlc -g -c zlib.ml File "zlib.ml", line 49, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 50, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 72, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 93, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 94, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. ocamlopt -c zlib.ml File "zlib.ml", line 49, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 50, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 72, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 93, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zlib.ml", line 94, characters 15-28: Warning 3: deprecated: String.create Use Bytes.create instead. ocamlc -g -c -ccopt -g -ccopt -I/usr/local/include zlibstubs.c zlibstubs.c: In function 'camlzip_update_crc32': zlibstubs.c:171:33: error: 'uint32' undeclared (first use in this function); did you mean 'uint32_t'? return caml_copy_int32(crc32((uint32) Int32_val(crc), ^~~~~~ uint32_t zlibstubs.c:171:33: note: each undeclared identifier is reported only once for each function it appears in In file included from zlibstubs.c:20:0: zlibstubs.c: In function 'camlzip_uncompress': /usr/lib64/ocaml/caml/mlvalues.h:226:23: warning: pointer targets in passing argument 1 of 'uncompress' differ in signedness [-Wpointer-sign] #define String_val(x) ((char *) Bp_val(x)) ^ zlibstubs.c:182:24: note: in expansion of macro 'String_val' status = uncompress (String_val(dest), &destlenc, String_val(src), srclenc); ^~~~~~~~~~ In file included from zlibstubs.c:18:0: /usr/include/zlib.h:1265:21: note: expected 'Bytef * {aka unsigned char *}' but argument is of type 'char *' ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~~ In file included from zlibstubs.c:20:0: /usr/lib64/ocaml/caml/mlvalues.h:226:23: warning: pointer targets in passing argument 3 of 'uncompress' differ in signedness [-Wpointer-sign] #define String_val(x) ((char *) Bp_val(x)) ^ zlibstubs.c:182:53: note: in expansion of macro 'String_val' status = uncompress (String_val(dest), &destlenc, String_val(src), srclenc); ^~~~~~~~~~ In file included from zlibstubs.c:18:0: /usr/include/zlib.h:1265:21: note: expected 'const Bytef * {aka const unsigned char *}' but argument is of type 'char *' ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~~ zlibstubs.c: In function 'camlzip_update_crc32': zlibstubs.c:174:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Makefile:51: zlibstubs.o] Error 2 make: *** Waiting for unfinished jobs.... ocamlc -g -c gzip.ml File "gzip.ml", line 68, characters 16-29: Warning 3: deprecated: String.create Use Bytes.create instead. File "gzip.ml", line 149, characters 18-31: Warning 3: deprecated: String.create Use Bytes.create instead. File "gzip.ml", line 185, characters 17-30: Warning 3: deprecated: String.create Use Bytes.create instead. File "gzip.ml", line 218, characters 2-22: Warning 3: deprecated: String.set Use Bytes.set instead. ocamlc -g -c zip.ml File "zip.ml", line 31, characters 10-23: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 120, characters 12-25: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 272, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 319, characters 18-31: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 510, characters 18-31: Warning 3: deprecated: String.create Use Bytes.create instead. ocamlopt -c zip.ml File "zip.ml", line 31, characters 10-23: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 120, characters 12-25: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 272, characters 14-27: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 319, characters 18-31: Warning 3: deprecated: String.create Use Bytes.create instead. File "zip.ml", line 510, characters 18-31: Warning 3: deprecated: String.create Use Bytes.create instead. error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.UfXo46 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.UfXo46 (%build) I: [iurt_root_command] ERROR: chroot