conmon
conmon copied to clipboard
Can't build on MacOS
I got this error when I tried to build:
> make
cc -std=c99 -Os -Wall -Wextra -Werror -I/opt/homebrew/Cellar/glib/2.76.1/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.76.1/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.42/include -DVERSION=\"2.1.7\" -DGIT_COMMIT=\""f633919178f6c8ee4fb41b848a056ec33f8d707d"\" -o src/conmon.o -c src/conmon.c
src/conmon.c:161:8: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (pipe2(fds, O_CLOEXEC) < 0)
^
src/conmon.c:161:8: note: did you mean 'pipe'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:470:6: note: 'pipe' declared here
int pipe(int [2]);
^
src/conmon.c:171:7: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (pipe2(fds, O_CLOEXEC) < 0)
^
src/conmon.c:190:6: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (pipe2(fds, O_CLOEXEC) < 0)
^
3 errors generated.
make: *** [src/conmon.o] Error 1
I don't expect conmon to build on macos. The closest it comes to is freeBSD, but I don't think anyone's ported it over to mac. I recommend building in a linux VM