Nmap Development mailing list archives

Re: configure error under solaris 8, nmap-5.21


From: Regis Jones <ordsec () gmail com>
Date: Fri, 5 Feb 2010 11:21:29 -0600

I'd like to add some additional testing I've since done, appreciating
that this is a harder to find platform/os:

nmap-5.20 has this same issue in configure
nmap-5.10BETA2  has this same issue in configure (same line number 6651 too)
but...
nmap-5.00 will configure without error
nmap-4.76 will configure without error

So whatever is amiss happened between 5.00 and 5.10BETA2 .

Perhaps related:  I've also just discovered that make is missing on
this box.  LOL.


On Fri, Feb 5, 2010 at 9:52 AM, Regis Jones <ordsec () gmail com> wrote:
First, hats off and all kudos and credit to Fyodor and the nmap
development community for an outstanding project. Many many thanks for
a tremendously useful tool!

I've encountered an error attempting to build nmap-5.21 under SunOS
5.8 (sparc) .  I'd be curious if anyone has encountered similar issues
or has workaround suggestions.  It's not clear (to me anyway) from the
error and looking at the script exactly what's going on.   I can also
appreciate that there probably aren't a ton of people compiling the
latest nmap on Solaris 8 sparc, but I have my reasons at the moment.
LOL.  Thanks for any advice or workarounds!


$ ./configure
checking whether NLS is requested... yes
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for inline... inline
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... ./shtool install -c
checking for __func__... yes
checking for strip... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for library containing setsockopt... -lsocket
checking for library containing gethostbyname... -lnsl
checking for a Python interpreter with version >= 2.4... none
configure: WARNING: Not building Ndiff because Python 2.4 or later was not found
checking whether : version >= 2.4... yes
configure: WARNING: Not building Zenmap because Python 2.4 or later
was not found
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: WARNING: Failed to find openssl/ssl.h so OpenSSL will not
be used. If it is installed you can try the --with-openssl=DIR
argument
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking for library containing dlopen... -ldl
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lua/lua.h usability... no
checking lua/lua.h presence... no
checking for lua/lua.h... no
checking lua5.1/lua.h usability... no
checking lua5.1/lua.h presence... no
checking for lua5.1/lua.h... no
checking for lua version >= 501... no
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
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
checking for strerror... yes
checking for type of 6th argument to recvfrom()... socklen_t
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating nmap_config.h
=== configuring in libpcap (/export/home/foo/nmap-5.21/libpcap)
configure: running /bin/bash ./configure --disable-option-checking
'--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... no
checking for u_int16_t using gcc... no
checking for u_int32_t using gcc... no
checking for u_int64_t using gcc... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/ioccom.h usability... yes
checking sys/ioccom.h presence... yes
checking for sys/ioccom.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking for net/pfvar.h... no
checking for netinet/if_ether.h... no
configure: Rechecking with some additional includes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking for library containing putmsg... none required
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking netinet/ether.h usability... no
checking netinet/ether.h presence... no
checking for netinet/ether.h... no
checking for struct ether_addr... yes
checking if --disable-protochain option is specified... enabled
./configure: line 6651: syntax error near unexpected token `in'
./configure: line 6651: `       for ac_header in'
configure: error: ./configure failed for libpcap
$
$ uname -a
SunOS foobox 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-60


For convenience, here's the configure code in the neighborhood of the
syntax error  with line 6651 noted.


if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
         test -z "$ac_c_werror_flag" ||
         test ! -s conftest.err
      } && test -s conftest$ac_exeext && { # <---line 6651
         test "$cross_compiling" = yes ||
         $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ssl_SSL_new=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

        ac_cv_lib_ssl_SSL_new=no
fi

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


Current thread: