Subject: pkg/21262: nmap package config fails under Solaris2.8
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 04/22/2003 17:37:31
>Number:         21262
>Category:       pkg
>Synopsis:       nmap package config fails under Solaris2.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 22 17:38:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        SunOS crn-oss 5.8 pkgsrc updated 22 April 2003
>Organization:
>Environment:
SunOS crn-oss 5.8 Generic_108528-19 sun4u sparc SUNW,Netra-T4
>Description:
nmap fails to configure under Solaris2.8, at the point where configure tries to determine
endianness of a sparc.

>How-To-Repeat:
:/usr/pkgsrc/net/nmap #bmake
[....]
===> Buildlinking for nmap-3.25
===> Configuring for nmap-3.25
[...]
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... no
checking whether byte ordering is bigendian... unknown
configure: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/nmap
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/nmap

>Fix:
My work around was to use "bmake ac_cv_c_bigendian=yes".

This problem does not occur when configuring nmap by hand outside of pkgsrc:

:~/nmap-3.25 %./configure CC=/usr/pkg/gcc-3.2..2.2/bin/cpp CXX=/usr/pkg/gcc-3.2.2/bin/c++ CFLAGS=-Wl,-R/usr/pkg/gcc-3.2.2/lib CXXFLAGS=-Wl,-R/usr/pkg/gcc-3.2.2/lib
[....]
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... no
checking whether byte ordering is bigendian... yes
checking if struct in_addr is a wacky huge structure (some Sun boxes)... yes
[...]

>Release-Note:
>Audit-Trail:
>Unformatted: