Skip to content

Compilation error with libcaca libcaca-0.99.beta20

With vlc-3.X and libcaca 0.99-beta20

Build fails with fedora 36: https://koji.rpmfusion.org/kojifiles/work/tasks/7782/517782/build.log

../doltcompile gcc -DHAVE_CONFIG_H -I. -I..  -DMODULE_STRING=\"$(p="video_output/fb.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p=$(echo "$p"|sed 's/-/_/g'); p="${p%.lo}"; echo "$p")\" -D__PLUGIN__  -I./access -I./codec -I../include -I../include   -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -fvisibility=hidden -c -o video_output/fb.lo video_output/fb.c
make[4]: Leaving directory '/builddir/build/BUILD/vlc-a108715f1d0f6e7c878a5b9ba01c799f08dc78f3/modules'
make[4]: Entering directory '/builddir/build/BUILD/vlc-a108715f1d0f6e7c878a5b9ba01c799f08dc78f3/modules'
../doltlibtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DMODULE_STRING=\"$(p="video_output/libcaca_plugin_la-caca.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p=$(echo "$p"|sed 's/-/_/g'); p="${p%.lo}"; echo "$p")\" -D__PLUGIN__  -I./access -I./codec -I../include -I../include    -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -fvisibility=hidden -c -o video_output/libcaca_plugin_la-caca.lo `test -f 'video_output/caca.c' || echo './'`video_output/caca.c
video_output/caca.c:77:5: error: unknown type name 'cucul_canvas_t'
   77 |     cucul_canvas_t *cv;
      |     ^~~~~~~~~~~~~~
video_output/caca.c:79:5: error: unknown type name 'cucul_dither_t'
   79 |     cucul_dither_t *dither;
      |     ^~~~~~~~~~~~~~
video_output/caca.c: In function 'Open':
video_output/caca.c:156:15: error: implicit declaration of function 'cucul_create_canvas'; did you mean 'caca_create_canvas'? [-Werror=implicit-function-declaration]
  156 |     sys->cv = cucul_create_canvas(0, 0);
      |               ^~~~~~~~~~~~~~~~~~~
      |               caca_create_canvas
video_output/caca.c:156:13: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  156 |     sys->cv = cucul_create_canvas(0, 0);
      |             ^
video_output/caca.c:168:50: warning: passing argument 1 of 'caca_create_display_with_driver' from incompatible pointer type [-Wincompatible-pointer-types]
  168 |     sys->dp = caca_create_display_with_driver(sys->cv, driver);
      |                                               ~~~^~~~
      |                                                  |
      |                                                  int *
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information