artemsen / swaykbdd

Keyboard layout switcher for Sway
MIT License
72 stars 5 forks source link

Build failed under FreeBSD 13.1 #5

Closed iron-udjin closed 1 year ago

iron-udjin commented 1 year ago

$ meson build

The Meson build system
Version: 1.0.0
Source dir: /usr/home/iron/apps/swaykbdd
Build dir: /usr/home/iron/apps/swaykbdd/build
Build type: native build
Project name: swaykbdd
Project version: 1.1
C compiler for the host machine: cc (clang 14.0.5 "FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the host machine: cc ld.lld 14.0.5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/local/bin/pkg-config (1.8.0)
Run-time dependency json-c found: YES 0.16
Build targets in project: 1

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

$ ninja -C build

ninja: Entering directory `build'
[3/4] Compiling C object swaykbdd.p/src_sway.c.o
FAILED: swaykbdd.p/src_sway.c.o 
cc -Iswaykbdd.p -I. -I.. -I/usr/local/include -I/usr/local/include/json-c -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c99 -O0 -g '-DVERSION="1.1"' -D_POSIX_C_SOURCE=200809 -MD -MQ swaykbdd.p/src_sway.c.o -MF swaykbdd.p/src_sway.c.o.d -o swaykbdd.p/src_sway.c.o -c ../src/sway.c
../src/sway.c:187:18: error: use of undeclared identifier 'EBADRQC'
            rc = EBADRQC;
                 ^
../src/sway.c:193:22: error: use of undeclared identifier 'EBADRQC'
                rc = EBADRQC;
                     ^
../src/sway.c:272:18: error: use of undeclared identifier 'EBADRQC'
            rc = EBADRQC;
                 ^
3 errors generated.
ninja: build stopped: subcommand failed.