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

Chris Lightfoot chris at ex-parrot.com
Fri, 19 Mar 2004 02:39:51 +0000


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))

-- 
``For a second year, Mongolia is suffering
  winter conditions unmatched in living memory.'' (BBC News)