Nmap Development mailing list archives

Check for GTK+ and PyGTK in configure


From: David Fifield <david () bamsoftware com>
Date: Fri, 3 Oct 2008 19:42:18 -0600

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.

David Fifield

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


Current thread: