D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/ocaml-lablgl-1.06-8.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.I6aP35 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lablgl-1.06 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-lablgl-1.06.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd lablgl-1.06 + rm -rf /home/pterjan/rpmbuild/BUILD/lablgl-1.06-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lablgl-1.06-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -f /usr/include/tk-private/generic/tkInt.h Togl/src/Togl/tkInt8.6.h + cp -f /usr/include/tk-private/generic/tkIntDecls.h Togl/src/Togl/tkIntDecls8.6.h + sed -i -e s,tkIntDecls.h,tkIntDecls8.6.h,g Togl/src/Togl/tkInt8.6.h + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XMksU5 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lablgl-1.06 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make all opt cd src && make all LIBDIR="/usr/lib64/ocaml" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/src' ocamlc.opt -c -w s -I +labltk var2def.ml File "var2def.ml", line 17, characters 5-11: 17 | open Genlex ^^^^^^ Alert deprecated: module Stdlib.Genlex Use the camlp-streams library instead. File "var2def.ml", line 22, characters 17-34: 22 | let s = lexer (Stream.of_channel stdin) in ^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 26, characters 22-30: 26 | let (strm__ : _ Stream.t) = s in ^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 27, characters 12-23: 27 | match Stream.peek strm__ with ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 29, characters 10-21: 29 | Stream.junk strm__; ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 43, characters 10-21: 43 | Stream.junk strm__; ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 44, characters 22-33: 44 | begin match Stream.peek strm__ with ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 45, characters 30-41: 45 | Some (Ident _) -> Stream.junk strm__; () ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 46, characters 24-36: 46 | | _ -> raise (Stream.Error "") ^^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2def.ml", line 48, characters 27-38: 48 | | Some (Kwd "$$") -> Stream.junk strm__; () ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. ocamlc.opt var2def.cmo -o var2def ocamlc.opt -c -w s -I +labltk var2switch.ml File "var2switch.ml", line 3, characters 5-11: 3 | open Genlex ^^^^^^ Alert deprecated: module Stdlib.Genlex Use the camlp-streams library instead. File "var2switch.ml", line 13, characters 17-34: 13 | let s = lexer (Stream.of_channel stdin) in ^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 16, characters 22-30: 16 | let (strm__ : _ Stream.t) = s in ^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 17, characters 12-23: 17 | match Stream.peek strm__ with ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 19, characters 10-21: 19 | Stream.junk strm__; ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 25, characters 28-36: 25 | let (strm__ : _ Stream.t) = s in ^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 26, characters 18-29: 26 | match Stream.peek strm__ with ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 28, characters 16-27: 28 | Stream.junk strm__; ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 29, characters 28-39: 29 | begin match Stream.peek strm__ with ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 30, characters 39-50: 30 | Some (Ident name) -> Stream.junk strm__; name ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 31, characters 30-42: 31 | | _ -> raise (Stream.Error "") ^^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. File "var2switch.ml", line 36, characters 27-38: 36 | | Some (Kwd "$$") -> Stream.junk strm__; raise End_of_file ^^^^^^^^^^^ Alert deprecated: module Stdlib.Stream Use the camlp-streams library instead. ocamlc.opt var2switch.cmo -o var2switch make lablgl.cma make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/src' ocamlrun ../src/var2def < gl_tags.var > gl_tags.h ocamlrun ../src/var2switch -table GL_ < gl_tags.var > gl_tags.c ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_gl.c ml_gl.c: In function 'ml_raise_gl': ml_gl.c:36:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 36 | gl_exn = caml_named_value("glerror"); | ^ ml_gl.c:37:13: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead 37 | raise_with_string(*gl_exn, (char*)errmsg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_gl.c: In function 'lablgl_copy_string_check': ml_gl.c:43:13: warning: "copy_string" is deprecated: use "caml_copy_string" instead 43 | return copy_string ((char*) str); | ^~~~~~~~~~~~~~~~~~~~~~~~~ ml_gl.c: In function 'ml_gl_make_table': ml_gl.c:64:13: warning: "stat_alloc" is deprecated: use "caml_stat_alloc" instead 64 | tag_table = stat_alloc (TABLE_SIZE * sizeof(struct record)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_gl.c: In function 'ml_glLight': ml_gl.c:271:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 271 | if (Int_val(n) >= GL_MAX_LIGHTS) invalid_argument ("Gl.light"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_gl.c: In function 'ml_glCallLists': ml_gl.c:717:20: warning: "string_length" is deprecated: use "caml_string_length" instead 717 | glCallLists (string_length(Field(indexes,1)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ocamlrun ../src/var2def < glu_tags.var > glu_tags.h ocamlrun ../src/var2switch GLU_ < glu_tags.var > glu_tags.c ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_glu.c ml_glu.c: In function 'ml_gluNewNurbsRenderer': ml_glu.c:105:13: warning: "alloc_final" is deprecated: use "caml_alloc_final" instead 105 | value struc = alloc_final (2, ml_gluDeleteNurbsRenderer, 1, 32); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_glu.c: In function 'ml_gluNewQuadric': ml_glu.c:112:13: warning: "alloc_final" is deprecated: use "caml_alloc_final" instead 112 | value struc = alloc_final (2, ml_gluDeleteQuadric, 1, 32); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_glu.c: In function 'ml_gluProject': ml_glu.c:244:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 244 | win0 = copy_double(winX); | ^~~~~~~~~~~~~~~~~ ml_glu.c:245:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 245 | win1 = copy_double(winY); | ^~~~~~~~~~~~~~~~~ ml_glu.c:246:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 246 | win2 = copy_double(winZ); | ^~~~~~~~~~~~~~~~~ ml_glu.c:247:13: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead 247 | win = alloc_small(3, 0); | ^~~~~~~~~~~~~~~~ ml_glu.c: In function 'ml_gluUnProject': ml_glu.c:299:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 299 | obj0 = copy_double(objX); | ^~~~~~~~~~~~~~~~~ ml_glu.c:300:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 300 | obj1 = copy_double(objY); | ^~~~~~~~~~~~~~~~~ ml_glu.c:301:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 301 | obj2 = copy_double(objZ); | ^~~~~~~~~~~~~~~~~ ml_glu.c:302:13: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead 302 | obj = alloc_small (3, 0); | ^~~~~~~~~~~~~~~~~ ocamlrun ../src/var2def < raw_tags.var > raw_tags.h ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_raw.c ml_raw.c:19:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 19 | extern void invalid_argument (char *) Noreturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:20:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 20 | extern void raise_out_of_memory (void) Noreturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'check_size': ml_raw.c:55:20: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 55 | invalid_argument (msg); | ^~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_read': ml_raw.c:92:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 92 | if (l<0 || s<0) invalid_argument("Raw.read"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:93:13: warning: "alloc_shr" is deprecated: use "caml_alloc_shr" instead 93 | ret = alloc_shr (l, 0); | ^~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_read_string': ml_raw.c:164:20: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 164 | invalid_argument("Raw.read_string"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:165:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead 165 | ret = alloc_string (l); | ^~~~~~~~~~~~~~~ In file included from ml_raw.c:5: /usr/lib64/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:166:13: note: in expansion of macro 'String_val' 166 | memcpy (String_val(ret), Bp_val(Addr_raw(raw))+s, l); | ^~~~~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from ml_raw.c:3: /usr/include/bits/string_fortified.h:26:1: note: expected 'void *' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ ml_raw.c: In function 'ml_raw_write_string': ml_raw.c:173:13: warning: "string_length" is deprecated: use "caml_string_length" instead 173 | int l = string_length(data); | ^~~~~~~~~~~~~~~~~~~~ ml_raw.c:176:20: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 176 | invalid_argument("Raw.write_string"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_write': ml_raw.c:218:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 218 | if (s<0) invalid_argument("Raw.write"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_get_float': ml_raw.c:276:20: warning: "copy_double" is deprecated: use "caml_copy_double" instead 276 | return copy_double ((double) Float_raw(raw)[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:278:20: warning: "copy_double" is deprecated: use "caml_copy_double" instead 278 | return copy_double (Double_raw(raw)[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_read_float': ml_raw.c:288:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 288 | if (l<0 || s<0) invalid_argument("Raw.read_float"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:289:13: warning: "alloc_shr" is deprecated: use "caml_alloc_shr" instead 289 | ret = alloc_shr (l*sizeof(double)/sizeof(value), Double_array_tag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_write_float': ml_raw.c:320:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 320 | if (s<0) invalid_argument("Raw.write_float"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_get_long': ml_raw.c:431:13: warning: "copy_nativeint" is deprecated: use "caml_copy_nativeint" instead 431 | return copy_nativeint (Int_raw(raw)[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:434:13: warning: "copy_nativeint" is deprecated: use "caml_copy_nativeint" instead 434 | return copy_nativeint (Long_raw(raw)[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_alloc': ml_raw.c:466:20: warning: "alloc_shr" is deprecated: use "caml_alloc_shr" instead 466 | data = alloc_shr ((size-1)/sizeof(value)+2, Abstract_tag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:468:13: warning: "alloc_shr" is deprecated: use "caml_alloc_shr" instead 468 | } else data = alloc_shr ((size-1)/sizeof(value)+1, Abstract_tag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:469:13: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead 469 | raw = alloc_small (SIZE_RAW,0); | ^~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_alloc_static': ml_raw.c:486:20: warning: "stat_alloc" is deprecated: use "caml_stat_alloc" instead 486 | data = stat_alloc (size+sizeof(long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:488:13: warning: "stat_alloc" is deprecated: use "caml_stat_alloc" instead 488 | } else data = stat_alloc (size); | ^~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:489:13: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead 489 | raw = alloc_small (SIZE_RAW, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c: In function 'ml_raw_free_static': ml_raw.c:500:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 500 | if (Static_raw(raw) != Val_int(1)) invalid_argument ("Raw.free_static"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_raw.c:501:13: warning: "stat_free" is deprecated: use "caml_stat_free" instead 501 | stat_free (Void_raw(raw)); | ^~~~~~~~~~~~~~~~~~ ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_glarray.c ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_glutess.c ml_glutess.c: In function 'push_vert': ml_glutess.c:98:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead 98 | xx = copy_double(x); yy = copy_double(y); zz = copy_double(z); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_glutess.c:98:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead ml_glutess.c:98:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead ml_glutess.c:99:13: warning: "alloc_tuple" is deprecated: use "caml_alloc_tuple" instead 99 | vert = alloc_tuple(3); | ^~~~~~~~~~~~ ml_glutess.c:103:13: warning: "alloc_tuple" is deprecated: use "caml_alloc_tuple" instead 103 | cons = alloc_tuple(2); | ^~~~~~~~~~~~ ml_glutess.c:106:13: warning: "modify" is deprecated: use "caml_modify" instead 106 | modify(&Field(root,0), cons); | ^~~~~~~~~~~~~~~~~~~ ml_glutess.c: In function 'push_list': ml_glutess.c:112:13: warning: "alloc_tuple" is deprecated: use "caml_alloc_tuple" instead 112 | value cons = alloc_tuple(2); | ^~~~~~~~~~~~~~~~~~ ml_glutess.c:115:13: warning: "modify" is deprecated: use "caml_modify" instead 115 | modify(&Field(*prim,kind), cons); | ^~~~~~~~~~~~~~~~~~~~~~~ ml_glutess.c: In function 'ml_gluTesselateAndReturn': ml_glutess.c:198:13: warning: "alloc_tuple" is deprecated: use "caml_alloc_tuple" instead 198 | res = alloc_tuple(3); | ^~~~~~~~~~~ ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include" ml_shader.c In file included from ml_shader.c:19: ml_shader.c: In function 'ml_glgetshaderinfolog': /usr/lib64/ocaml/caml/mlvalues.h:290:24: warning: passing argument 4 of 'glGetShaderInfoLog' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ml_shader.c:1217:85: note: in expansion of macro 'String_val' 1217 | glGetShaderInfoLog(Shader_object_val(shader), infologLength, &charsWritten, String_val(infoLog)); | ^~~~~~~~~~ In file included from /usr/include/GL/gl.h:2050, from ml_shader.c:14: /usr/include/GL/glext.h:747:98: note: expected 'GLchar *' {aka 'char *'} but argument is of type 'const char *' 747 | GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); | ~~~~~~~~^~~~~~~ ml_shader.c: In function 'ml_glgetprograminfolog': /usr/lib64/ocaml/caml/mlvalues.h:290:24: warning: passing argument 4 of 'glGetProgramInfoLog' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ml_shader.c:1241:88: note: in expansion of macro 'String_val' 1241 | glGetProgramInfoLog(Shader_program_val(program), infologLength, &charsWritten, String_val(infoLog)); | ^~~~~~~~~~ /usr/include/GL/glext.h:745:100: note: expected 'GLchar *' {aka 'char *'} but argument is of type 'const char *' 745 | GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); | ~~~~~~~~^~~~~~~ ocamlc.opt -c -w s -I +labltk raw.mli ocamlc.opt -c -w s -I +labltk raw.ml ocamlc.opt -c -w s -I +labltk gl.mli ocamlc.opt -c -w s -I +labltk gl.ml ocamlc.opt -c -w s -I +labltk glLight.mli ocamlc.opt -c -w s -I +labltk glLight.ml ocamlc.opt -c -w s -I +labltk glList.mli ocamlc.opt -c -w s -I +labltk glList.ml ocamlc.opt -c -w s -I +labltk glMap.mli ocamlc.opt -c -w s -I +labltk glMap.ml ocamlc.opt -c -w s -I +labltk glMat.mli ocamlc.opt -c -w s -I +labltk glMat.ml ocamlc.opt -c -w s -I +labltk glMisc.mli ocamlc.opt -c -w s -I +labltk glMisc.ml ocamlc.opt -c -w s -I +labltk glPix.mli ocamlc.opt -c -w s -I +labltk glPix.ml ocamlc.opt -c -w s -I +labltk glClear.mli ocamlc.opt -c -w s -I +labltk glClear.ml ocamlc.opt -c -w s -I +labltk glTex.mli ocamlc.opt -c -w s -I +labltk glTex.ml File "glTex.ml", line 116, characters 23-35: 116 | let gen_texture () = (gen_textures 1).(0) ^^^^^^^^^^^^ Warning 6 [labels-omitted]: label len was omitted in the application of this function. ocamlc.opt -c -w s -I +labltk glDraw.mli ocamlc.opt -c -w s -I +labltk glDraw.ml ocamlc.opt -c -w s -I +labltk glFunc.mli ocamlc.opt -c -w s -I +labltk glFunc.ml ocamlc.opt -c -w s -I +labltk gluMisc.mli ocamlc.opt -c -w s -I +labltk gluMisc.ml ocamlc.opt -c -w s -I +labltk gluNurbs.mli ocamlc.opt -c -w s -I +labltk gluNurbs.ml ocamlc.opt -c -w s -I +labltk gluQuadric.mli ocamlc.opt -c -w s -I +labltk gluQuadric.ml ocamlc.opt -c -w s -I +labltk gluTess.mli ocamlc.opt -c -w s -I +labltk gluTess.ml ocamlc.opt -c -w s -I +labltk gluMat.mli ocamlc.opt -c -w s -I +labltk gluMat.ml ocamlc.opt -c -w s -I +labltk glArray.mli ocamlc.opt -c -w s -I +labltk glArray.ml ocamlc.opt -c -w s -I +labltk glShader.mli ocamlc.opt -c -w s -I +labltk glShader.ml ocamlmklib -o lablgl ml_gl.o ml_glu.o ml_raw.o ml_glarray.o ml_glutess.o ml_shader.o raw.cmo gl.cmo glLight.cmo glList.cmo glMap.cmo glMat.cmo glMisc.cmo glPix.cmo glClear.cmo glTex.cmo glDraw.cmo glFunc.cmo gluMisc.cmo gluNurbs.cmo gluQuadric.cmo gluTess.cmo gluMat.cmo glArray.cmo glShader.cmo -lGL -lGLU -L/usr/lib64 -lXext -lXmu -lX11 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/src' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/src' cd Togl/src && make LABLTKDIR="`ocamlfind query -qe labltk || echo +labltk`" all /bin/sh: line 1: ocamlfind: command not found make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/Togl/src' Makefile:20: warning: ignoring prerequisites on suffix rule definition ocamlc.opt -c -w s -I +labltk -I ../../src togl.mli ocamlc.opt -c -w s -I +labltk -I ../../src togl.ml ocamlrun ../../src/var2def < togl_tags.var > togl_tags.h ocamlrun ../../src/var2switch TOGL_ < togl_tags.var > togl_tags.c ocamlc.opt -c -w s -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I../../src -ITogl -I/usr/include -I. -I/usr/include" ml_togl.c ml_togl.c: In function 'TOGLenum_val': ml_togl.c:32:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 32 | invalid_argument ("Unknown Togl tag"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_togl.c: In function 'togl_prerr': ml_togl.c:38:13: warning: "copy_string" is deprecated: use "caml_copy_string" instead 38 | value ml_msg = copy_string(msg); | ^~~~~~~~~~~~~~~~~~~~~~~~ ml_togl.c:39:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 39 | value *prerr = caml_named_value("togl_prerr"); | ^~~~~~~~~~~~~~~~ ml_togl.c: In function 'ml_Togl_Init': ml_togl.c:46:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 46 | value *interp = caml_named_value("cltclinterp"); | ^~~~~~~~~~~~~~~~ ml_togl.c:50:13: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead 50 | raise_with_string(*caml_named_value("tkerror"), "Togl_Init failed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_togl.c: In function 'callback_CreateFunc': ml_togl.c:89:13: warning: "callback" is deprecated: use "caml_callback" instead 89 | CALLBACK (CreateFunc) | ^~~~~~~~~ ml_togl.c: In function 'callback_DisplayFunc': ml_togl.c:90:13: warning: "callback" is deprecated: use "caml_callback" instead 90 | CALLBACK (DisplayFunc) | ^~~~~~~~~~ ml_togl.c: In function 'callback_ReshapeFunc': ml_togl.c:91:13: warning: "callback" is deprecated: use "caml_callback" instead 91 | CALLBACK (ReshapeFunc) | ^~~~~~~~~~ ml_togl.c: In function 'callback_DestroyFunc': ml_togl.c:92:13: warning: "callback" is deprecated: use "caml_callback" instead 92 | CALLBACK (DestroyFunc) | ^~~~~~~~~~ ml_togl.c: In function 'callback_TimerFunc': ml_togl.c:93:13: warning: "callback" is deprecated: use "caml_callback" instead 93 | CALLBACK (TimerFunc) | ^~~~~~~~ ml_togl.c: In function 'callback_OverlayDisplayFunc': ml_togl.c:94:13: warning: "callback" is deprecated: use "caml_callback" instead 94 | CALLBACK (OverlayDisplayFunc) | ^~~~~~~~~~~~~~~~~ ml_togl.c: In function 'callback_RenderFunc': ml_togl.c:95:13: warning: "callback" is deprecated: use "caml_callback" instead 95 | CALLBACK_const (RenderFunc) | ^~~~~~~~~~~~~~~ ml_togl.c: In function 'ml_Togl_CreateFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:97:1: note: in expansion of macro 'ENABLER' 97 | ENABLER (CreateFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_DisplayFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:98:1: note: in expansion of macro 'ENABLER' 98 | ENABLER (DisplayFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_ReshapeFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:99:1: note: in expansion of macro 'ENABLER' 99 | ENABLER (ReshapeFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_DestroyFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:100:1: note: in expansion of macro 'ENABLER' 100 | ENABLER (DestroyFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_TimerFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:101:1: note: in expansion of macro 'ENABLER' 101 | ENABLER (TimerFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_OverlayDisplayFunc': ml_togl.c:85:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 85 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \ | ^ ml_togl.c:102:1: note: in expansion of macro 'ENABLER' 102 | ENABLER (OverlayDisplayFunc) | ^~~~~~~ ml_togl.c: In function 'ml_Togl_Ident': ml_togl.c:107:13: warning: "copy_string" is deprecated: use "caml_copy_string" instead 107 | ML_1_ (Togl_Ident, Addr_val, copy_string) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ml_togl.c: In function 'ml_Togl_LoadBitmapFont': ml_togl.c:115:34: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 115 | if (Is_block(font)) fontname = String_val (Field(font,0)); | ^ ml_togl.c: In function 'ml_Togl_DumpToEpsFile': ml_togl.c:143:38: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 143 | if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); | ^ ml_togl.c:147:13: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead 147 | raise_with_string(*caml_named_value("tkerror"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cd Togl && \ ocamlc.opt -verbose -c -ccopt "-DTOGL_X11 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I../../src -ITogl -I/usr/include -I. -I/usr/include" togl.c + gcc -O2 -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -pthread -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_FILE_OFFSET_BITS=64 -c -DTOGL_X11 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I../../src -ITogl -I/usr/include -I. -I/usr/include -I'/usr/lib64/ocaml' 'togl.c' togl.c: In function 'Togl_Init': togl.c:820:26: error: assignment to 'void (*)(struct Tk_Window_ *, Tk_ClassProcs *, void *)' from incompatible pointer type 'void (*)(struct Tk_Window_ *, const Tk_ClassProcs *, void *)' [-Wincompatible-pointer-types] 820 | SetClassProcsPtr = Tk_SetClassProcs; | ^ make[1]: *** [Makefile:34: Togl/togl.o] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/lablgl-1.06/Togl/src' make: *** [Makefile:18: togl] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XMksU5 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XMksU5 (%build) I: [iurt_root_command] ERROR: chroot