proxychains
proxychains copied to clipboard
Hope to provide a version of apple silicon
Can't compile on m1 temporarily, hope to provide relevant support.
Can you share an error ? I tried to compile it on rpi4 with linux and that worked.
Hi, I've faced with the same issue, It must be related to how configure script works.
➜ proxychains git:(master) ./configure
Darwin
done, now run make && make install
➜ proxychains git:(master) make
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DIS_MAC=1 -arch x86_64 -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.dylib\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/core.o src/core.c
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DIS_MAC=1 -arch x86_64 -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.dylib\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/common.o src/common.c
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DIS_MAC=1 -arch x86_64 -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.dylib\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/libproxychains.o src/libproxychains.c
cc -shared -fPIC -arch x86_64 -lpthread -ldl -Wl, -Wl,-install_name,libproxychains4.dylib -o libproxychains4.dylib src/core.o src/common.o src/libproxychains.o
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DIS_MAC=1 -arch x86_64 -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.dylib\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/main.o src/main.c
cc src/main.o src/common.o -o proxychains4
ld: warning: ignoring file src/common.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file src/main.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:71: proxychains4] Error 1
➜ proxychains git:(master)
and without configure
➜ proxychains git:(master) make
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.so\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/core.o src/core.c
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.so\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/common.o src/common.c
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.so\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/libproxychains.o src/libproxychains.c
cc -shared -fPIC -Wllibproxychains4.so -o libproxychains4.so src/core.o src/common.o src/libproxychains.o
cc -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror -DLIB_DIR=\"/usr/local/lib\" -DINSTALL_PREFIX=\"/usr/local\" -DDLL_NAME=\"libproxychains4.so\" -DSYSCONFDIR=\"/usr/local/etc\" -fPIC -c -o src/main.o src/main.c
cc src/main.o src/common.o -o proxychains4
➜ proxychains git:(master)
The configure uses x86_64 for all macs, workaround is this:
diff --git a/configure b/configure
index 0e21131..474a5f8 100755
--- a/configure
+++ b/configure
@@ -97,8 +97,8 @@ echo sysconfdir=$sysconfdir>>config.mak
if ismac ; then
echo LDSO_SUFFIX=dylib>>config.mak
- echo OS_CFLAGS+=-DIS_MAC=1 -arch x86_64 >>config.mak
- echo OS_LDFLAGS+=-arch x86_64 -lpthread -ldl -Wl,>>config.mak
+ echo OS_CFLAGS+=-DIS_MAC=1 -arch arm64 >>config.mak
+ echo OS_LDFLAGS+=-arch arm64 -lpthread -ldl -Wl,>>config.mak
echo LD_SET_SONAME=-Wl,-install_name,>>config.mak
echo LDSO_SUFFIX=dylib>>config.mak
echo INSTALL_FLAGS=-m>>config.mak
@@ -117,5 +117,3 @@ if isbsd ; then
fi
echo done, now run make \&\& make install
-
-
Stale issue message
so.how to solve??Do you have any friends to help me?
/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' could not be loaded: tried: '/usr/local/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')), '/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (no such file), '/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')) dyld[19534]: tried: '/usr/local/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')), '/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (no such file), '/opt/homebrew/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e'))
Stale issue message