[DRE-maint] Bug#1115688: ruby-eb: FTBFS: eb.c:646:10: error: too many arguments to function ‘funct’; expected 0, have 2

Lucas Nussbaum lucas at debian.org
Fri Sep 19 08:09:15 BST 2025


Source: ruby-eb
Version: 2.6-4.1
Severity: serious
Justification: FTBFS
Tags: forky sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20250918 ftbfs-forky

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

The full build log is available from:
http://qa-logs.debian.net/2025/09/18/ruby-eb_2.6-4.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250918;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250918&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

-- 
Relevant part of the build log (hopefully):
> gcc -fdebug-prefix-map=/build/reproducible-path/ruby-eb-2.6=. -I. -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -DHAVE_RB_BLOCK_PROC -DHAVE_EB_BITMAP_TO_PNG -DHAVE_EB_SYSDEFS_H -DHAVE_TYPE_RB_ENCODING -DHAVE_EB_PTHREAD_ENABLED -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC  -o eb.o -c eb.c
> eb.c: In function ‘easy_search’:
> eb.c:646:10: error: too many arguments to function ‘funct’; expected 0, have 2
>   646 |     r = (*funct) (eb, word);
>       |         ~^~~~~~~  ~~
> eb.c: In function ‘reb_searchword’:
> eb.c:660:58: error: passing argument 5 of ‘easy_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   660 |     return easy_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_word);
>       |                                                          ^~~~~~~~~~~~~~
>       |                                                          |
>       |                                                          EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:615:28: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   615 |             EB_Error_Code(*funct) ())
>       |             ~~~~~~~~~~~~~~~^~~~~~~~~
> In file included from eb.c:31:
> /usr/include/eb/eb.h:145:15: note: ‘eb_search_word’ declared here
>   145 | EB_Error_Code eb_search_word(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~
> eb.c: In function ‘reb_exactsearchword’:
> eb.c:666:58: error: passing argument 5 of ‘easy_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   666 |     return easy_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_exactword);
>       |                                                          ^~~~~~~~~~~~~~~~~~~
>       |                                                          |
>       |                                                          EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:615:28: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   615 |             EB_Error_Code(*funct) ())
>       |             ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:76:15: note: ‘eb_search_exactword’ declared here
>    76 | EB_Error_Code eb_search_exactword(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~~~~~~
> eb.c: In function ‘reb_endsearchword’:
> eb.c:671:58: error: passing argument 5 of ‘easy_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   671 |     return easy_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_endword);
>       |                                                          ^~~~~~~~~~~~~~~~~
>       |                                                          |
>       |                                                          EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:615:28: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   615 |             EB_Error_Code(*funct) ())
>       |             ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:72:15: note: ‘eb_search_endword’ declared here
>    72 | EB_Error_Code eb_search_endword(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~~~~
> eb.c: In function ‘reb_searchkeyword’:
> eb.c:677:62: error: passing argument 5 of ‘easy_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   677 |     return easy_search(argc, argv, obj, SEARCHTYPE_WORDLIST, eb_search_keyword);
>       |                                                              ^~~~~~~~~~~~~~~~~
>       |                                                              |
>       |                                                              EB_Error_Code (*)(EB_Book *, const char * const*) {aka int (*)(struct EB_Book_Struct *, const char * const*)}
> eb.c:615:28: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char * const*)’ {aka ‘int (*)(struct EB_Book_Struct *, const char * const*)’}
>   615 |             EB_Error_Code(*funct) ())
>       |             ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:83:15: note: ‘eb_search_keyword’ declared here
>    83 | EB_Error_Code eb_search_keyword(EB_Book *book,
>       |               ^~~~~~~~~~~~~~~~~
> eb.c: In function ‘position_search’:
> eb.c:807:10: error: too many arguments to function ‘funct’; expected 0, have 2
>   807 |     r = (*funct) (eb, word);
>       |         ~^~~~~~~  ~~
> eb.c: In function ‘reb_exactsearchword2’:
> eb.c:819:62: error: passing argument 5 of ‘position_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   819 |     return position_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_exactword);
>       |                                                              ^~~~~~~~~~~~~~~~~~~
>       |                                                              |
>       |                                                              EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:777:32: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   777 |                 EB_Error_Code(*funct) ())
>       |                 ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:76:15: note: ‘eb_search_exactword’ declared here
>    76 | EB_Error_Code eb_search_exactword(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~~~~~~
> eb.c: In function ‘reb_searchword2’:
> eb.c:825:62: error: passing argument 5 of ‘position_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   825 |     return position_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_word);
>       |                                                              ^~~~~~~~~~~~~~
>       |                                                              |
>       |                                                              EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:777:32: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   777 |                 EB_Error_Code(*funct) ())
>       |                 ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:145:15: note: ‘eb_search_word’ declared here
>   145 | EB_Error_Code eb_search_word(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~
> eb.c: In function ‘reb_endsearchword2’:
> eb.c:830:62: error: passing argument 5 of ‘position_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   830 |     return position_search(argc, argv, obj, SEARCHTYPE_WORD, eb_search_endword);
>       |                                                              ^~~~~~~~~~~~~~~~~
>       |                                                              |
>       |                                                              EB_Error_Code (*)(EB_Book *, const char *) {aka int (*)(struct EB_Book_Struct *, const char *)}
> eb.c:777:32: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char *)’ {aka ‘int (*)(struct EB_Book_Struct *, const char *)’}
>   777 |                 EB_Error_Code(*funct) ())
>       |                 ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:72:15: note: ‘eb_search_endword’ declared here
>    72 | EB_Error_Code eb_search_endword(EB_Book *book, const char *input_word);
>       |               ^~~~~~~~~~~~~~~~~
> eb.c: In function ‘reb_searchkeyword2’:
> eb.c:835:66: error: passing argument 5 of ‘position_search’ from incompatible pointer type [-Wincompatible-pointer-types]
>   835 |     return position_search(argc, argv, obj, SEARCHTYPE_WORDLIST, eb_search_keyword);
>       |                                                                  ^~~~~~~~~~~~~~~~~
>       |                                                                  |
>       |                                                                  EB_Error_Code (*)(EB_Book *, const char * const*) {aka int (*)(struct EB_Book_Struct *, const char * const*)}
> eb.c:777:32: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Book *, const char * const*)’ {aka ‘int (*)(struct EB_Book_Struct *, const char * const*)’}
>   777 |                 EB_Error_Code(*funct) ())
>       |                 ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/eb/eb.h:83:15: note: ‘eb_search_keyword’ declared here
>    83 | EB_Error_Code eb_search_keyword(EB_Book *book,
>       |               ^~~~~~~~~~~~~~~~~
> eb.c: In function ‘font2bitmapformat’:
> eb.c:1370:6: error: too many arguments to function ‘conv_func’; expected 0, have 5
>  1370 |     (*conv_func) (font->bitmap, width, height, buffer, &size);
>       |     ~^~~~~~~~~~~  ~~~~~~~~~~~~
> eb.c: In function ‘rebfont_toxbm’:
> eb.c:1381:36: error: passing argument 2 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1381 |     return font2bitmapformat(font, eb_wide_font_xbm_size,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1325:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1325 |                   EB_Error_Code(*w_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> In file included from eb.c:35:
> /usr/include/eb/font.h:143:15: note: ‘eb_wide_font_xbm_size’ declared here
>   143 | EB_Error_Code eb_wide_font_xbm_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~
> eb.c:1382:30: error: passing argument 3 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1382 |                              eb_narrow_font_xbm_size,
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1326:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1326 |                   EB_Error_Code(*n_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:138:15: note: ‘eb_narrow_font_xbm_size’ declared here
>   138 | EB_Error_Code eb_narrow_font_xbm_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~
> eb.c:1383:30: error: passing argument 4 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1383 |                              eb_bitmap_to_xbm);
>       |                              ^~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(const char *, int,  int,  char *, size_t *) {aka int (*)(const char *, int,  int,  char *, long unsigned int *)}
> eb.c:1330:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(const char *, int,  int,  char *, size_t *)’ {aka ‘int (*)(const char *, int,  int,  char *, long unsigned int *)’}
>  1330 |                   EB_Error_Code(*conv_func) ())
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /usr/include/eb/font.h:148:15: note: ‘eb_bitmap_to_xbm’ declared here
>   148 | EB_Error_Code eb_bitmap_to_xbm(const char *bitmap, int width, int height,
>       |               ^~~~~~~~~~~~~~~~
> eb.c: In function ‘rebfont_toxpm’:
> eb.c:1391:36: error: passing argument 2 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1391 |     return font2bitmapformat(font, eb_wide_font_xpm_size,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1325:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1325 |                   EB_Error_Code(*w_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:144:15: note: ‘eb_wide_font_xpm_size’ declared here
>   144 | EB_Error_Code eb_wide_font_xpm_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~
> eb.c:1392:30: error: passing argument 3 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1392 |                              eb_narrow_font_xpm_size,
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1326:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1326 |                   EB_Error_Code(*n_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:139:15: note: ‘eb_narrow_font_xpm_size’ declared here
>   139 | EB_Error_Code eb_narrow_font_xpm_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~
> eb.c:1393:30: error: passing argument 4 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1393 |                              eb_bitmap_to_xpm);
>       |                              ^~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(const char *, int,  int,  char *, size_t *) {aka int (*)(const char *, int,  int,  char *, long unsigned int *)}
> eb.c:1330:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(const char *, int,  int,  char *, size_t *)’ {aka ‘int (*)(const char *, int,  int,  char *, long unsigned int *)’}
>  1330 |                   EB_Error_Code(*conv_func) ())
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /usr/include/eb/font.h:150:15: note: ‘eb_bitmap_to_xpm’ declared here
>   150 | EB_Error_Code eb_bitmap_to_xpm(const char *bitmap, int width, int height,
>       |               ^~~~~~~~~~~~~~~~
> eb.c: In function ‘rebfont_togif’:
> eb.c:1401:36: error: passing argument 2 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1401 |     return font2bitmapformat(font, eb_wide_font_gif_size,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1325:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1325 |                   EB_Error_Code(*w_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:145:15: note: ‘eb_wide_font_gif_size’ declared here
>   145 | EB_Error_Code eb_wide_font_gif_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~
> eb.c:1402:30: error: passing argument 3 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1402 |                              eb_narrow_font_gif_size,
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1326:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1326 |                   EB_Error_Code(*n_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:140:15: note: ‘eb_narrow_font_gif_size’ declared here
>   140 | EB_Error_Code eb_narrow_font_gif_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~
> eb.c:1403:30: error: passing argument 4 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1403 |                              eb_bitmap_to_gif);
>       |                              ^~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(const char *, int,  int,  char *, size_t *) {aka int (*)(const char *, int,  int,  char *, long unsigned int *)}
> eb.c:1330:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(const char *, int,  int,  char *, size_t *)’ {aka ‘int (*)(const char *, int,  int,  char *, long unsigned int *)’}
>  1330 |                   EB_Error_Code(*conv_func) ())
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /usr/include/eb/font.h:152:15: note: ‘eb_bitmap_to_gif’ declared here
>   152 | EB_Error_Code eb_bitmap_to_gif(const char *bitmap, int width, int height,
>       |               ^~~~~~~~~~~~~~~~
> eb.c: In function ‘rebfont_tobmp’:
> eb.c:1411:36: error: passing argument 2 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1411 |     return font2bitmapformat(font, eb_wide_font_bmp_size,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1325:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1325 |                   EB_Error_Code(*w_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:146:15: note: ‘eb_wide_font_bmp_size’ declared here
>   146 | EB_Error_Code eb_wide_font_bmp_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~
> eb.c:1412:30: error: passing argument 3 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1412 |                              eb_narrow_font_bmp_size,
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1326:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1326 |                   EB_Error_Code(*n_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:141:15: note: ‘eb_narrow_font_bmp_size’ declared here
>   141 | EB_Error_Code eb_narrow_font_bmp_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~
> eb.c:1413:30: error: passing argument 4 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1413 |                              eb_bitmap_to_bmp);
>       |                              ^~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(const char *, int,  int,  char *, size_t *) {aka int (*)(const char *, int,  int,  char *, long unsigned int *)}
> eb.c:1330:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(const char *, int,  int,  char *, size_t *)’ {aka ‘int (*)(const char *, int,  int,  char *, long unsigned int *)’}
>  1330 |                   EB_Error_Code(*conv_func) ())
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /usr/include/eb/font.h:154:15: note: ‘eb_bitmap_to_bmp’ declared here
>   154 | EB_Error_Code eb_bitmap_to_bmp(const char *bitmap, int width, int height,
>       |               ^~~~~~~~~~~~~~~~
> eb.c: In function ‘rebfont_topng’:
> eb.c:1422:36: error: passing argument 2 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1422 |     return font2bitmapformat(font, eb_wide_font_png_size,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1325:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1325 |                   EB_Error_Code(*w_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:147:15: note: ‘eb_wide_font_png_size’ declared here
>   147 | EB_Error_Code eb_wide_font_png_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~
> eb.c:1423:30: error: passing argument 3 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1423 |                              eb_narrow_font_png_size,
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(EB_Font_Code,  size_t *) {aka int (*)(int,  long unsigned int *)}
> eb.c:1326:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(EB_Font_Code,  size_t *)’ {aka ‘int (*)(int,  long unsigned int *)’}
>  1326 |                   EB_Error_Code(*n_size_func) (),
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /usr/include/eb/font.h:142:15: note: ‘eb_narrow_font_png_size’ declared here
>   142 | EB_Error_Code eb_narrow_font_png_size(EB_Font_Code font_code, size_t *size);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~
> eb.c:1424:30: error: passing argument 4 of ‘font2bitmapformat’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1424 |                              eb_bitmap_to_png);
>       |                              ^~~~~~~~~~~~~~~~
>       |                              |
>       |                              EB_Error_Code (*)(const char *, int,  int,  char *, size_t *) {aka int (*)(const char *, int,  int,  char *, long unsigned int *)}
> eb.c:1330:34: note: expected ‘EB_Error_Code (*)(void)’ {aka ‘int (*)(void)’} but argument is of type ‘EB_Error_Code (*)(const char *, int,  int,  char *, size_t *)’ {aka ‘int (*)(const char *, int,  int,  char *, long unsigned int *)’}
>  1330 |                   EB_Error_Code(*conv_func) ())
>       |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> /usr/include/eb/font.h:156:15: note: ‘eb_bitmap_to_png’ declared here
>   156 | EB_Error_Code eb_bitmap_to_png(const char *bitmap, int width, int height,
>       |               ^~~~~~~~~~~~~~~~
> eb.c: In function ‘rebhk_register’:
> eb.c:1534:23: error: assignment to ‘EB_Error_Code (*)(EB_Book *, EB_Appendix *, void *, EB_Hook_Code,  int,  const unsigned int *)’ {aka ‘int (*)(struct EB_Book_Struct *, struct EB_Appendix_Struct *, void *, int,  int,  const unsigned int *)’} from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
>  1534 |         hook.function = (int (*)()) (text_hook);
>       |                       ^
> make[1]: *** [Makefile:248: eb.o] Error 1



More information about the Pkg-ruby-extras-maintainers mailing list