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.
The appropriate venue for questions of this kind, which I may not be able to answer, is to send email to the iftop mailing list at
iftop-users@lists.beasts.org
You can subscribe to the iftop-users mailing list at
http://lists.beasts.org/mailman/listinfo/iftop-users
I'm cc:'ing this message to the list, perhaps someone there will be able to respond to you more helpfully.
| 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) | options.c:217: (Each undeclared identifier is reported only once | options.c:217: for each function it appears in.) | options.c:217: parse error before "mm" | options.c:218: `mm' undeclared (first use in this function) | options.c: In function `options_config_get_net_filter': | options.c:467: `u_int32_t' undeclared (first use in this function) | options.c:467: parse error before "mm" | options.c:468: `mm' undeclared (first use in this function) | make[2]: *** [options.o] 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 | | | thanks, | | | thomas
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))
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))
On Fri, Mar 19, 2004 at 08:34:55AM -0800, thomas nguyen wrote:
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
-- do you have ncurses on the machine? It won't build with standard Solaris curses.
On Fri, Mar 19, 2004 at 08:34:55AM -0800, thomas nguyen wrote:
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
These are part of ncurses? Do you have ncurses installed, and did ./configure find it happily?
Paul