Skip to content

Installation error #7

Description

@garbofrogman

I'm not able to install this using the instructions in the README. I get the following outputs:

meson setup --reconfigure build
The Meson build system
Version: 1.5.1
Source dir: /home/myname/Apps/github-stuff/input-emulator
Build dir: /home/myname/Apps/github-stuff/input-emulator/build
Build type: native build
Project name: input-emulator
Project version: 0.9
C compiler for the host machine: clang (clang 19.1.7 "clang version 19.1.7 (Fedora 19.1.7-2.fc41)")
C linker for the host machine: clang ld.bfd 2.43.1-5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Library rt found: YES
Configuring input-emulator.1 using configuration
Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0
Found CMake: /usr/bin/cmake (3.30.7)
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Build targets in project: 1

Found ninja-1.12.1 at /usr/bin/ninja
Cleaning... 0 files.

meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/myname/Apps/github-stuff/input-emulator/build
ninja: Entering directory `/home/myname/Apps/github-stuff/input-emulator/build'
[1/7] Compiling C object src/input-emulator.p/service.c.o
FAILED: src/input-emulator.p/service.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/service.c.o -MF src/input-emulator.p/service.c.o.d -o src/input-emulator.p/service.c.o -c ../src/service.c
../src/service.c:53:5: error: use of undeclared identifier 'pid_t'
   53 |     pid_t pid, sid;
      |     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[2/7] Compiling C object src/input-emulator.p/message.c.o
FAILED: src/input-emulator.p/message.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/message.c.o -MF src/input-emulator.p/message.c.o.d -o src/input-emulator.p/message.c.o -c ../src/message.c
../src/message.c:48:9: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
   48 |     int sockfd;
      |         ^
../src/message.c:42:13: note: previous declaration is here
   42 | static int *sockfd = &new_srv_sockfd;
      |             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[3/7] Compiling C object src/input-emulator.p/options.c.o
FAILED: src/input-emulator.p/options.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/options.c.o -MF src/input-emulator.p/options.c.o.d -o src/input-emulator.p/options.c.o -c ../src/options.c
../src/options.c:182:37: error: call to undeclared function 'strdup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  182 |                     option.string = strdup(argv[optind]);
      |                                     ^
../src/options.c:182:37: note: did you mean 'strcmp'?
/usr/include/string.h:156:12: note: 'strcmp' declared here
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[4/7] Compiling C object src/input-emulator.p/touch.c.o
FAILED: src/input-emulator.p/touch.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/touch.c.o -MF src/input-emulator.p/touch.c.o.d -o src/input-emulator.p/touch.c.o -c ../src/touch.c
../src/touch.c:86:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   86 |     usleep(duration*1000);
      |     ^
../src/touch.c:86:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
  464 | extern unsigned int sleep (unsigned int __seconds);
      |                     ^
1 error generated.
[5/7] Compiling C object src/input-emulator.p/keyboard.c.o
FAILED: src/input-emulator.p/keyboard.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/keyboard.c.o -MF src/input-emulator.p/keyboard.c.o.d -o src/input-emulator.p/keyboard.c.o -c ../src/keyboard.c
../src/keyboard.c:587:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  587 |     usleep(kbd_type_delay*1000);
      |     ^
../src/keyboard.c:587:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
  464 | extern unsigned int sleep (unsigned int __seconds);
      |                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[6/7] Compiling C object src/input-emulator.p/mouse.c.o
FAILED: src/input-emulator.p/mouse.c.o 
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/mouse.c.o -MF src/input-emulator.p/mouse.c.o.d -o src/input-emulator.p/mouse.c.o -c ../src/mouse.c
../src/mouse.c:109:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  109 |     usleep(1000);
      |     ^
../src/mouse.c:109:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
  464 | extern unsigned int sleep (unsigned int __seconds);
      |                     ^
1 error generated.
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions