[Iftop-users] Re: solaris 7 and 8 (64bits)

thomas nguyen tnguyen at equinix.com
Fri, 19 Mar 2004 08:34:55 -0800


Chris,

it fixed it, but then it bombed at near the end:

gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c `test -f 'vector.c' || echo 
'./'`vector.c
gcc  -g -O2    -o iftop  addr_hash.o edline.o hash.o iftop.o ns_hash.o 
options.o resolver.o screenfilter.o serv_hash.o sorted_list.o threadprof.o 
ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o 
vector.o  -lpcap -lnsl -lm -lsocket  -lncurses -lpthread
Undefined                       first referenced
 symbol                             in file
initscr32                           ui.o
acs32map                            ui.o
w32addch                            ui.o
ld: fatal: Symbol referencing errors. No output written to iftop
collect2: ld returned 1 exit status
make[2]: *** [iftop] Error 1
make[2]: Leaving directory `/export/home/tnguyen/iftop-0.16'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/tnguyen/iftop-0.16'
make: *** [all] Error 2


On Thursday 18 March 2004 06:39 pm, Chris Lightfoot wrote:
> On Thu, Mar 18, 2004 at 04:21:02PM -0600, Jon Abbey wrote:
> > On Thu, Mar 18, 2004 at 09:34:42AM -0800, Thomas Nguyen wrote:
> > | Hi Jonathan,
> > |
> > | I am having no luck compiling iftop on solaris 7 and 8, here is where
> > | is broken
> >
> > I'm afraid I have not had time to build version 0.16 of iftop on
> > Solaris yet.  It is possible that they have broken the build on
> > Solaris in some fashion.
>
>     [...]
>
> > | gcc -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -I /usr/include     -g
> > | -O2  -c `test -f 'options.c' || echo './'`options.c options.c: In
> > | function `set_net_filter':
> > | options.c:217: `u_int32_t' undeclared (first use in this function)
>
> hmm. looks like options.c doesn't include integers.h.
> Could you try this patch and see if it helps?
>
> diff -u -r1.42 options.c
> --- options.c	20 Jan 2004 09:45:35 -0000	1.42
> +++ options.c	19 Mar 2004 02:39:36 -0000
> @@ -22,6 +22,7 @@
>  #include "iftop.h"
>  #include "options.h"
>  #include "cfgfile.h"
> +#include "integers.h"
>
>  #if !defined(HAVE_INET_ATON) && defined(HAVE_INET_PTON)
>  #   define inet_aton(a, b)  inet_pton(AF_INET, (a), (b))