Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Nmap 4.23RC1 released
From: David Fifield <david () bamsoftware com>
Date: Sun, 11 Nov 2007 13:51:17 -0700

On Sun, Nov 11, 2007 at 01:27:30PM -0700, David Fifield wrote:
On Sat, Nov 10, 2007 at 11:05:42PM -0700, David Fifield wrote:
On Sat, Nov 10, 2007 at 05:48:38PM -0500, Matt Selsky wrote:
Solaris 9/gcc 4 build failure:

make[1]: Entering directory `/src/nmap-4.23RC1/nbase'
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" 
-DHAVE_CONFIG_H=1    -c -o snprintf.o snprintf.c
In file included from nbase.h:431,
                 from snprintf.c:66:
nbase_ipv6.h:214: error: redefinition of `struct addrinfo'
nbase_ipv6.h:239: error: conflicting types for `?gai_strerro'
/usr/include/netdb.h:311: error: previous declaration of `gai_strerror' was here
make[1]: *** [snprintf.o] Error 1
make[1]: Leaving directory `/src/nmap-4.23RC1/nbase'
make: *** [nbase/libnbase.a] Error 2

I did not try to configure with --enable-ipv6 or anything.

I can confirm this on Solaris 9. I have access to such a machine that I
can test this on.

I committed a fix for this and a bunch of other issues on Solaris. One
issue remains:
I can make the problem go away by adding -ldl to LIBS in Makefile.

Oh, and one other thing. After adding -ldl nmap quits with a bus error
when I scan a local or remote host.

        $ ./nmap localhost
        Starting Nmap 4.23RC1 ( http://insecure.org ) at 2007-11-11 13:29 MST
        Bus Error (core dumped)

The same thing happens with

        ./nmap -sL localhost
        ./nmap -sL -n localhost
        ./nmap -sP localhost

But running just


correctly prints out usage instructions.

But, if I compile with "make debug", everything works just fine. I don't
have root on this machine. I tracked the error down to line 242 of

    sp->ratio = current->ratio;

Maybe some alignment problem?

David Fifield

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

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