Nmap Development mailing list archives

Re: Nmap 6.0 - 7.01 version source code will not build on CentOS 3.9 (both 32 and 64 bit)


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 28 Dec 2015 09:44:59 -0600

Perry,

Centos 3 reached end-of-life in October 2010, over 5 years ago [1].
Generally, you're running into C++ stdlib differences due to the age of the
OS and its packages (CentOS 3.9 was released in 2007, 8 years ago). We will
not be addressing these issues, I'm sorry.

Dan

[1]
https://wiki.centos.org/FAQ/General#head-fe8a0be91ee3e7dea812e8694491e1dde5b75e6d

On Thu, Dec 24, 2015 at 4:20 PM, Perry Likakis <perrylikakis32 () gmail com>
wrote:

Hi,
I am trying to build Nmap on CentOS 3 on either 32 or 64 bit.  I am NOT
able to build with Nmap version 6.0 or 7.01.  However, 4.90RC1 and 5.51.6
build just fine.  Is Nmap no longer supported on CentOS 3 (I do know that
it is a really old version…)? Do you have any suggestions?

Commands used to build:
bzip2 -cd nmap-7.01.tar.bz2 | tar xvf -
cd nmap-7.01
./configure --prefix=/home/r1test/nmap
make



*Error during make:*

Compiling libpcre

make[1]: Entering directory
`/home/r1test/nmap_source_code/nmap-6.00/libpcre'

cd . && /bin/sh /home/r1test/nmap_source_code/nmap-6.00/missing --run
aclocal-1.10

/home/r1test/nmap_source_code/nmap-6.00/missing: line 52: aclocal-1.10:
command not found

WARNING: `aclocal-1.10' is missing on your system.  You should only need
it if

         you modified `acinclude.m4' or `configure.ac'.  You might want

         to install the `Automake' and `Perl' packages.  Grab them from

         any GNU archive site.

cd . && /bin/sh /home/r1test/nmap_source_code/nmap-6.00/missing --run
autoconf

aclocal.m4:20: warning: this file was generated for autoconf 2.63.

You have another version of autoconf.  It may work, but is not guaranteed
to.

If you have problems, you may need to regenerate the build system entirely.

To do so, use the procedure documented by the package, typically
`autoreconf'.

configure.ac:17: error: Autoconf version 2.60 or higher is required

aclocal.m4:475: AM_INIT_AUTOMAKE is expanded from...

configure.ac:17: the top level

autom4te: /usr/bin/m4 failed with exit status: 1

make[1]: *** [configure] Error 1

make[1]: Leaving directory
`/home/r1test/nmap_source_code/nmap-6.00/libpcre'

make: *** [pcre_build] Error 2

[root@localhost nmap-6.00]#



One of the things that I tried was to upgrade my  automake and autoconf
versions to 1.9.6 and 2.59, respectively.  This solved the above issue,
but I am now getting different errors (see below).  Any thoughts?



Compiling liblua
make[1]: Entering directory
`/home/r1test/nmap_source_code/nmap-7.01/liblua'
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lctype.o lctype.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldo.o ldo.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldump.o ldump.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lbitlib.o lbitlib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lcorolib.o lcorolib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_COMPAT_ALL  -g -O2 -Wall -fno-strict-aliasing
-DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o
lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o
ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o
lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o
loadlib.o linit.o
ranlib liblua.a
make[1]: Leaving directory `/home/r1test/nmap_source_code/nmap-7.01/liblua'
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   charpool.cc -o charpool.o
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   FingerPrintResults.cc -o FingerPrintResults.o
In file included from FingerPrintResults.h:131,
                 from FingerPrintResults.cc:126:
FPEngine.h:250: warning: `class FPEngine' has virtual functions but
non-virtual
   destructor
FPEngine.h:270: warning: `class FPEngine6' has virtual functions but
   non-virtual destructor
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   FPEngine.cc -o FPEngine.o
In file included from FPEngine.cc:127:
FPEngine.h:250: warning: `class FPEngine' has virtual functions but
non-virtual
   destructor
FPEngine.h:270: warning: `class FPEngine6' has virtual functions but
   non-virtual destructor
FPEngine.cc: In member function `int FPHost::update_RTO(int, bool)':
FPEngine.cc:1459: warning: assignment to `int' from `double'
FPEngine.cc:1459: warning: argument to `int' from `double'
FPEngine.cc:1460: warning: assignment to `int' from `double'
FPEngine.cc:1460: warning: argument to `int' from `double'
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   -g0 FPModel.cc -o FPModel.o
In file included from FingerPrintResults.h:131,
                 from FPModel.cc:3:
FPEngine.h:250: warning: `class FPEngine' has virtual functions but
non-virtual
   destructor
FPEngine.h:270: warning: `class FPEngine6' has virtual functions but
   non-virtual destructor
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   idle_scan.cc -o idle_scan.o
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   MACLookup.cc -o MACLookup.o
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre
-I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/home/r1test/nmap/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2
-Wall -fno-strict-aliasing   nmap_dns.cc -o nmap_dns.o
nmap_dns.cc: In static member function `static bool
DNS::Factory::ipToPtr(const
   sockaddr_storage&, std::string&)':
nmap_dns.cc:1320: no match for `
   std::reverse_iterator<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >
&
   != std::reverse_iterator<__gnu_cxx::__normal_iterator<char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >
'
   operator
nmap_dns.cc: In static member function `static bool
DNS::Factory::ptrToIp(const
   std::string&, sockaddr_storage&)':
nmap_dns.cc:1385: no match for `
   std::reverse_iterator<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >
&
   != std::reverse_iterator<__gnu_cxx::__normal_iterator<char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >
'
   operator
make: *** [nmap_dns.o] Error 1
[root@localhost nmap-7.01]#

Thanks,

Perry.



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

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

Current thread: