alibaba / alibaba/erlang_multi_pollset

Can not compile on Mac

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
223
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with raw_socket.cpp at the reported lines 751, 1189, 1356, and 2351, then review the make compile command shown in the issue. Reproduce the build on macOS and investigate the reported SOCK_CLOEXEC, MSG_NOSIGNAL, and exception-specification errors. Done means make completes successfully on the affected Mac/Erlang setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, erlang
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.