rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

Build error on macOS: `core.c: error: macro "memcpy" passed 6 arguments, but takes just 3` #578

Closed barracuda156 closed 2 months ago

barracuda156 commented 2 months ago
src/core.c: In function 'proxy_getaddrinfo':
src/core.c:1002:46: error: macro "memcpy" passed 6 arguments, but takes just 3
 1002 |                        (char[]){127,0,0,1}, 4);
      |                                              ^
In file included from /usr/include/string.h:148,
                 from src/core.c:21:
/usr/include/secure/_string.h:50:9: note: macro "memcpy" defined here
   50 | #define memcpy(dest, src, len)                                  \
      |         ^~~~~~
src/core.c:1001:17: warning: statement with no effect [-Wunused-value]
 1001 |                 memcpy(&((struct sockaddr_in *) &space->sockaddr_space)->sin_addr,
      |                 ^~~~~~
make: *** [src/core.o] Error 1