You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to compile redsocks on an M1 MacOS with Monterey.... when I run "make", I get this error:
bash-3.2$ make
cc -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -c -o parser.o parser.c
parser.c:354:6: error: implicit declaration of function 'inet_aton' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (inet_aton(token, &ia)) {
^
parser.c:354:6: note: did you mean 'inet_pton'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arpa/inet.h:78:7: note: 'inet_pton' declared here
int inet_pton(int, const char *, void *);
^
parser.c:411:6: error: implicit declaration of function 'inet_aton' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (inet_aton(host, &ia)) {
^
2 errors generated.
make: *** [parser.o] Error 1
I've looked in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arpa/inet.h and notice the following definitions:
I am unable to compile redsocks on an M1 MacOS with Monterey.... when I run "make", I get this error:
I've looked in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arpa/inet.h and notice the following definitions:
There are no definitions of inet_aton() elsewhere that I can find.
Any help in fixing this?
The text was updated successfully, but these errors were encountered: