Nmap Development mailing list archives

Re: Some patches


From: David Fifield <david () bamsoftware com>
Date: Wed, 10 Oct 2012 22:43:43 -0700

On Mon, Oct 08, 2012 at 10:56:25AM +0400, arrowdodger wrote:
For that hop_cache thing:

In file included from traceroute.cc:134:
In file included from ./nmap_dns.h:96:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:593:
/usr/include/c++/v1/utility:220:9: error: field has incomplete type 'const
HopIdent'
    _T1 first;
        ^
...
traceroute.cc:173:41: note: in instantiation of exception specification for
'map' requested here
static std::map<struct HopIdent, Hop *> hop_cache;
                                        ^
traceroute.cc:173:24: note: forward declaration of 'HopIdent'
static std::map<struct HopIdent, Hop *> hop_cache;
                       ^
It basically says, that it can't instantiate std::map without knowning what
HopIdent is.

My clang version is "FreeBSD clang version 3.1 (branches/release_31 156863)
20120523"
Note that i'm building with "-std=c++11 -stdlib=libc++" flags.
I think, you haven't catched these error because you were building with
default std (c++03, AFAIK).

Okay I see. My Debian only has Clang 3.0, which doesn't seem to give
this error message, but I moved HopIdent in r30011 so it should work for
you now.

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


Current thread: