Код: Выделить всё
rb_cairo_font_face.c: In function ‘Init_cairo_font’:
rb_cairo_font_face.c:833:39: error: passing argument 1 of ‘rb_proc_new’ from incompatible pointer type [-Wincompatible-pointer-types]
833 | rb_proc_new (cr_freetype_done_library, Qnil));
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}
In file included from /usr/include/ruby-3.4.0/ruby/internal/scan_args.h:38,
from /usr/include/ruby-3.4.0/ruby/ruby.h:46:
/usr/include/ruby-3.4.0/ruby/internal/intern/proc.h:73:40: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, int,
const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’}
73 | VALUE rb_proc_new(rb_block_call_func_t func, VALUE callback_arg);
| ~~~~~~~~~~~~~~~~~~~~~^~~~
rb_cairo_font_face.c:151:1: note: ‘cr_freetype_done_library’ declared here
151 | cr_freetype_done_library (VALUE data)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/ruby-3.4.0/ruby/ruby.h:41:
/usr/include/ruby-3.4.0/ruby/internal/iterator.h:88:29: note: ‘rb_block_call_func_t’ declared here
88 | typedef rb_block_call_func *rb_block_call_func_t;
| ^~~~~~~~~~~~~~~~~~~~
Подробнее здесь: https://stackoverflow.com/questions/797 ... by-headers