Opened 7 years ago

Closed 7 years ago

#52818 closed defect (invalid)

proxychains-ng @4.10_0.darwin_15.x86_64 errors when running with nmap or i386 apps

Reported by: jrespeto (Jonthan) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: elcapitan Cc: xuchunyang (Chunyang Xu)
Port: proxychains-ng

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,

Was getting this error and saw brew had the same issues with a fix. https://gist.github.com/y3dips/0972e13256f947b0004a

Look like it was not configured with the --fat-binary options


here is the error im getting.

proxychains4 nmap -v -sT x.x.x.x 
[proxychains] config file found: /opt/local/etc/proxychains.conf
[proxychains] preloading /opt/local/lib/libproxychains4.dylib
dyld: could not load inserted library '/opt/local/lib/libproxychains4.dylib' because no suitable image found.  Did find:
	/opt/local/lib/libproxychains4.dylib: mach-o, but wrong architecture

Trace/BPT trap: 5

works with x86_64 apps

proxychains4 curl -v ifconfig.io
[proxychains] config file found: /opt/local/etc/proxychains.conf
[proxychains] preloading /opt/local/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.10
* Rebuilt URL to: ifconfig.io/
*   Trying 224.0.0.1...
* TCP_NODELAY set
[proxychains] Strict chain  ...  127.0.0.1:9091  ...  ifconfig.io:80  ...  OK
* Connected to ifconfig.io (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: ifconfig.io
> User-Agent: curl/7.51.0
> Accept: */*
>

lipo -info /opt/local/lib/libproxychains4.dylib
Non-fat file: /opt/local/lib/libproxychains4.dylib is architecture: x86_64
lipo -info /opt/local/bin/curl
Non-fat file: /opt/local/bin/curl is architecture: x86_64
lipo -info /usr/local/bin/nmap
Non-fat file: /usr/local/bin/nmap is architecture: i386

Let me know if you need any more info.

Thank you,

Jonathan

Change History (1)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: openmaintainer@… removed
Description: modified (diff)
Resolution: invalid
Status: newclosed

Your problem is that you're trying to use a non-MacPorts 32-bit copy of nmap.

If you were to use the MacPorts copy of nmap, you'd get a 64-bit version which would work with the 64-bit proxychains-ng.

If you want a universal (32-bit and 64-bit) proxychains-ng you can install it with the universal variant.

We don't support installing software in /usr/local while using MacPorts because it can cause problems; see wiki:FAQ#usrlocal

Note: See TracTickets for help on using tickets.