nmap 3.30 with protoc version patch. scan with -sV looks like: Port State Service Protocol Version 22/tcp open ssh SSH 2.0-OpenSSH_2.9.9p2 Reproducible: Always Steps to Reproduce: 1. add patch from 2. 3. Actual Results: created a new ebuild
Created attachment 15029 [details] ebuild for nmap 3.30 + countig patch + protoc version patch created a ebuild for this. works on my box with +gtk -gnome should work on other...
Created attachment 15030 [details] ebuild for nmap 3.30 + countig patch + protoc version patch
no change to get this working gcc -march=i686 -O3 -pipe -ffast-math -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DPCAP_TIMEOUT_IGNORED=1 -DVERSION=\"3.30+V\" -DHAVE_CONFIG_H=1 -I. -L../nbase -o nmapfe nmapfe.o nmapfe_sig.o nmapfe_error.o -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lnbase make: *** [verscan.o] Error 1 make: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/nmap-3.30-r1/work/nmap-3.30/nmapfe'
strange. it works over here: g++ -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.30+V\" -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i686-pc-linux-gnu\" -DNMAPDATADIR=\"/usr/share/nmap\" -Ilibpcap-possiblymodified verscan.cc -o verscan.o gcc -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -c -o regex.o regex.c Building NmapFE graphical frontend i USE="+gtk -gnome" for that one and compiler flags are "-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" g++ and gcc should be the same...
martin: you pasted an incomplete error log ... notice the makefile saying it failed building one object when the last compile line you show is making a diff object ... try turning off emake
no change to get this working with gcc 2.95
Created attachment 17536 [details] nmap-3.30-r1.ebuild update for the V+3.00 patch
unfortunately, martin was right, 2.95.3 doesnt work ... root@rux0r 0 nmap-3.30 # make g++ -c -march=i686 -O3 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.30+V\" -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i686-pc-linux-gnu\" -DNMAPDATADIR=\"/usr/share/nmap\" -Ilibpcap-possiblymodified -I. -Imenes verscan.cc -o verscan.o verscan.cc: In method `bool ScanStatus::Execute(unsigned int)': verscan.cc:619: ambiguous overload for `bool ? int : ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >' verscan.cc:619: candidates are: operator ?:(bool, ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >, ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >) <builtin> verscan.cc:619: operator ?:(bool, xml::Element *, xml::Element *) <builtin> verscan.cc:628: ambiguous overload for `bool ? int : ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >' verscan.cc:628: candidates are: operator ?:(bool, ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >, ext::Handle<xml::Element,ext::ReferenceManager<xml::Element> >) <builtin> verscan.cc:628: operator ?:(bool, xml::Element *, xml::Element *) <builtin> make: *** [verscan.o] Error 1
okey, sorry guys. strange it works on my box
oh some one could close this beacause as far I see this patch is allready in the regular release of nmap :)
sounds good :)