Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on MacOS #404

Open
refactormyself opened this issue Apr 13, 2023 · 1 comment
Open

Can't build on MacOS #404

refactormyself opened this issue Apr 13, 2023 · 1 comment

Comments

@refactormyself
Copy link

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

@haircommander
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants