Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Version display patch
From: ambarisha b <b.ambarisha () gmail com>
Date: Tue, 8 Feb 2011 22:27:02 +0530

That's a linker error.pcap_version was not from the external
interface.In windows ,may be that internal library file isn't linked
with nmap.cc.Anyway I have removed the pcap_version and added
pcap_lib_version() which is part of the external interface.I setup a
windows test environment and it compiled fine.I have attached the
updated patch.
Thomas, can you confirm this ? Thanks.

Regards
Ambarisha

On Mon, Feb 7, 2011 at 8:19 AM, Thomas Buchanan
<TBuchanan () thecompassgrp net> wrote:
-----Original Message-----
From: ambarisha b [mailto:b.ambarisha () gmail com]
Sent: Sunday, February 06, 2011 2:40 PM
To: Thomas Buchanan; nmap-dev () insecure org
Subject: Re: Version display patch

David, thanks for the revised patch.I have attached the patch after
making the changes that you pointed out.

Thomas, thanks for pointing that out.Can you post the error you got on
including dnet_winconfig.h ?

Regards
Ambarisha


I tried the updated patch you attached, but with the following line:

#include "libdnet-stripped/include/config.h"

Changed to:

#include "libdnet-stripped/include/dnet_winconfig.h"

This time I didn't get a compile error with dnet_winconfig.h, but did
get the following linking error:
4>nmap.obj : error LNK2001: unresolved external symbol "char const *
const pcap_version" (?pcap_version@@3QBDB)
4>.\Release/nmap.exe : fatal error LNK1120: 1 unresolved externals

Any ideas?

Thanks,

Thomas

Attachment: nmap.cc.patch
Description:

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

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]