Nmap Development mailing list archives

Solaris 10 x86 nmap-3.75 build problems


From: James Cliburn <jcliburn () gmail com>
Date: Sat, 1 Jan 2005 09:20:50 -0600

Happy New Year...

As a diversion over the holidays I decided to install Solaris 10 x86
on a spare Dell box.  I don't have much experience with Solaris and
wanted to poke around with it.  I downloaded nmap-3.75 source and set
out to build it for myself rather than use the packaged version at
sunfreeware.com.  (Actually, I downloaded the sunfreeware package (v
3.77), but it hangs when I run it.)  I've encountered some build
problems.  There are 2 issues.  I'd really appreciate a pointer in the
right direction.

First, some system particulars:

Compiler: gcc 3.3.2 installed as a package from sunfreeware.com

config.log:

## --------- ##
## Platform. ##
## --------- ##

hostname = kite
uname -m = i86pc
uname -r = 5.10
uname -s = SunOS
uname -v = s10_72

/usr/bin/uname -p = i386
/bin/uname -X     = System = SunOS
Node = kite
Release = 5.10
KernelID = s10_72
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch              = i86pc
/usr/bin/arch -k       = i86pc
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/ucb
PATH: /usr/ccs/bin
PATH: /etc
PATH: /opt/bin
PATH: .

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1397: checking for gcc
configure:1413: found /usr/local/bin/gcc
configure:1423: result: gcc
configure:1667: checking for C compiler version
configure:1670: gcc --version </dev/null >&5
gcc (GCC) 3.3.2


ISSUE #1.  Configure seems to get confused about the presence of gtk;
it complains about its absence after first finding it earlier in the
configure cycle.  To wit (from configure's output):

...
checking for gtk-config... /usr/local/bin/gtk-config
checking If you have GTK+ installed... 1.2.10
configure: creating ./config.status
...
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >= 1.0.0... no
*** Could not run GTK test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK or finding the wrong
*** version of GTK. If it is not finding GTK, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you should remove the GTK package that
*** came with the system with the command
***
***    rpm --erase --nodeps gtk gtk-devel
configure: WARNING: NMAPFE WILL NOT BE BUILT -- BUT NMAP SHOULD STILL WORK 

ISSUE #2.  The second, and far more serious problem occurs when the
build fails to compile nsock_pool.c.  Behold:

gcc -c  -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H
-DNSOCK_VERSION=\"0.01\"  -I../include nsock_pool.c -o nsock_pool.o
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from nsock_pool.c:72:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from nsock_pool.c:72:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from nsock_pool.c:72:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[1]: *** [nsock_pool.o] Error 1
make[1]: Leaving directory `/opt/src/nmap-3.75/nsock/src'
make: *** [nsock/src/libnsock.a] Error 2

The config.log sheds some light on this particular error.  It reports
a problem with ctid_t, indicating it isn't typedef'd anywhere, but I
found it typedef'd in /usr/include/sys/types.h.  Here's the relevant
portion of config.log.

configure:2549: g++ -c -g -O2  conftest.cc >&5
In file included from /usr/include/sys/wait.h:24,
                 from /usr/include/stdlib.h:22,
                 from conftest.cc:10:
/usr/include/sys/siginfo.h:259: error: 'ctid_t' is used as a type, but is not 
   defined as a type.
/usr/include/sys/siginfo.h:390: error: 'ctid_t' is used as a type, but is not 
   defined as a type.
configure:2555: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List archive: http://seclists.org



Current thread: