Home page logo

nmap-dev logo Nmap Development mailing list archives

RE: Compiling Zenmap on Windows
From: "Rob Nicholls" <robert () robnicholls co uk>
Date: Mon, 4 Apr 2011 17:30:18 +0100

I've compared it to my win_install.log file and for some reason yours gets
as far as finding the DLLs and then doesn't say it's trying to create the


Yours says:


*** finding dlls needed ***

Created the missing file dist\py2exe\etc\gtk-2.0\gtkrc


Mine says:


*** finding dlls needed ***

*** create binaries ***

*** byte compile python files ***

writing byte-compilation script

C:\Python27\python.exe -OO c:\users\robert\appdata\local\temp\tmpbodso2.py

byte-compiling C:\Python27\lib\ConfigParser.py to ConfigParser.pyo


removing c:\users\robert\appdata\local\temp\tmpbodso2.py

*** copy extensions ***

copying C:\Python27\DLLs\_hashlib.pyd -> C:\nmap-svn\zenmap\dist\py2exe


*** copy dlls ***

copying C:\Windows\system32\python27.dll -> C:\nmap-svn\zenmap\dist

setting sys.winver for 'C:\nmap-svn\zenmap\dist\python27.dll' to 'zenmap'

copying C:\Python27\w9xpopen.exe -> C:\nmap-svn\zenmap\dist

copying C:\Python27\DLLs\sqlite3.dll -> C:\nmap-svn\zenmap\dist\py2exe

*** copy data files ***

creating C:\nmap-svn\zenmap\dist\share

creating C:\nmap-svn\zenmap\dist\share\zenmap

creating C:\nmap-svn\zenmap\dist\share\zenmap\pixmaps

copying share\zenmap\pixmaps\throbber.gif ->


The following modules appear to be missing

['_scproxy', 'gdk', 'hildon', 'pysqlite2', 'unix', 'glib.GError',
'glib.IOChannel', 'glib.IO_ERR', 'glib.IO_FLAG_APPEND',
'glib.IO_HUP', 'glib.IO_IN', 'glib.IO_NVAL', 'glib.IO_OUT', 'glib.IO_PRI',
'glib.IO_STATUS_NORMAL', 'glib.Idle', 'glib.MainContext', 'glib.MainLoop',
'glib.OPTION_FLAG_REVERSE', 'glib.OPTION_REMAINING', 'glib.OptionContext',
'glib.OptionGroup', 'glib.PRIORITY_DEFAULT', 'glib.PRIORITY_DEFAULT_IDLE',
'glib.Pid', 'glib.PollFD', 'glib.SPAWN_CHILD_INHERITS_STDIN',
'glib.Source', 'glib.Timeout', 'glib.child_watch_add',
'glib.filename_display_basename', 'glib.filename_display_name',
'glib.filename_from_utf8', 'glib.get_application_name',
'glib.get_current_time', 'glib.get_prgname', 'glib.glib_version',
'glib.idle_add', 'glib.io_add_watch', 'glib.main_context_default',
'glib.main_depth', 'glib.markup_escape_text', 'glib.set_application_name',
'glib.set_prgname', 'glib.source_remove', 'glib.spawn_async',
'glib.timeout_add', 'glib.timeout_add_seconds',


*** binary dependencies ***

Your executable(s) also depend on these dlls which are not included,

you may or may not need to distribute them.


Make sure you have the license if you distribute any of them, and

make sure you don't distribute files belonging to the operating system.


   USER32.dll - C:\Windows\system32\USER32.dll

   IMM32.DLL - C:\Windows\system32\IMM32.DLL

   SHELL32.DLL - C:\Windows\system32\SHELL32.DLL

   OLE32.dll - C:\Windows\system32\OLE32.dll

   SHLWAPI.DLL - C:\Windows\system32\SHLWAPI.DLL

   WSOCK32.dll - C:\Windows\system32\WSOCK32.dll

   COMCTL32.DLL - C:\Windows\system32\COMCTL32.DLL

   ADVAPI32.DLL - C:\Windows\system32\ADVAPI32.DLL

   msvcrt.dll - C:\Windows\system32\msvcrt.dll

   WS2_32.dll - C:\Windows\system32\WS2_32.dll

   WINSPOOL.DRV - C:\Windows\system32\WINSPOOL.DRV

   GDI32.dll - C:\Windows\system32\GDI32.dll

   gdiplus.dll - gdiplus.dll

   KERNEL32.dll - C:\Windows\system32\KERNEL32.dll

   COMDLG32.DLL - C:\Windows\system32\COMDLG32.DLL

Created the missing file dist\py2exe\etc\gtk-2.0\gtkrc


As you can see, yours doesn't seem to be creating the binaries. I'm not
entirely sure why, as the log doesn't give any details, it seems to just
stop suddenly and move onto the next step. My best guess is there's
something wrong with your build environment. Did you go with the 32-bit
versions of the dependencies? Did you go for the Python 2.7 versions? Did
you install the dependencies using "Run as Administrator" (if applicable)?


You could try running the Zenmap py2exe build command directly from your
zenmap folder:


zenmap>C:\Python27\python.exe setup.py py2exe


We pipe the output into the win_install.log file, but I'm not entirely sure
if errors get piped there too, so you might see some additional output (that
isn't logged to the file) that'll give some clues.




From: Knightmare [mailto:knightmare2600 () googlemail com] 
Sent: 04 April 2011 13:46
To: Rob Nicholls
Subject: Re: Compiling Zenmap on Windows


Hi Rob,

Zenmap.exe was not created.  I've attached the winbuild.log


Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]