Nmap Development mailing list archives

Re: NMAP 6.25 does not compile on Solaris 10


From: Dagobert Michelsen <dam () opencsw org>
Date: Thu, 20 Jun 2013 15:27:21 +0200

Hi David,

Am 20.06.2013 um 06:24 schrieb David Fifield <david () bamsoftware com>:
On Fri, May 31, 2013 at 11:13:11AM +0200, Jörn Clausen wrote:
On 31.05.13 09:00, Dagobert Michelsen wrote:
Indeed, this is from Solaris 11 Sparc:
 /usr/include/sys/un.h:#define   SUN_LEN(su)     (sizeof (sa_family_t) + strlen((su)->sun_path))

Simply adding this definition to all the places where SUN_LEN is
used (ncat/ncat_main.c, ncat/ncat_connect.c and ncat/util.c) did the
trick.

Latest SVN (r31010) builds for me on Solaris 10, while 6.25 does not. So
I guess this got fixed somewhere along the line.

I just tried that revision, but get the same error as for the tar ball:

/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include  -I../include   -g -O2 -Wall -c 
-o arp-ioctl.lo arp-ioctl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c arp-ioctl.c -o arp-ioctl.o
arp-ioctl.c:400:28: warning: 'struct radix_node' declared inside parameter list [enabled by default]
 _radix_walk(int fd, struct radix_node *rn, arp_handler callback, void *arg)
                            ^
arp-ioctl.c:400:28: warning: its scope is only this definition or declaration, which is probably not what you want 
[enabled by default]
arp-ioctl.c: In function '_radix_walk':
arp-ioctl.c:402:20: error: storage size of 'rnode' isn't known
  struct radix_node rnode;
                    ^
arp-ioctl.c:403:17: error: storage size of 'rt' isn't known
  struct rtentry rt;
                 ^
arp-ioctl.c:411:26: error: 'RNF_ROOT' undeclared (first use in this function)
   if (!(rnode.rn_flags & RNF_ROOT)) {
                          ^
arp-ioctl.c:411:26: note: each undeclared identifier is reported only once for each function it appears in
arp-ioctl.c:413:4: warning: implicit declaration of function 'rt_key' [-Wimplicit-function-declaration]
    _kread(fd, rt_key(&rt), &sin, sizeof(sin));
    ^
In file included from ../include/dnet.h:17:0,
                 from arp-ioctl.c:41:
arp-ioctl.c:418:26: error: 'struct arptab' has no member named 'at_hwaddr'
         ETH_ADDR_BITS, at.at_hwaddr, ETH_ADDR_LEN);
                          ^
../include/dnet/addr.h:42:38: note: in definition of macro 'addr_pack'
…


I am compiling with OpenCSW gcc 4.8.0 on Solaris 10 update 10 Sparc with vanilla
configure && make. On which platform exactly did you tried it? Did you use special
options?


Best regards

  -- Dago


-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896

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


Current thread: