Nmap Development mailing list archives

Re: 5.30BETA1 cross-compile regression


From: David Fifield <david () bamsoftware com>
Date: Wed, 4 Aug 2010 15:06:35 -0600

On Wed, Jul 28, 2010 at 07:29:04PM +0100, Nuno Gonçalves wrote:
2010/7/23 David Fifield <david () bamsoftware com>:
This looks like the libdnet you are including with --with-libdnet is too
old. You need to use Nmap's version to get SCTP support. See if
--with-libdnet=included works.

Even so it still encounter problems with, what seems, uClibc. Since 4.50.

/home/nuno/Desktop/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/uClibc++/functional:
In member function 'bool std::less<T>::operator()(const T&, const T&)
const [with T = data_file_record]':
/home/nuno/Desktop/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/uClibc++/list:768:
  instantiated from 'void std::list<T, Allocator>::sort(Compare) [with
Compare = std::less<data_file_record>, T = data_file_record, Allocator
= std::allocator<data_file_record>]'
/home/nuno/Desktop/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/uClibc++/list:747:
  instantiated from 'void std::list<T, Allocator>::sort() [with T =
data_file_record, Allocator = std::allocator<data_file_record>]'
output.cc:2287:   instantiated from here
/home/nuno/Desktop/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/uClibc++/functional:147:
error: passing 'const data_file_record' as 'this' argument of 'bool
data_file_record::operator<(const data_file_record&)' discards
qualifiers
make[4]: *** [output.o] Error 1

Please try r19472. I've never seen this error before, but
data_file_record::operator< should be const anyway. I just committed
that and it may fix the problem.

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: