Nmap Development mailing list archives

Re: nmap-error


From: David Fifield <david () bamsoftware com>
Date: Sun, 30 Jan 2011 11:17:40 -0800

On Sun, Jan 30, 2011 at 09:10:18AM -0800, David Fifield wrote:
On Sat, Jan 29, 2011 at 01:02:02PM +0100, yxynaxen wrote:

Hi ...

... new version (5.50) doesn't start up ... terminal shows this (if
I start :

--------
deep-liquid:~ yxynaxen$ /Applications/Zenmap.app/Contents/MacOS/Zenmap
; exit;
Traceback (most recent call last):
  File "/Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py",
line 174, in <module>
    os.execl(os.path.join(os.path.dirname(sys.argv[0]),
"zenmap.bin"), *sys.argv)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py",
line 322, in execl
OSError: [Errno 86] Bad CPU type in executable
logout

[Prozess beendet]
--------

... running a PowerMac G5 2,5 MHz OS 10.5.8 ...

You are right. We intend to make a universal binary, but somehow
zenmap.bin (and not the other executables) is i386-only.

$ file /Applications/Zenmap.app/Contents/MacOS/*
/Applications/Zenmap.app/Contents/MacOS/Zenmap:            Mach-O universal binary with 2 architectures
/Applications/Zenmap.app/Contents/MacOS/Zenmap (for architecture ppc):  Mach-O executable ppc
/Applications/Zenmap.app/Contents/MacOS/Zenmap (for architecture i386): Mach-O executable i386
/Applications/Zenmap.app/Contents/MacOS/python:            Mach-O universal binary with 2 architectures
/Applications/Zenmap.app/Contents/MacOS/python (for architecture i386): Mach-O executable i386
/Applications/Zenmap.app/Contents/MacOS/python (for architecture ppc):  Mach-O executable ppc
/Applications/Zenmap.app/Contents/MacOS/zenmap.bin:        Mach-O executable i386
/Applications/Zenmap.app/Contents/MacOS/zenmap_wrapper.py: a python script text executable

I think I found the cause of this and it's fixed in r22116. It appears
that something changed in distutils so that py2app didn't think it
needed to install a universal bootstrap binary. I changed the build
process to set the environment variable ARCHFLAGS which makes distutils
detect a universal environment. Thanks for taking the time to make this
report.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: