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 not compile on Mac #3

Open
killme2008 opened this issue Dec 6, 2016 · 1 comment
Open

Can not compile on Mac #3

killme2008 opened this issue Dec 6, 2016 · 1 comment

Comments

@killme2008
Copy link

Show error as below:

$ make

==> erlang_multi_pollset (clean)
==> erlang_multi_pollset (compile)
c++ -g -Wall -O2 -fno-strict-aliasing -DEV_STANDALONE -I./ -I/usr/local/Cellar/erlang/19.1/lib/erlang/erts-8.1/include -fPIC -dynamiclib -undefined dynamic_lookup -c raw_socket.cpp
clang: warning: argument unused during compilation: '-dynamiclib'
clang: warning: argument unused during compilation: '-undefined dynamic_lookup'
raw_socket.cpp:751:40: error: use of undeclared identifier 'SOCK_CLOEXEC'
    fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
                                       ^
raw_socket.cpp:1189:37: error: use of undeclared identifier 'MSG_NOSIGNAL'
        int sent = send(fd, p, len, MSG_NOSIGNAL);
                                    ^
raw_socket.cpp:1356:37: error: use of undeclared identifier 'MSG_NOSIGNAL'
        sent = sendmsg(fd, &msghdr, MSG_NOSIGNAL);
                                    ^
raw_socket.cpp:2351:38: error: target exception specification is not superset of source
    ev_set_loop_release_cb(ps->loop, l_release, l_acquire);
                                     ^
4 errors generated.
make[1]: *** [raw_socket.o] Error 1
ERROR: Command [compile] failed!
make: *** [compile] Error 1
@yy-chen
Copy link

yy-chen commented Mar 31, 2017

mac use clang, you should use gcc.

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