osune / MidiJoystick

MidiJoystick is a MIDI client for the Jack Audio Connection Kit on Linux, which lets you use your joystick to emit MIDI commands
MIT License
23 stars 5 forks source link

Compilation on Linux failed: unknown type name ‘sigset_t’ #8

Open relascope opened 11 months ago

relascope commented 11 months ago
Compilation finished.
gcc  -O1 -g -O2 -ffile-prefix-map=/build/gambc-YYEQDb/gambc-4.9.3=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security   -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -fomit-frame-pointer -fPIC -fno-common -mpc64   -D___SINGLE_HOST  -I"/usr/include" -c -o "midijoystick.o" -std=c11 -Wall -g -O0 midijoystick.c
In file included from midijoystick.c:452:
/usr/include/gambit.h:8493:5: error: unknown type name ‘sigset_t’
 8493 |     ___sigset_type sigset[3]; /* increase if other interrupts are added */
      |     ^~~~~~~~~~~~~~
*** ERROR IN ##main -- target compilation or link failed while compiling "/home/guru/src/MidiJoystick/midijoystick.c"
make: *** [Makefile:5: midijoystick] Error 70

Ubuntu 22.04

reproducible.

Am I missing some #defines?

osune commented 11 months ago

Hoi @relascope , I have written this against Gambit 4.2 and haven't got it to compile against newer versions. I assume the cffi has changed and the glue.c/h need to be refactored to work with the new gambit versions. Right now I do not have time to work on this.