[Userland] [OpenIndiana Distribution - Bug #4439] nmap partially broken on /hipster

illumos project devnull at illumos.org
Thu Jan 9 08:50:53 UTC 2014


Issue #4439 has been updated by Predrag Zečević.


Hi,

yes, *nmap* is fully functional.. This is what I have used to compile it with /hipster default gcc:
<pre>
export NMAP_V=6.40
export PREFIX=/opt/SFW 
export LDFLAGS="-R${PREFIX}/lib -R${PREFIX}/apr/lib -R/usr/gnu/lib -L${PREFIX}/lib -L${PREFIX}/apr/lib -L/usr/gnu/lib"

wget http://nmap.org/dist/nmap-${NMAP_V}.tar.bz2
tar xf nmap-${NMAP_V}.tar.bz2 && cd nmap-${NMAP_V}
./configure --prefix=${PREFIX} \
            --with-openssl=${PREFIX} \
            --with-apr=${PREFIX}/apr \
            --with-libpcap=included \
            --with-libpcre=included \
            --with-libdnet=included \
            --with-liblua=included
gmake 
pfexec gmake -n install
</pre>

Regards.
----------------------------------------
Bug #4439: nmap partially broken on /hipster
https://www.illumos.org/issues/4439

Author: Predrag Zečević
Status: New
Priority: Normal
Assignee: OI Userland
Category: SFW (Solaris Freeware)
Target version: 
Difficulty: Bite-size
Tags: nmap


Hi,

nmap utility is partially broken: some options require root privileges, and those return no result:
<pre>
$ /usr/bin/nmap -O solarix
TCP/IP fingerprinting (for OS scan) requires root privileges.
QUITTING!
</pre>
With _pfexec_  or _sudo_:
<pre>
$ pfexec /usr/bin/nmap -O solarix

Starting Nmap 6.25 ( http://nmap.org ) at 2014-01-07 13:30 CET
route_dst_generic: Failed to obtain system routes: getsysroutes_dnet: route_open() failed
</pre>
Package info:
<pre>
$ pkg info nmap
          Name: diagnostic/nmap
       Summary: Network exploration tool and security / port scanner.
   Description: Nmap is useful for inventorying the network, managing service
                upgrade schedules, and monitoring host or service uptime.
      Category: System/Administration and Configuration
         State: Installed
     Publisher: openindiana.org
       Version: 6.25
        Branch: 0.151.1.8.1
Packaging Date: November 11, 2013 07:47:15 PM 
          Size: 18.96 MB
          FMRI: pkg://openindiana.org/diagnostic/nmap@6.25-0.151.1.8.1:20131111T194715Z
</pre>
Output from  command:
<pre>
$ pfexec truss -o /tmp/nmap.truss -f /usr/bin/nmap -O solarix

Starting Nmap 6.25 ( http://nmap.org ) at 2014-01-07 13:32 CET
route_dst_generic: Failed to obtain system routes: getsysroutes_dnet: route_open() failed
</pre>
is attached to ticket.

I have tried to compile it myself (nmap version 6.40), using gcc compiler and have no such problem.

Regards.


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the Userland-team mailing list