Nmap Development mailing list archives

Re: nmap-svn compile errors: nping/common_modified.cc


From: Luis MartinGarcia <luis.mgarc () gmail com>
Date: Fri, 23 Apr 2010 11:41:53 +0200

Hi Forrest,

Thank you for reporting this problem. Apparently there is some problem
with the definition of the max() macro so I've changed it to MAX and
added some checks to ensure it always gets defined.

Revision r17378 should fix this particular issue, although you might
find additional compiler errors. Please let me know if that happens.

Regards,

Luis MartinGarcia.



On Fri, Apr 23, 2010 at 12:41 AM, Forrest Aldrich <forrie () gmail com> wrote:

I searched the archives on the web page, but didn't find a current reference to this.

With the latest svn checkout of subversion, the following error is encountered (RHEL 5.5) when trying to compile 
nping:

make nping
make[3]: Entering directory `/usr/local/src/nmap/nmap-svn/nping'
g++ -c -I../libdnet-stripped/include -I../libpcap -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing 
-DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"http://nmap.org/nping\"; -DNPING_PLATFORM=\"i686-pc-linux-gnu\" 
-DNPINGDATADIR=\"/usr/local/share/nping\" -D_FORTIFY_SOURCE=2 common_modified.cc -o common_modified.o
common_modified.cc: In function ‘const char* ippackethdrinfo(const u8*, u32, int)’:
common_modified.cc:1642: error: no matching function for call to ‘max(unsigned int, int)’
make[3]: *** [common_modified.o] Error 1



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


Current thread: