brummer10 / Xmonk.lv2

An LV2 toy
Other
6 stars 3 forks source link

Build error on Fedora 40 #9

Open ycollet opened 5 months ago

ycollet commented 5 months ago

I am trying to build xmonk 0.4 on Fedora 40. I met a build error during compilation:

gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -D_FORTIFY_SOURCE=2 -I. -I./dsp -I./plugin -fPIC -DPIC -O2 -Wall -funroll-loops -fstack-protector -ffast-math -fomit-frame-pointer -fstrength-reduce -fdata-sections -Wl,--gc-sections -Wl,-z,relro,-z,now -Wl,--exclude-libs,ALL -msse3 -mfpmath=sse -Wl,-z,nodelete gui/Xmonk_x11ui.c -I./gui -I../libxputty/libxputty/include/ -Wl,-z,noexecstack -fvisibility=hidden -L. ../libxputty/libxputty/libxputty.a -shared `pkg-config --cflags --libs cairo x11` -lm  -o Xmonk_ui.so
gui/Xmonk_x11ui.c:295:46: warning: ‘struct _LV2UI_Descriptor’ declared inside parameter list will not be visible outside of this definition or declaration
  295 | static LV2UI_Handle instantiate(const struct _LV2UI_Descriptor * descriptor,
      |                                              ^~~~~~~~~~~~~~~~~
gui/Xmonk_x11ui.c:544:5: error: initialization of ‘void * (*)(const struct LV2UI_Descriptor *, const char *, const char *, void (*)(void *, uint32_t,  uint32_t,  uint32_t,  const void *), void *, void **, const LV2_Feature * const*)’ {aka ‘void * (*)(const struct LV2UI_Descriptor *, const char *, const char *, void (*)(void *, unsigned int,  unsigned int,  unsigned int,  const void *), void *, void **, const LV2_Feature * const*)’} from incompatible pointer type ‘void * (*)(const struct _LV2UI_Descriptor *, const char *, const char *, void (*)(void *, uint32_t,  uint32_t,  uint32_t,  const void *), void *, void **, const LV2_Feature * const*)’ {aka ‘void * (*)(const struct _LV2UI_Descriptor *, const char *, const char *, void (*)(void *, unsigned int,  unsigned int,  unsigned int,  const void *), void *, void **, const LV2_Feature * const*)’} [-Wincompatible-pointer-types]
  544 |     instantiate,
      |     ^~~~~~~~~~~
gui/Xmonk_x11ui.c:544:5: note: (near initialization for ‘descriptor.instantiate’)
make[1]: *** [Makefile:100: Xmonk] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/Xmonk.lv2/Xmonk'
make: *** [Makefile:18: Xmonk] Error 2
brummer10 commented 5 months ago

This is fixed in git since Oct 27, 2020

https://github.com/brummer10/Xmonk.lv2/commit/2ade70e8a9bc435d3a6a8ed2da6914681ff6f039