Nmap Development mailing list archives
Re: Check for GTK+ and PyGTK in configure
From: "Luis A. Bastiao Silva" <luis.kop () gmail com>
Date: Sat, 4 Oct 2008 10:41:26 +0100
Hi, Well, I didn't know if I should post it. But after made svn update, I tried configure nmap. Just a simple command: ./configure --prefix=/usr And just for the record: checking for /usr/bin/python platform... (cached) linux2 checking for /usr/bin/python script directory... (cached) ${prefix}/lib/python2.5/site-packages checking for /usr/bin/python extension module directory... (cached) ${exec_prefix}/lib/python2.5/site-packages checking for pkg-config... /usr/bin/pkg-config checking for GTK+ - version >= 2.8.0... no *** Could not run GTK+ test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GTK+ is incorrectly installed. configure: WARNING: Not building Zenmap because GTK+ 2.8.0 or later was not found
import gtk gtk.gtk_version
(2, 12, 9)
And same in a Mac box:
gtk.gtk_version
(2, 13, 1)
On Sat, Oct 4, 2008 at 2:42 AM, David Fifield <david () bamsoftware com> wrote:
Hi, I went through a round of email debugging with a Zenmap user who couldn't get Zenmap to work. It turned out that he was on Solaris using and old version of PyGTK. PyGTK 2.8.0 is required for the Cairo functions used by the topology view. When he upgraded PyGTK, it still didn't work. He was using an old version of GTK+ also, and apparently PyGTK configures itself not to include functions that are not in the underlying GTK+. He eventually got Zenmap to work after upgrading GTK+ also. I committed a change that makes configure look for GTK+ and PyGTK in addition to Python when deciding whether to build Zenmap. This shouldn't affect most users, only those with old libraries or who are missing GTK+ or PyGTK+. The warning shown by the configure script will give a clue as to what's missing. I tested it on a computer with both GTK+ and PyGTK and on a computer with neither. I hesitated a bit before committing this because it makes the configure script use the pkg-config program, which it didn't before. (It's not required in the sense that configure will run without pkg-config, but it's required for the GTK+ and PyGTK tests to pass.) But configure used to use pkg-config to search for GTK+ way back in the NmapFE days, all the way up to r6905, so I think it's all right.
About the revision in try: r10484 | david | 2008-10-04 02:24:38 +0100 (Sat, 04 Oct 2008) | 4 lines is it ok, right?
David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
I don't know if what I report is really a problem, but let me know if you need some additional results. Best Regards, -- Luis A. Bastiao Silva _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Check for GTK+ and PyGTK in configure David Fifield (Oct 03)
- Re: Check for GTK+ and PyGTK in configure Luis A. Bastiao Silva (Oct 04)
- Re: Check for GTK+ and PyGTK in configure David Fifield (Oct 04)
- Re: Check for GTK+ and PyGTK in configure David Fifield (Oct 04)
- Re: Check for GTK+ and PyGTK in configure Luis A. Bastiao Silva (Oct 04)
- Re: Check for GTK+ and PyGTK in configure David Fifield (Oct 04)
- Re: Check for GTK+ and PyGTK in configure Luis A. Bastiao Silva (Oct 04)
- Re: Check for GTK+ and PyGTK in configure David Fifield (Oct 04)
- Re: Check for GTK+ and PyGTK in configure Luis A. Bastiao Silva (Oct 04)