Opened 18 years ago

Closed 18 years ago

#10480 closed defect (worksforme)

BUG: nmap-4.10 nmapfe (+gtk2 variant) fails

Reported by: markd@… Owned by: opendarwin.org@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: opendarwin.org@…, markd@…
Port:

Description

The top level configure script finds GTK2:

checking for pkg-config... /opt/local/bin/pkg-config checking If you have GTK+ installed... 2.8.17

But the configure in nmapfe/ does not:

configure: configuring in nmapfe configure: running /bin/sh './configure' --prefix=/opt/local '--prefix=/opt/local' '--infodir=${prefix}/share/info' '--with-openssl=/opt/local' '--with-libpcre=/opt/local' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for pkg-config... /opt/local/bin/pkg-config checking for GTK+ - version >= 2.0.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: NMAPFE WILL NOT BE BUILT -- BUT NMAP SHOULD STILL WORK

But it still tries to build it anyway but fails:

/usr/bin/ld: warning prebinding disabled because dependent library: /opt/local/lib/libpcre.0.dylib is not prebound Building NmapFE graphical frontend gcc -no-cpp-precomp -g -O2 -Wall -I../nbase -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DMISSING_GTK=1 -DMACOSX=1 -DVERSION=\"4.11\" -DHAVE_CONFIG_H=1 -I. -c nmapfe.c nmapfe.c:114:2: error: #error "Your system does not appear to have GTK (www.gtk.org) installed. Thus the Nmap X Front End will not compile. You should still be able to use Nmap the normal way (via text console). GUIs are for wimps anyway :)" make[1]: * [nmapfe.o] Error 1 make: * [nmapfe/nmapfe] Error 2

Change History (2)

comment:1 Changed 18 years ago by opendarwin.org@…

Status: newassigned

Please check the configure script outputs (config.log, config.status), they may have clues as to why it failed.

comment:2 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: worksforme
Status: assignedclosed

Well that's interesting. I tried it several times before but it installs and works fine now. I'd be in favor of renaming the variant to nmapfe to make it more obvious what its purpose is. But that's your call. Thanks!

Note: See TracTickets for help on using tickets.