-
Notifications
You must be signed in to change notification settings - Fork 499
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
Cannot make
on macOS
#57
Comments
I can compile on macOS. What's your PATH? My setup is as follows:
{ pkgs ? import <nixpkgs> {}}:
with pkgs;
mkShell {
buildInputs = [ zlib openssl ];
} $ nix-shell
[nix-shell:~/Git/iodine]$ make
make[1]: Entering directory '/Users/siraben/Git/iodine/src'
OS is DARWIN, arch is x86_64
CC tun.c
CC dns.c
CC read.c
CC encoding.c
CC login.c
CC base32.c
CC base64.c
Making base64u.c
CC base64u.c
CC base128.c
CC md5.c
CC common.c
common.c:283:2: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
daemon(0, 0);
^
/nix/store/4km3r63w345qzmxw9q6473xapg6l1kj4-Libsystem-1238.60.2/include/stdlib.h:285:6: note: 'daemon' has been explicitly marked deprecated here
int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WAT...
^
1 warning generated.
CC iodine.c
CC client.c
CC util.c
LD ../bin/iodine
CC iodined.c
CC user.c
CC fw_query.c
LD ../bin/iodined
make[1]: Leaving directory '/Users/siraben/Git/iodine/src' |
It is also working running in github actions: https://github.com/yarrick/iodine/actions/workflows/macos.yml Something is strange with your setup. Try GNU make and see if that works better. |
The |
I just tested on master, and I still have the same issue except it doesn't loop anymore. I'm using GNU Make:
|
How did you get the files? With git, a zipfile from github or some other way? Can you post the output of Which shell are you using? |
I just cloned this git repository (hosted on GitHub).
I'm using the default on the operating system: zsh, I have not modified it. The error given is from I was able to build iodine by just running So this problem is really specific to the following line: Line 21 in 25867f2
|
* fixes the build for some people yarrick#57 * cleaner and more idiomatic
* fixes the build for some people yarrick#57 * cleaner and more idiomatic
The issue on my system seems to be linked to CDPATH, I'm not sure how that works, but either way the PR should fix it. |
I guess |
Hi, I'm on MacOS 11.4 (Big Sur) (M1) and I can't compile iodine.
I get the following error:
I'm not sure where to look for what could be causing the issue.
The text was updated successfully, but these errors were encountered: