From pdw@sphinx.mythic-beasts.com Wed May 21 17:43:43 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19IWgp-0007Bf-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 17:43:43 +0100 Date: Wed, 21 May 2003 17:43:42 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030521174342.D13712@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] Test email Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: From pdw@sphinx.mythic-beasts.com Wed May 21 17:44:34 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19IWhd-0007DV-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 17:44:33 +0100 Date: Wed, 21 May 2003 17:44:33 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030521174433.F13712@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] test Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: From jwilson@mycfo.com Wed May 21 22:02:29 2003 Received: from mx.mycfo.com ([64.0.25.132]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19IajF-0006Uf-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 22:02:29 +0100 Received: from mx.mycfo.com (localhost [127.0.0.1]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LL2nIO015437 for ; Wed, 21 May 2003 14:02:49 -0700 (PDT) Received: from mtv-ex1.win.mycfo.com (win.mycfo.com [10.42.3.67]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LL2nwc015434 for ; Wed, 21 May 2003 14:02:49 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 May 2003 14:02:27 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Welcome to the "iftop-users" mailing list Thread-Index: AcMf2/PH9fUQF/GdQv+K8iaoQDQC/wAABr7A From: "James Wilson" To: Subject: [Iftop-users] Unnumbered interface problem Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I have an IDS station sniffing an unnumbered interface and I want iftop = to monitor that interface, but it keeps refusing to do so because it = can't look up the address. Is there a way to use it the same way I do = with snort, tcpdump, etc? Thanks! --=20 James D. Wilson Sr. Network/Security Engineer "non sunt multiplicanda entia praeter necessitatem" William of Ockham (1285-1347/49) From pdw@sphinx.mythic-beasts.com Wed May 21 22:13:15 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19Iate-0006g6-00; Wed, 21 May 2003 22:13:14 +0100 Date: Wed, 21 May 2003 22:13:14 +0100 From: Paul Warren To: James Wilson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Unnumbered interface problem Message-ID: <20030521221314.B22178@sphinx.mythic-beasts.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jwilson@mycfo.com on Wed, May 21, 2003 at 02:02:27PM -0700 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, May 21, 2003 at 02:02:27PM -0700, James Wilson wrote: > I have an IDS station sniffing an unnumbered interface and I want > iftop to monitor that interface, but it keeps refusing to do so > because it can't look up the address. Is there a way to use it the > same way I do with snort, tcpdump, etc? Yeah - see the patch below (it just removes the exit calls if it can't find the address...). It doesn't actually need the IP address, or the hardware for that matter. These are only used to assign direction to packets in a consistent manner. You can always use a -N option to specify an IP network boundary to assign direction across. Paul diff -c -r1.44 iftop.c *** iftop.c 20 May 2003 21:14:37 -0000 1.44 --- iftop.c 21 May 2003 21:10:09 -0000 *************** *** 447,453 **** if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFHWADDR)"); - exit(1); } else { memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); --- 447,452 ---- *************** *** 470,476 **** if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFADDR)"); - exit(1); } else { have_ip_addr = 1; --- 469,474 ---- From jwilson@mycfo.com Wed May 21 22:19:49 2003 Received: from mx.mycfo.com ([64.0.25.132]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19Ib00-0007NJ-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 22:19:49 +0100 Received: from mx.mycfo.com (localhost [127.0.0.1]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LLK8IQ016483 for ; Wed, 21 May 2003 14:20:09 -0700 (PDT) Received: from mtv-ex1.win.mycfo.com (win.mycfo.com [10.42.3.67]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LLK8wc016480; Wed, 21 May 2003 14:20:08 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [Iftop-users] Unnumbered interface problem Date: Wed, 21 May 2003 14:19:46 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Iftop-users] Unnumbered interface problem Thread-Index: AcMf3cxDkSVW6PYxRQCU4h9Ay2Fp3gAAMh9w From: "James Wilson" To: "Paul Warren" Cc: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Yep, I commented out the two exit(1)'s and things work great! This will = help me a lot when it is time to hunt down the source of heavy bandwidth = utilization... Thanks! --=20 James D. Wilson Sr. Network/Security Engineer "non sunt multiplicanda entia praeter necessitatem" William of Ockham (1285-1347/49) -----Original Message----- From: Paul Warren [mailto:pdw@ex-parrot.com] Sent: Wednesday, May 21, 2003 2:13 PM To: James Wilson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Unnumbered interface problem On Wed, May 21, 2003 at 02:02:27PM -0700, James Wilson wrote: > I have an IDS station sniffing an unnumbered interface and I want > iftop to monitor that interface, but it keeps refusing to do so > because it can't look up the address. Is there a way to use it the > same way I do with snort, tcpdump, etc? Yeah - see the patch below (it just removes the exit calls if it can't find the address...). It doesn't actually need the IP address, or the hardware for that matter. These are only used to assign direction to packets in a consistent manner. You can always use a -N option to specify an IP network boundary to assign direction across. Paul diff -c -r1.44 iftop.c *** iftop.c 20 May 2003 21:14:37 -0000 1.44 --- iftop.c 21 May 2003 21:10:09 -0000 *************** *** 447,453 **** if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFHWADDR)"); - exit(1); } else { memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); --- 447,452 ---- *************** *** 470,476 **** if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFADDR)"); - exit(1); } else { have_ip_addr =3D 1; --- 469,474 ---- From jonabbey@arlut.utexas.edu Fri May 23 16:01:26 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19JE2v-000391-00 for iftop-users@lists.beasts.org; Fri, 23 May 2003 16:01:25 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NF1OTQ029536 for ; Fri, 23 May 2003 10:01:24 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NF1OI6018965 for ; Fri, 23 May 2003 10:01:24 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h4NF1On07915 for iftop-users@lists.beasts.org; Fri, 23 May 2003 10:01:24 -0500 (CDT) Date: Fri, 23 May 2003 10:01:24 -0500 From: Jonathan Abbey To: iftop-users@lists.beasts.org Message-ID: <20030523150124.GA7277@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: [Iftop-users] Kudos and Question Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi everyone. Just wanted to drop a line and say that we're extremely pleased to have iftop here at ARL:UT. I, personally, have been wanting something like this for some time, and seeing it on freshmeat yesterday was really fantastic. I do have a question, however. We're running it on Solaris 8, and while I understand that it's necessary to use -p to run it in promiscuous mode to see the outgoing packets, even when this is done, I still see nothing but flatline on the cummulative and peak TX stats on the bottom of the display. This even in the case where I'm seeing outgoing statistics in the bar-graph display. I built iftop-0.12 against libpcap-0.7.2.. is this a supported configuration? Thanks for a really attractive tool. Jon --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+zjfEGI9EwHF2dYYRAvQwAJ9KAueBBu/h/wrCx1n6hTuu+2KSZwCeM8JJ 6pz+a/a4kYLcBujMC910M+g= =+EPG -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q-- From pdw@sphinx.mythic-beasts.com Fri May 23 17:03:42 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19JF1C-0004hF-00; Fri, 23 May 2003 17:03:42 +0100 Date: Fri, 23 May 2003 17:03:42 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523170342.M9413@sphinx.mythic-beasts.com> References: <20030523150124.GA7277@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030523150124.GA7277@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Fri, May 23, 2003 at 10:01:24AM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 23, 2003 at 10:01:24AM -0500, Jonathan Abbey wrote: > Hi everyone. Just wanted to drop a line and say that we're extremely > pleased to have iftop here at ARL:UT. I, personally, have been > wanting something like this for some time, and seeing it on freshmeat > yesterday was really fantastic. > > I do have a question, however. We're running it on Solaris 8, and > while I understand that it's necessary to use -p to run it in > promiscuous mode to see the outgoing packets, even when this is done, > I still see nothing but flatline on the cummulative and peak TX stats > on the bottom of the display. > > This even in the case where I'm seeing outgoing statistics in the > bar-graph display. OK, this is pretty much expected. Presumably when you start up (or after you quit) you see a message saying that it was unable to get the hardware address and/or the IP address? The problem is that if it can't figure out the above, it doesn't know which way packets are moving across the interface, so assumed that they were picked up in promiscuous mode (between two other hosts) and accounts them as incoming, having assigned the direction in the above display arbitrarily. Getting the hardware address is real PITA because there seem to be more ways of doing it than there are platforms in the world. Currently it's only working on linux. Can you try the attached patch, which is meant to work on Solaris, and let me know how you get on. I'm afraid I don't have access to a Solaris box to test this on. cheers, Paul --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=iftop-patch diff -c -r1.45 iftop.c *** iftop.c 21 May 2003 21:14:00 -0000 1.45 --- iftop.c 23 May 2003 16:02:19 -0000 *************** *** 452,457 **** --- 452,468 ---- memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); have_hw_addr = 1; } + #elif defined(SIOCGENADDR) /* Solaris */ + if (ioctlsocket(s, SIOCGENADDR, &ifr) < 0) + { + fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); + perror("ioctl(SIOCGIFHWADDR)"); + } + else + { + memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); + have_hw_addr = 1; + } #else fprintf(stderr, "Cannot obtain hardware address on this platform\n"); #endif --n8g4imXOkfNTN/H1-- From jonabbey@arlut.utexas.edu Fri May 23 17:30:06 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19JFQk-0005Id-00 for iftop-users@lists.beasts.org; Fri, 23 May 2003 17:30:06 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NGU4TQ033491 for ; Fri, 23 May 2003 11:30:04 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NGU4I6041995 for ; Fri, 23 May 2003 11:30:04 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h4NGU4b15465 for iftop-users@lists.beasts.org; Fri, 23 May 2003 11:30:04 -0500 (CDT) Date: Fri, 23 May 2003 11:30:04 -0500 From: Jonathan Abbey To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523163004.GA14882@arlut.utexas.edu> References: <20030523150124.GA7277@arlut.utexas.edu> <20030523170342.M9413@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20030523170342.M9413@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2003 at 05:03:42PM +0100, Paul Warren wrote: | OK, this is pretty much expected. Presumably when you start up (or | after you quit) you see a message saying that it was unable to get the | hardware address and/or the IP address? Mmm, possibly, I'll have to check. | The problem is that if it can't figure out the above, it doesn't know | which way packets are moving across the interface, so assumed that they | were picked up in promiscuous mode (between two other hosts) and | accounts them as incoming, having assigned the direction in the above | display arbitrarily. Right, makes perfect sense. | Getting the hardware address is real PITA because there seem to be more | ways of doing it than there are platforms in the world. Currently it's | only working on linux. Can you try the attached patch, which is meant | to work on Solaris, and let me know how you get on. I'm afraid I don't | have access to a Solaris box to test this on. I will give this a try, thanks. I do have another question. When running iftop, it seems to be almost random which IP addresses are resolved to their DNS names, and which addresses appear in dotted decimal form. This when all the hosts displayed, in whichever form, are properly registered in our local DNS. If we do an nslookup on a host before starting iftop, that host seems to be properly resolved on the bar graph, but the majority go unresolved. Does that scenario suggest anything? jon --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+zkyMGI9EwHF2dYYRAjp5AKDeeql3tGTi2/ELqa3AwQlnfPrIqACg67l8 M3CZjLAWhcDsZmzXYvXnkLY= =DYIe -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK-- From pdw@sphinx.mythic-beasts.com Fri May 23 17:50:40 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19JFkd-0005oa-00; Fri, 23 May 2003 17:50:39 +0100 Date: Fri, 23 May 2003 17:50:39 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523175039.N9413@sphinx.mythic-beasts.com> References: <20030523150124.GA7277@arlut.utexas.edu> <20030523170342.M9413@sphinx.mythic-beasts.com> <20030523163004.GA14882@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030523163004.GA14882@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Fri, May 23, 2003 at 11:30:04AM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, May 23, 2003 at 11:30:04AM -0500, Jonathan Abbey wrote: > | Getting the hardware address is real PITA because there seem to be more > | ways of doing it than there are platforms in the world. Currently it's > | only working on linux. Can you try the attached patch, which is meant > | to work on Solaris, and let me know how you get on. I'm afraid I don't > | have access to a Solaris box to test this on. > > I will give this a try, thanks. > > I do have another question. When running iftop, it seems to be almost > random which IP addresses are resolved to their DNS names, and which > addresses appear in dotted decimal form. This when all the hosts > displayed, in whichever form, are properly registered in our local > DNS. If we do an nslookup on a host before starting iftop, that host > seems to be properly resolved on the bar graph, but the majority go > unresolved. Which resolver mechanism are you using? I'm guessing that it's fallen back to using the single-threaded gethostbyname implementation. This sucks a lot, because if comes across an IP address that it can't resolve quickly (typically it takes up to a minute to time out) then it won't be able to resolve any more IP addresses. If all the IP addresses it ever encounters are in your local DNS then I'm a bit confused by this, because the resolver thread should never stall. In general, the best option would be to install ares, and the run: ./configure --with-resolver=ares You can get ares from: ftp://athena-dist.mit.edu/pub/ATHENA/ares/ Paul From pdw@sphinx.mythic-beasts.com Sun Jun 08 19:10:03 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19P4cF-0008Hh-00 for iftop-users@lists.beasts.org; Sun, 08 Jun 2003 19:10:03 +0100 Date: Sun, 8 Jun 2003 19:10:03 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030608191003.A30117@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] v0.13pre1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: v0.13pre1 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre1.tar.gz This includes extensive work on the Solaris port by Jonathan Abbey. The only other change is to make failure to find hardware/ethernet addresses non-fatal. Pre-releases are intended to be QA for the real releases, so I'm very keen to hear any problems with the release (to the list) and success reports (to me). thanks, Paul From jonabbey@arlut.utexas.edu Sun Jun 08 19:39:54 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19P558-0000O3-00 for iftop-users@lists.beasts.org; Sun, 08 Jun 2003 19:39:54 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h58IdpTQ015241; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h58Idp8q024392; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h58Idpm28547; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Date: Sun, 8 Jun 2003 13:39:51 -0500 From: Jonathan Abbey To: Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] v0.13pre1 Message-ID: <20030608183951.GA24846@arlut.utexas.edu> References: <20030608191003.A30117@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20030608191003.A30117@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 08, 2003 at 07:10:03PM +0100, Paul Warren wrote: > v0.13pre1 is now available from: >=20 > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre1.tar.gz >=20 > This includes extensive work on the Solaris port by Jonathan Abbey. >=20 > The only other change is to make failure to find hardware/ethernet > addresses non-fatal. The addrs_dlpi.c file isn't set up to fail non-fatally as it stands. The following patch takes care of that, assuming I've done the diff'ing in a useful fashion. *** addrs_dlpi.c.orig Sun Jun 8 13:28:56 2003 --- addrs_dlpi.c Sun Jun 8 13:35:53 2003 *************** *** 102,108 **** =20 if (cp =3D=3D NULL) { free(devname2); ! return -1; } else { *cp =3D '\0'; /* null terminate devname2 right before numeric exten= sion */ } --- 102,108 ---- =20 if (cp =3D=3D NULL) { free(devname2); ! goto get_ip_address; } else { *cp =3D '\0'; /* null terminate devname2 right before numeric exten= sion */ } *************** *** 114,125 **** if (errno !=3D ENOENT) { fprintf(stderr, "Couldn't open %s\n", devname2); free(devname2); ! return -1; } else { if ((fd =3D open(fulldevpath, O_RDWR)) < 0) { fprintf(stderr, "Couldn't open %s\n", fulldevpath); free(devname2); ! return -1; } } } --- 114,125 ---- if (errno !=3D ENOENT) { fprintf(stderr, "Couldn't open %s\n", devname2); free(devname2); ! goto get_ip_address; } else { if ((fd =3D open(fulldevpath, O_RDWR)) < 0) { fprintf(stderr, "Couldn't open %s\n", fulldevpath); free(devname2); ! goto get_ip_address; } } } *************** *** 167,178 **** fprintf(stderr, "Error, bad length for hardware interface %s -- %d\n"= ,=20 interface, dlp->info_ack.dl_addr_length); - close(fd); - return -1; } =20 close(fd); =20 /* Get the IP address of the interface */ =20 #ifdef SIOCGIFADDR --- 167,178 ---- fprintf(stderr, "Error, bad length for hardware interface %s -- %d\n"= ,=20 interface, dlp->info_ack.dl_addr_length); } =20 close(fd); =20 + get_ip_address: +=20 /* Get the IP address of the interface */ =20 #ifdef SIOCGIFADDR *************** *** 186,195 **** if (ioctl(fd, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", "ge0"= );=20 perror("ioctl(SIOCGIFADDR)"); ! close(fd); ! return -1; ! } ! else { memcpy(if_ip_addr, &((*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr= ), sizeof(struct in_addr)); got_ip_addr =3D 2; } --- 186,192 ---- if (ioctl(fd, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", "ge0"= );=20 perror("ioctl(SIOCGIFADDR)"); ! } else { memcpy(if_ip_addr, &((*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr= ), sizeof(struct in_addr)); got_ip_addr =3D 2; } --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+44L2GI9EwHF2dYYRAoT3AKC1U/MZ6y2fi5l3f8McJEL9ILwOcwCg1ril GWDRgyQDI0e/U45Ugqc5Yxw= =kX7q -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From pdw@sphinx.mythic-beasts.com Sun Jun 08 19:48:10 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19P5D8-0000XA-00; Sun, 08 Jun 2003 19:48:10 +0100 Date: Sun, 8 Jun 2003 19:48:10 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] v0.13pre1 Message-ID: <20030608194810.B30117@sphinx.mythic-beasts.com> References: <20030608191003.A30117@sphinx.mythic-beasts.com> <20030608183951.GA24846@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030608183951.GA24846@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Sun, Jun 08, 2003 at 01:39:51PM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Jun 08, 2003 at 01:39:51PM -0500, Jonathan Abbey wrote: > > The only other change is to make failure to find hardware/ethernet > > addresses non-fatal. > > The addrs_dlpi.c file isn't set up to fail non-fatally as it stands. Yeah - I realised that. The non-fatal failure thing came up after the 0.12 release, so I merged the changes with your patch, but only for the ioctl code and left the other code as a TODO (see comment at the top of addrs_dlpi.c). This came up as an issue when running iftop on an i/f with no IP address. Thanks for the patch - now in CVS. Paul From pdw@sphinx.mythic-beasts.com Mon Jun 09 20:35:10 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19PSQA-00040t-00 for iftop-users@lists.beasts.org; Mon, 09 Jun 2003 20:35:10 +0100 Date: Mon, 9 Jun 2003 20:35:10 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030609203510.A12739@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] iftop 0.13pre2 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 0.13pre2 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre2.tar.gz Add cummulative line totals (press "T") Errors during IP/MAC address discovery are now non-fatal when using dlpi. Paul From jonabbey@arlut.utexas.edu Mon Jun 09 20:51:33 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19PSg0-0004Uy-00 for iftop-users@lists.beasts.org; Mon, 09 Jun 2003 20:51:32 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h59JpUTQ050855; Mon, 9 Jun 2003 14:51:30 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h59JpU8q020981; Mon, 9 Jun 2003 14:51:30 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h59JpTP08131; Mon, 9 Jun 2003 14:51:29 -0500 (CDT) Date: Mon, 9 Jun 2003 14:51:29 -0500 From: Jonathan Abbey To: Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.13pre2 Message-ID: <20030609195129.GA5056@arlut.utexas.edu> References: <20030609203510.A12739@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <20030609203510.A12739@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 09, 2003 at 08:35:10PM +0100, Paul Warren wrote: | 0.13pre2 is now available from: |=20 | http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre2.tar.gz |=20 | Add cummulative line totals (press "T") | Errors during IP/MAC address discovery are now non-fatal when using | dlpi. Looks great. The cummulative line totals is a very nice feature. --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+5OVBGI9EwHF2dYYRAvhcAKDORCQwbYKYIJ03H27RxwhjYLkvqwCdHnmx Ngosx9pVzV+0ixA4IUgzaZE= =zvVp -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From x123@ns1.onperfect.com Sun Jul 06 17:49:39 2003 Received: from [64.223.202.250] (helo=onperfect.com) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #2) id 19ZChm-0007CI-00 for iftop-users@lists.beasts.org; Sun, 06 Jul 2003 17:49:38 +0100 Received: (qmail 22057 invoked by uid 2583); 6 Jul 2003 16:50:14 -0000 Message-ID: <20030706165014.22056.qmail@onperfect.com> From: x123@onperfect.com To: iftop-users@lists.beasts.org Date: Sun, 06 Jul 2003 12:50:14 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [Iftop-users] by port Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Ok, I'm going to apologize ahead of time for being thick headed. I'm just missing it I guess. We've been using iftop for months. In the past couple of months iftop is in continuous use. We have a wireless network 50 nodes, 11 Mbps funneling into a T-1. We have some abusers of course. Otherwise it would run fine. I was looking at the iftop home page and saw there is a way to turn on source port, but can't figure out how. The below line appears, but I don't know how to get that to happen either. Thank You in advance for your patience and your help. For starters how to we get that exact screen? Host names hidden, source port shown, one line per host pair = network traffic by service From sopm@mail.tzptt.zj.cn Sat Aug 16 01:58:01 2003 Received: from [220.185.161.172] (helo=mail.tzptt.zj.cn) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19npOJ-0002g6-00 for iftop-users@lists.beasts.org; Sat, 16 Aug 2003 01:58:01 +0100 From: "lee jun" To: iftop-users@lists.beasts.org Content-Type: text/plain;charset="GB2312" Reply-To: mould@china.com Date: Sat, 16 Aug 2003 08:57:58 +0800 X-Priority: 3 X-Mailer: FoxMail 4.0 beta 2 [cn] Message-Id: Subject: [Iftop-users] mould & moulding offer Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: www.cnmould.com Dear Sir, How are you? We are plastic mould manufacturer located in China, can offer you top quality design and tooling. Please check our website for further information. thank you and best regards, SOPM Marketing Depart. Sino-Origin Plastic Mould Manufacturer Ltd. Sino Plastic Machinery Manufacturer Ltd. 32#Dong Rd. western Huangyan, Zhejiang, China. tel: 86-576-4023777 / 4023559 fax: 86-576-4018996 / 4050163 email: mould@china.com www.cnmould.com (contructuring) From sirid@positivemind.com Sat Aug 23 01:41:32 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qMTD-0004jc-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 01:41:32 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id A8FA46BBFA for ; Fri, 22 Aug 2003 17:41:30 -0700 (PDT) Message-ID: <3F46B83A.50609@positivemind.com> Date: Fri, 22 Aug 2003 17:41:30 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: iftop-users@lists.beasts.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.8 required=5.0 tests=USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] mac os x 10.2.6 compile? Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Greetings, I'm trying to get 0.13 to compile and it gets to here and hangs. configure: WARNING: using single-threaded resolver with gethostbyaddr Consider obtaining ARES or a machine with a working gethostbyaddr_r. checking where to find pcap.h... /include checking for pcap_open_live in -lpcap... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... -lcurses checking how to compile a working program with POSIX threads... Any ideas? thanks, Siri Dhyan Singh From chris@ex-parrot.com Sat Aug 23 12:48:26 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qWsb-0004Qr-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 12:48:25 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NC8f49001274; Sat, 23 Aug 2003 13:08:41 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qWsa-0004sU-00; Sat, 23 Aug 2003 12:48:24 +0100 Date: Sat, 23 Aug 2003 12:48:24 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823114824.GC17363@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? Yep. It's a brokenness in Mac OS's POSIX threads routines. I'll try to do a fix later. -- If you see a long line of rats streaming off of a ship, the correct assumption is not `Gosh, I bet that's a real nice boat now that those rats are gone.' (Mike Sphar) From chris@ex-parrot.com Sat Aug 23 19:29:39 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qd8t-0001sZ-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 19:29:39 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NInt49001634; Sat, 23 Aug 2003 19:49:56 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qd8s-0005nQ-00; Sat, 23 Aug 2003 19:29:38 +0100 Date: Sat, 23 Aug 2003 19:29:38 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823182938.GB28002@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? Please could you try applying the following patch and re-running configure? diff -u -r1.1 pthread.c --- config/pthread.c 2002/11/04 12:27:35 1.1 +++ config/pthread.c 2003/08/23 18:29:11 @@ -24,7 +24,7 @@ pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) - pause(); + pthread_testcancel(); } -- ``Pirates only run for two things: money and public office.'' (`Yosemite Sam') From chris@ex-parrot.com Sat Aug 23 19:36:47 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qdFn-00027q-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 19:36:47 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NIv449001645; Sat, 23 Aug 2003 19:57:04 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qdFk-0005pi-00; Sat, 23 Aug 2003 19:36:44 +0100 Date: Sat, 23 Aug 2003 19:36:44 +0100 From: Chris Lightfoot To: Siri Dhyan Singh , Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823183644.GC28002@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. [ aside to Paul: Mac OS X, being BSD, has no thread-safe way to resolve names. There is no need to act surprised at this point. But maybe we should write a Netscape-style forking asynchronous resolver? ] > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? with the patch I just sent, and the following: diff -u -r1.32 options.c --- options.c 2003/03/01 01:55:13 1.32 +++ options.c 2003/08/23 18:33:21 @@ -134,7 +134,7 @@ options.netfiltermask.s_addr = htonl(0xffffffffl); } else { - uint32_t mm = 0xffffffffl; + u_int32_t mm = 0xffffffffl; mm >>= n; options.netfiltermask.s_addr = htonl(~mm); } iftop compiles and runs happily. -- ``... Traverse the curve, carrying a spear, in a time less than that it takes for a lion to walk its own length.'' (How To Hunt A Lion: the Peano method) From sirid@positivemind.com Mon Aug 25 20:17:55 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rMqh-0007U1-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 20:17:55 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 93EE86BCCE; Sat, 23 Aug 2003 10:06:24 -0700 (PDT) Message-ID: <3F479F0F.1000500@positivemind.com> Date: Sat, 23 Aug 2003 10:06:23 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> In-Reply-To: <20030823114824.GC17363@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > >>Greetings, >> >>I'm trying to get 0.13 to compile and it gets to here and hangs. >> >>configure: WARNING: using single-threaded resolver with gethostbyaddr >> Consider obtaining ARES or a machine with a working gethostbyaddr_r. >>checking where to find pcap.h... /include >>checking for pcap_open_live in -lpcap... yes >>checking pcap.h usability... yes >>checking pcap.h presence... yes >>checking for pcap.h... yes >>checking for a curses library containing mvchgat... -lcurses >>checking how to compile a working program with POSIX threads... >> >>Any ideas? > > > Yep. It's a brokenness in Mac OS's POSIX threads routines. > I'll try to do a fix later. Alright thanks! I'm fairly lightweight when it comes to C/C++ but I do have a programming background so if there's anything I can do to help please let me know. Kind Regards, -Siri Dhyan > From chris@ex-parrot.com Mon Aug 25 20:48:55 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rNKh-0008Bd-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 20:48:55 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7PK9H49010011; Mon, 25 Aug 2003 21:09:17 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19rNKg-0002ip-00; Mon, 25 Aug 2003 20:48:54 +0100 Date: Mon, 25 Aug 2003 20:48:54 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030825194854.GA10379@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F479F0F.1000500@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: > Chris Lightfoot wrote: > >Yep. It's a brokenness in Mac OS's POSIX threads routines. > >I'll try to do a fix later. (At this point I should say that I think the Mac OS behaviour is in fact standards-compliant, but unhelpful.) > Alright thanks! > > I'm fairly lightweight when it comes to C/C++ but I do have a > programming background so if there's anything I can do to help please > let me know. Have you tried the two patches I sent? iftop compiles fine on my Mac now but I suspect my version is a little out of sync with 0.13. (Stop reading here if you don't want to know the gory details.) The background to this problem: different systems need different combinations of compiler options to get working POSIX threads support. Linux and Solaris, in particular, are quite different, and IIRC the compiler options which work on Linux give programs which compile *but when run cannot start threads* on Solaris. So config/pthread.c is a small test program which spawns a thread which then changes the value of a variable; the controlling thread then cancels the subthread and verifies that the variable's value has changed. This allows us to detect whether we have threads that work at all; the configure script can try compiling this program with various different options until it works. Unfortunately, on Mac OS X, the program hung while trying to cancel (==kill) the subthread. This was because I had assumed -- incorrectly, it seems -- that the function yield(2) was a cancellation point. While it is (or appears to be) on Linux and Solaris, it isn't in Mac OS X. While this might seem surprising, it apparently conforms to the standard. Slightly more surprisingly, replacing yield() with sleep(1) also caused the thing to hang, which I believe is wrong, since http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html lists sleep as a cancellation point. The take home message? Threads: Just Say No. -- Gentlemen! You can't fight in here! This is the War Room! (from `Dr. Strangelove') From sirid@positivemind.com Mon Aug 25 22:26:28 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rOr5-00021B-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 22:26:28 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 8C7B66C107; Mon, 25 Aug 2003 14:26:26 -0700 (PDT) Message-ID: <3F4A7F02.3080504@positivemind.com> Date: Mon, 25 Aug 2003 14:26:26 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> In-Reply-To: <20030825194854.GA10379@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: > >>Chris Lightfoot wrote: > > >>>Yep. It's a brokenness in Mac OS's POSIX threads routines. >>>I'll try to do a fix later. > > > (At this point I should say that I think the Mac OS > behaviour is in fact standards-compliant, but unhelpful.) > > >>Alright thanks! >> >>I'm fairly lightweight when it comes to C/C++ but I do have a >>programming background so if there's anything I can do to help please >>let me know. > > > Have you tried the two patches I sent? iftop compiles fine > on my Mac now but I suspect my version is a little out of > sync with 0.13. I just applied the patches and it seems to be working fine. I supply a n interface of en0 as its OS X and I'm off and running. > > > (Stop reading here if you don't want to know the gory > details.) > > The background to this problem: different systems need > different combinations of compiler options to get working > POSIX threads support. Linux and Solaris, in particular, > are quite different, and IIRC the compiler options which > work on Linux give programs which compile *but when run > cannot start threads* on Solaris. ahh how nice and frustrating :-) > > So config/pthread.c is a small test program which spawns a > thread which then changes the value of a variable; the > controlling thread then cancels the subthread and verifies > that the variable's value has changed. This allows us to > detect whether we have threads that work at all; the > configure script can try compiling this program with > various different options until it works. > > Unfortunately, on Mac OS X, the program hung while trying > to cancel (==kill) the subthread. This was because I had > assumed -- incorrectly, it seems -- that the function > yield(2) was a cancellation point. While it is (or appears > to be) on Linux and Solaris, it isn't in Mac OS X. While > this might seem surprising, it apparently conforms to the > standard. Slightly more surprisingly, replacing yield() > with sleep(1) also caused the thing to hang, which I > believe is wrong, since > http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html > lists sleep as a cancellation point. > > The take home message? Threads: Just Say No. many thanks -Siri dhyan > From sirid@positivemind.com Mon Aug 25 23:50:50 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rQAk-0004Yh-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 23:50:50 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 356CD6C3E2 for ; Mon, 25 Aug 2003 15:50:51 -0700 (PDT) Message-ID: <3F4A92CA.3080908@positivemind.com> Date: Mon, 25 Aug 2003 15:50:50 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> In-Reply-To: <3F4A7F02.3080504@positivemind.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Siri Dhyan Singh wrote: > > > Chris Lightfoot wrote: > >> On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: >> >>> Chris Lightfoot wrote: >> >> >> >>>> Yep. It's a brokenness in Mac OS's POSIX threads routines. >>>> I'll try to do a fix later. >> >> >> >> (At this point I should say that I think the Mac OS >> behaviour is in fact standards-compliant, but unhelpful.) >> >> >>> Alright thanks! >>> >>> I'm fairly lightweight when it comes to C/C++ but I do have a >>> programming background so if there's anything I can do to help please >>> let me know. >> >> >> >> Have you tried the two patches I sent? iftop compiles fine >> on my Mac now but I suspect my version is a little out of >> sync with 0.13. > > > I just applied the patches and it seems to be working fine. I supply a > n interface of en0 as its OS X and I'm off and running. A little more background here. Basically on OS X 10.2.6 (and other BSDs I suspect) I'm pulling up a couple of pseudo devices used for tunneling which are probably not appropriate as defaults for iftop. Here's a little patch. My first code contribution to an open source project - a historic moment ;-). diff -u options.orig options.c --- options.orig Mon Aug 25 15:30:26 2003 +++ options.c Mon Aug 25 15:33:32 2003 @@ -40,6 +40,8 @@ static char *bad_interface_names[] = { "lo:", "lo", + "stf", //pseudo-device 6to4 tunnel interface + "gif", //psuedo-device generic tunnel interface "dummy", "vmnet", NULL /* last entry must be NULL */ Kind Regards, Siri Dhyan > >> >> >> (Stop reading here if you don't want to know the gory >> details.) >> >> The background to this problem: different systems need >> different combinations of compiler options to get working >> POSIX threads support. Linux and Solaris, in particular, >> are quite different, and IIRC the compiler options which >> work on Linux give programs which compile *but when run >> cannot start threads* on Solaris. > > > ahh how nice and frustrating :-) > >> >> So config/pthread.c is a small test program which spawns a >> thread which then changes the value of a variable; the >> controlling thread then cancels the subthread and verifies >> that the variable's value has changed. This allows us to >> detect whether we have threads that work at all; the >> configure script can try compiling this program with >> various different options until it works. >> >> Unfortunately, on Mac OS X, the program hung while trying >> to cancel (==kill) the subthread. This was because I had >> assumed -- incorrectly, it seems -- that the function >> yield(2) was a cancellation point. While it is (or appears >> to be) on Linux and Solaris, it isn't in Mac OS X. While >> this might seem surprising, it apparently conforms to the >> standard. Slightly more surprisingly, replacing yield() >> with sleep(1) also caused the thing to hang, which I >> believe is wrong, since >> http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html >> lists sleep as a cancellation point. >> >> The take home message? Threads: Just Say No. > > > many thanks > > -Siri dhyan > >> > > > _______________________________________________ > iftop-users mailing list > iftop-users@lists.beasts.org > http://lists.beasts.org/mailman/listinfo/iftop-users From chris@ex-parrot.com Tue Aug 26 00:31:14 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rQnq-0005bV-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 00:31:14 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7PNpW49010279; Tue, 26 Aug 2003 00:51:32 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19rQnk-0003xT-00; Tue, 26 Aug 2003 00:31:08 +0100 Date: Tue, 26 Aug 2003 00:31:08 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030825233108.GD12619@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> <3F4A92CA.3080908@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4A92CA.3080908@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Aug 25, 2003 at 03:50:50PM -0700, Siri Dhyan Singh wrote: > Siri Dhyan Singh wrote: > >I just applied the patches and it seems to be working fine. I supply a > >n interface of en0 as its OS X and I'm off and running. > > A little more background here. Basically on OS X 10.2.6 (and other BSDs > I suspect) I'm pulling up a couple of pseudo devices used for tunneling > which are probably not appropriate as defaults for iftop. Here's a > little patch. My first code contribution to an open source project - a > historic moment ;-). > > diff -u options.orig options.c > --- options.orig Mon Aug 25 15:30:26 2003 > +++ options.c Mon Aug 25 15:33:32 2003 > @@ -40,6 +40,8 @@ > static char *bad_interface_names[] = { > "lo:", > "lo", > + "stf", //pseudo-device 6to4 tunnel interface [ Tiny suggestion: better to use /* ... */ comments in C programs, since // is not universally supported yet. ] > + "gif", //psuedo-device generic tunnel interface > "dummy", > "vmnet", > NULL /* last entry must be NULL */ Noted. Many thanks. -- Hicks Nix Sticks Pix (headline, in `Variety', July 17 1935) From matthew@positivemind.com Tue Aug 26 01:06:37 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rRM5-0006MF-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 01:06:37 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id A0A686C586; Mon, 25 Aug 2003 17:06:33 -0700 (PDT) Message-ID: <3F4AA489.9060706@positivemind.com> Date: Mon, 25 Aug 2003 17:06:33 -0700 From: "Matthew M. Austin" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> <3F4A92CA.3080908@positivemind.com> <20030825233108.GD12619@caesious.cold.local> In-Reply-To: <20030825233108.GD12619@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Mon, Aug 25, 2003 at 03:50:50PM -0700, Siri Dhyan Singh wrote: > >>Siri Dhyan Singh wrote: > > >>>I just applied the patches and it seems to be working fine. I supply a >>>n interface of en0 as its OS X and I'm off and running. >> >>A little more background here. Basically on OS X 10.2.6 (and other BSDs >>I suspect) I'm pulling up a couple of pseudo devices used for tunneling >>which are probably not appropriate as defaults for iftop. Here's a >>little patch. My first code contribution to an open source project - a >>historic moment ;-). >> >>diff -u options.orig options.c >>--- options.orig Mon Aug 25 15:30:26 2003 >>+++ options.c Mon Aug 25 15:33:32 2003 >>@@ -40,6 +40,8 @@ >> static char *bad_interface_names[] = { >> "lo:", >> "lo", >>+ "stf", //pseudo-device 6to4 tunnel interface > > > [ Tiny suggestion: better to use /* ... */ comments in C > programs, since // is not universally supported yet. ] And here I was wondering why you had used multiline comments for single lines having forgotten that tidbit about C. I'll keep that in mind going forward. > > >>+ "gif", //psuedo-device generic tunnel interface >> "dummy", >> "vmnet", >> NULL /* last entry must be NULL */ > > > Noted. Many thanks. > From pdw@sphinx.mythic-beasts.com Tue Aug 26 10:53:26 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19raVw-0004oK-00; Tue, 26 Aug 2003 10:53:24 +0100 Date: Tue, 26 Aug 2003 10:53:24 +0100 From: Paul Warren To: Chris Lightfoot Cc: Siri Dhyan Singh , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030826105324.N31377@sphinx.mythic-beasts.com> References: <3F46B83A.50609@positivemind.com> <20030823183644.GC28002@caesious.cold.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030823183644.GC28002@caesious.cold.local>; from chris@ex-parrot.com on Sat, Aug 23, 2003 at 07:36:44PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Aug 23, 2003 at 07:36:44PM +0100, Chris Lightfoot wrote: > On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > > Greetings, > > > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > > > configure: WARNING: using single-threaded resolver with gethostbyaddr > > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > > [ aside to Paul: Mac OS X, being BSD, has no thread-safe > way to resolve names. There is no need to act surprised > at this point. But maybe we should write a > Netscape-style forking asynchronous resolver? ] I assume you are speaking of a different type of asynchronous resolver to that found in Netscape 4.x which caused all windows to crash should one window fail to resolve a host name? Paul From sjb@ambrielconsulting.com Tue Aug 26 13:34:24 2003 Received: from 62-241-188-167.dsl.pipex.com ([62.241.188.167] helo=jupiter.helios.local) by sphinx.mythic-beasts.com with asmtp (Exim 3.33 #2) id 19rd1j-0001uS-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 13:34:24 +0100 From: Steven J Baker To: iftop-users@lists.beasts.org Content-Type: text/plain Organization: Ambriel Consulting Message-Id: <1061901210.11146.1.camel@jupiter.helios.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 26 Aug 2003 13:33:30 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_XIMIAN version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop in Mac OS X Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Works for me too. Splendid :-) -- Steven J Baker Ambriel Consulting From pdw@sphinx.mythic-beasts.com Tue Aug 26 13:44:24 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19rdBL-0002NV-00; Tue, 26 Aug 2003 13:44:19 +0100 Date: Tue, 26 Aug 2003 13:44:19 +0100 From: Paul Warren To: Steven J Baker Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop in Mac OS X Message-ID: <20030826134419.U31377@sphinx.mythic-beasts.com> References: <1061901210.11146.1.camel@jupiter.helios.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1061901210.11146.1.camel@jupiter.helios.local>; from sjb@ambrielconsulting.com on Tue, Aug 26, 2003 at 01:33:30PM +0100 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Tue, Aug 26, 2003 at 01:33:30PM +0100, Steven J Baker wrote: > Works for me too. Splendid :-) Sounds like a release is called for. cat >> TODO. Paul From pdw@sphinx.mythic-beasts.com Wed Aug 27 19:46:25 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19s5JJ-0002p4-00 for iftop-users@lists.beasts.org; Wed, 27 Aug 2003 19:46:25 +0100 Date: Wed, 27 Aug 2003 19:46:25 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030827194625.A10536@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop 0.14pre1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: iftop 0.14pre1 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.14pre1.tar.gz The only changes are the Mac OS X fixes, but please do give it a go and let me know if it's not working. thanks, Paul From mitc60@hotmail.com Thu Aug 28 09:11:22 2003 Received: from sea2-f27.sea2.hotmail.com ([207.68.165.27] helo=hotmail.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sHsI-00062p-00 for iftop-users@lists.beasts.org; Thu, 28 Aug 2003 09:11:22 +0100 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 01:10:50 -0700 Received: from 210.23.228.31 by sea2fd.sea2.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 08:10:49 GMT X-Originating-IP: [210.23.228.31] X-Originating-Email: [mitc60@hotmail.com] From: "mitc company" To: iftop-users@lists.beasts.org Bcc: Date: Thu, 28 Aug 2003 08:10:49 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 08:10:50.0492 (UTC) FILETIME=[E4C1F3C0:01C36D3B] X-Spam-Status: No, hits=0.6 required=5.0 tests=FROM_ENDS_IN_NUMS version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] Periodic dump of data Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hello, Is it possible to have iftop dump it counters to a file periodically. Iftop can nicely show me the current network utilization but it would be nice if I can graph this over time. _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From pdw@sphinx.mythic-beasts.com Thu Aug 28 11:29:33 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19sK21-0003LP-00; Thu, 28 Aug 2003 11:29:33 +0100 Date: Thu, 28 Aug 2003 11:29:33 +0100 From: Paul Warren To: mitc company Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Periodic dump of data Message-ID: <20030828112933.L31325@sphinx.mythic-beasts.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mitc60@hotmail.com on Thu, Aug 28, 2003 at 08:10:49AM +0000 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Aug 28, 2003 at 08:10:49AM +0000, mitc company wrote: > Is it possible to have iftop dump it counters to a file periodically. Iftop > can nicely show me the current network utilization but it would be nice if I > can graph this over time. What data do you want dumped? Instantaneous total bandwidth? Instantaneous bandwidth for all hosts? I'm reluctant to put this in as there are other tools available to graph bandwidth usage over a long period of time, in the same way that there are tools to graph CPU usage over time and this functionality is therefore not included in top. Paul From admin@ntworks.org Thu Aug 28 19:57:15 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sRxK-00024i-00 for iftop-users@lists.beasts.org; Thu, 28 Aug 2003 19:57:14 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id 956E0A6992; Thu, 28 Aug 2003 13:57:10 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id 8A51AA6990 for ; Thu, 28 Aug 2003 13:57:06 -0500 (CDT) From: "Michael" To: Date: Thu, 28 Aug 2003 13:54:38 -0700 Message-ID: <000501c36da6$9c15d0e0$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop on openbsd Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday from the current /snapshot/i386/ openbsd directory) It seems to work except once loaded I cant stop it with "q" like I can in linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have to open a new bash shell and kill -9 its pid Anyone use iftop on openbsd with no probs? From pdw@sphinx.mythic-beasts.com Fri Aug 29 16:51:56 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19slXV-00019m-00; Fri, 29 Aug 2003 16:51:53 +0100 Date: Fri, 29 Aug 2003 16:51:53 +0100 From: Paul Warren To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829165153.C10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000501c36da6$9c15d0e0$6400a8c0@athena>; from admin@ntworks.org on Thu, Aug 28, 2003 at 01:54:38PM -0700 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) > > It seems to work except once loaded I cant stop it with "q" like I can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid > > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From chris@madingley.org Fri Aug 29 16:54:13 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19slZk-0001GX-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 16:54:12 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGEi49006449; Fri, 29 Aug 2003 17:14:44 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TFsBbR021831; Fri, 29 Aug 2003 16:54:11 +0100 Date: Fri, 29 Aug 2003 16:54:11 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829155411.GA20794@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829165153.C10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 04:51:53PM +0100, Paul Warren wrote: > On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > > from the current /snapshot/i386/ openbsd directory) > > > > It seems to work except once loaded I cant stop it with "q" like I can in > > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > > to open a new bash shell and kill -9 its pid [...] > My guess is that it's a difference in the handling of threads (is that > vague enough?), and the stuff that makes is quit is action="pass">stuff that Chris wrote *groan* I wonder if OpenBSD runs under VMWare yet? Alternatively, would one of you security-conscious OpenBSD people like to give me root access to your machine? (No, I didn't think so.) -- Theoreticians have always succeeded in providing an understanding for all observed phenomena--even those which later proved to be incorrect (anonymous) From pdw@sphinx.mythic-beasts.com Fri Aug 29 17:07:30 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19slmb-0001pD-00; Fri, 29 Aug 2003 17:07:29 +0100 Date: Fri, 29 Aug 2003 17:07:29 +0100 From: Paul Warren To: Chris Lightfoot Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829170728.F10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030829155411.GA20794@aquila.esc.cam.ac.uk>; from chris@ex-parrot.com on Fri, Aug 29, 2003 at 04:54:11PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > On Fri, Aug 29, 2003 at 04:51:53PM +0100, Paul Warren wrote: > > On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > > > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > > > from the current /snapshot/i386/ openbsd directory) > > > > > > It seems to work except once loaded I cant stop it with "q" like I can in > > > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > > > to open a new bash shell and kill -9 its pid > [...] > > My guess is that it's a difference in the handling of threads (is that > > vague enough?), and the stuff that makes is quit is > action="pass">stuff that Chris wrote > > *groan* > > I wonder if OpenBSD runs under VMWare yet? Alternatively, > would one of you security-conscious OpenBSD people like to > give me root access to your machine? (No, I didn't think > so.) At a quick guess, I'd say that pcap_loop doesn't call any thread cancellation points, so it hangs on pthread_cancel. Paul From chris@madingley.org Fri Aug 29 17:13:04 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sls0-0002Ri-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:13:04 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGXa49006525; Fri, 29 Aug 2003 17:33:36 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TGD2PQ023134; Fri, 29 Aug 2003 17:13:02 +0100 Date: Fri, 29 Aug 2003 17:13:02 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829161302.GB22440@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829170728.F10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-39.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:07:29PM +0100, Paul Warren wrote: > On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > > > My guess is that it's a difference in the handling of threads (is that > > > vague enough?), and the stuff that makes is quit is > > action="pass">stuff that Chris wrote [...] > At a quick guess, I'd say that pcap_loop doesn't call any thread > cancellation points, so it hangs on pthread_cancel. Ah, that's a good point. That said, I'm surprised that quitting works on Mac OS X if that's the problem.... Try this patch: (not absolutely certain about the second parameter to pcap_dispatch; try 1 if -1 doesn't work) diff -u -r1.44 iftop.c --- iftop.c 2003/05/20 21:14:37 1.44 +++ iftop.c 2003/08/29 16:10:06 @@ -528,7 +528,9 @@ /* packet_loop: * Worker function for packet capture thread. */ void packet_loop(void* ptr) { - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); + /* Make sure that this thread is cancellable. */ + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) + pcap_testcancel(); } (I should say that I don't recall being the one to put the PCAP stuff in a thread. I have a horror of threads anyway....) -- ``... you cannot make a pair of croak-voiced Daleks appear benevolent even if you dress one of them up in an Armani suit and call the other Marmaduke.'' (Dennis Potter, on ex-BBC big cheeses John Birt and Marmaduke Hussey) From pdw@sphinx.mythic-beasts.com Fri Aug 29 17:26:48 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19sm5F-0002rl-00; Fri, 29 Aug 2003 17:26:45 +0100 Date: Fri, 29 Aug 2003 17:26:45 +0100 From: Paul Warren To: Chris Lightfoot Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829172645.G10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> <20030829161302.GB22440@aquila.esc.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030829161302.GB22440@aquila.esc.cam.ac.uk>; from chris@ex-parrot.com on Fri, Aug 29, 2003 at 05:13:02PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:13:02PM +0100, Chris Lightfoot wrote: > On Fri, Aug 29, 2003 at 05:07:29PM +0100, Paul Warren wrote: > > On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > > > > > My guess is that it's a difference in the handling of threads (is that > > > > vague enough?), and the stuff that makes is quit is > > > action="pass">stuff that Chris wrote > [...] > > At a quick guess, I'd say that pcap_loop doesn't call any thread > > cancellation points, so it hangs on pthread_cancel. > > Ah, that's a good point. That said, I'm surprised that > quitting works on Mac OS X if that's the problem.... > > Try this patch: (not absolutely certain about the second > parameter to pcap_dispatch; try 1 if -1 doesn't work) > > > diff -u -r1.44 iftop.c > --- iftop.c 2003/05/20 21:14:37 1.44 > +++ iftop.c 2003/08/29 16:10:06 > @@ -528,7 +528,9 @@ > /* packet_loop: > * Worker function for packet capture thread. */ > void packet_loop(void* ptr) { > - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); > + /* Make sure that this thread is cancellable. */ > + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) > + pcap_testcancel(); > } ITYM pthread_testcancel, and that'll nead the thread handle. > (I should say that I don't recall being the one to put the > PCAP stuff in a thread. I have a horror of threads > anyway....) No. I don't understand threads, but I managed to figure out just enough to get them to start in different threads. Obviously, I couldn't then figure out how to make the stop again - you fixed that bit, and therefore claim ownership of that functionality ;-) It may be far less broken than when you first touched it, but you were the last one to touch it... Paul From chris@madingley.org Fri Aug 29 17:33:12 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smBU-00035N-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:33:12 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGri49006563; Fri, 29 Aug 2003 17:53:44 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TGXBDv024199; Fri, 29 Aug 2003 17:33:11 +0100 Date: Fri, 29 Aug 2003 17:33:11 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829163311.GA24174@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> <20030829161302.GB22440@aquila.esc.cam.ac.uk> <20030829172645.G10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829172645.G10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-33.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:26:45PM +0100, Paul Warren wrote: > On Fri, Aug 29, 2003 at 05:13:02PM +0100, Chris Lightfoot wrote: > > Try this patch: (not absolutely certain about the second > > parameter to pcap_dispatch; try 1 if -1 doesn't work) > > > > > > diff -u -r1.44 iftop.c > > --- iftop.c 2003/05/20 21:14:37 1.44 > > +++ iftop.c 2003/08/29 16:10:06 > > @@ -528,7 +528,9 @@ > > /* packet_loop: > > * Worker function for packet capture thread. */ > > void packet_loop(void* ptr) { > > - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); > > + /* Make sure that this thread is cancellable. */ > > + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) > > + pcap_testcancel(); > > } > > ITYM pthread_testcancel, yes > and that'll nead the thread handle. no, in fact. > > (I should say that I don't recall being the one to put the > > PCAP stuff in a thread. I have a horror of threads > > anyway....) > > No. I don't understand threads, but I managed to figure out just enough > to get them to start in different threads. Obviously, I couldn't then > figure out how to make the stop again - you fixed that bit, and > therefore claim ownership of that functionality ;-) It may be far less > broken than when you first touched it, but you were the last one to > touch it... gah. ok, fair enough. -- The University of California Department of Statistics... where mean is normal, and deviation standard From admin@ntworks.org Fri Aug 29 17:58:27 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smZu-0003zA-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:58:26 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id DD76FA6992; Fri, 29 Aug 2003 11:58:24 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id 74C92A6990 for ; Fri, 29 Aug 2003 11:58:23 -0500 (CDT) From: "Michael" To: Subject: RE: [Iftop-users] iftop on openbsd Date: Fri, 29 Aug 2003 11:55:52 -0700 Message-ID: <000301c36e5f$2e9b1610$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal X-Spam-Status: No, hits=-13.0 required=5.0 tests=EMAIL_ATTRIBUTION,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: As a matter of fact it seems none of the keyboard input is being = recognized by iftop... I reinstalled my server to openbsd 3.3-stable, and = installed iftop, and when running it from ssh session or from the console, it = never accepts keyboard input, even a kill command ? I will try the patch Oh and by the way yes openbsd does run under vmware... in fact the = openbsd system I am testing iftop on is running under vmware GSX server on a = gentoo linux host. -----Original Message----- From: Paul Warren [mailto:pdw@sphinx.mythic-beasts.com] On Behalf Of = Paul Warren Sent: Friday, August 29, 2003 8:52 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) >=20 > It seems to work except once loaded I cant stop it with "q" like I = can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid >=20 > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From admin@ntworks.org Fri Aug 29 18:10:08 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smlD-0004KH-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:10:07 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id DA277A6992; Fri, 29 Aug 2003 12:10:05 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id C5F62A6990 for ; Fri, 29 Aug 2003 12:10:01 -0500 (CDT) From: "Michael" To: Subject: RE: [Iftop-users] iftop on openbsd Date: Fri, 29 Aug 2003 12:07:30 -0700 Message-ID: <000401c36e60$cee5d370$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal X-Spam-Status: No, hits=-13.0 required=5.0 tests=EMAIL_ATTRIBUTION,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Ok the make for the patched iftop.c failed : source=3D'iftop.c' object=3D'iftop.o' libtool=3Dno = depfile=3D'.deps/iftop.Po' tmpdepfile=3D'.deps/iftop.TPo' depmode=3Dgcc /bin/sh ./config/depcomp = gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f 'iftop.c' || echo './'`iftop.c iftop.c: In function `packet_loop': iftop.c:511: `p' undeclared (first use in this function) iftop.c:511: (Each undeclared identifier is reported only once iftop.c:511: for each function it appears in.) *** Error code 1 Stop in /root/iftop-0.13. *** Error code 1 Stop in /root/iftop-0.13 (line 352 of Makefile). *** Error code 1 forgive me I'm not much of a coder=20 any ideas ? oh and I need to edit the last email, instead of saying "keyboard input = is being recognized" I meant IS NOT being recognized. =3D( sorry -----Original Message----- From: Michael [mailto:admin@ntworks.org]=20 Sent: Friday, August 29, 2003 11:56 AM To: 'iftop-users@lists.beasts.org' Subject: RE: [Iftop-users] iftop on openbsd As a matter of fact it seems none of the keyboard input is being = recognized by iftop... I reinstalled my server to openbsd 3.3-stable, and = installed iftop, and when running it from ssh session or from the console, it = never accepts keyboard input, even a kill command ? I will try the patch Oh and by the way yes openbsd does run under vmware... in fact the = openbsd system I am testing iftop on is running under vmware GSX server on a = gentoo linux host. -----Original Message----- From: Paul Warren [mailto:pdw@sphinx.mythic-beasts.com] On Behalf Of = Paul Warren Sent: Friday, August 29, 2003 8:52 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) >=20 > It seems to work except once loaded I cant stop it with "q" like I = can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid >=20 > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From chris@ex-parrot.com Fri Aug 29 18:13:21 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smoL-0004Si-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:13:21 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7THXq49006667; Fri, 29 Aug 2003 18:33:53 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19smoJ-0002qP-00; Fri, 29 Aug 2003 18:13:19 +0100 Date: Fri, 29 Aug 2003 18:13:19 +0100 From: Chris Lightfoot To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829171319.GD4474@caesious.cold.local> References: <000401c36e60$cee5d370$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000401c36e60$cee5d370$6400a8c0@athena> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-35.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 12:07:30PM -0700, Michael wrote: > > Ok the make for the patched iftop.c failed : sorry, first patch was broken. try this on the unpatched iftop.c: diff -u -r1.44 iftop.c --- iftop.c 2003/05/20 21:14:37 1.44 +++ iftop.c 2003/08/29 17:12:25 @@ -528,7 +528,9 @@ /* packet_loop: * Worker function for packet capture thread. */ void packet_loop(void* ptr) { - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); + /* Make sure that this thread is cancellable. */ + while (pcap_dispatch(pd, -1, (pcap_handler)packet_handler, NULL) != -1) + pthread_testcancel(); } -- ``Like any Englishman armed with a cricket bat, he was doomed to fail.'' (Guy Ladenburg, prosecuting, comments on Paul Kelleher's first attempt to behead a statue of Margaret Thatcher) From admin@ntworks.org Fri Aug 29 18:26:40 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sn1D-0004zn-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:26:40 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id 2FE87A6992; Fri, 29 Aug 2003 12:26:38 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id D9AC8A6990; Fri, 29 Aug 2003 12:26:35 -0500 (CDT) From: "Michael" To: Cc: Subject: RE: [Iftop-users] iftop on openbsd Date: Fri, 29 Aug 2003 12:24:09 -0700 Message-ID: <000501c36e63$1f549380$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20030829171319.GD4474@caesious.cold.local> Importance: Normal X-Spam-Status: No, hits=-19.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,ORIGINAL_MESSAGE, PATCH_UNIFIED_DIFF version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Thanks for the quick reply, this patch compiles successfully However it still wont accept any keystrokes once iftop is started.. I've tried the keys to change the display while in iftop, and q to quit, = and ctrl-z, c, and x, and Break and ctrl-just-about-everything =3D/ but I appreciate the help! -----Original Message----- From: Chris Lightfoot [mailto:chris@ex-parrot.com]=20 Sent: Friday, August 29, 2003 10:13 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd On Fri, Aug 29, 2003 at 12:07:30PM -0700, Michael wrote: >=20 > Ok the make for the patched iftop.c failed : sorry, first patch was broken. try this on the unpatched iftop.c: diff -u -r1.44 iftop.c --- iftop.c 2003/05/20 21:14:37 1.44 +++ iftop.c 2003/08/29 17:12:25 @@ -528,7 +528,9 @@ /* packet_loop: * Worker function for packet capture thread. */ void packet_loop(void* ptr) { - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); + /* Make sure that this thread is cancellable. */ + while (pcap_dispatch(pd, -1, (pcap_handler)packet_handler, NULL) = !=3D -1) + pthread_testcancel(); } --=20 ``Like any Englishman armed with a cricket bat, he was doomed to fail.'' (Guy Ladenburg, prosecuting, comments on Paul Kelleher's first attempt to behead a statue of Margaret Thatcher) From chris@ex-parrot.com Fri Aug 29 18:30:15 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sn4h-00059n-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:30:15 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7THol49006706; Fri, 29 Aug 2003 18:50:47 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19sn4f-0002tL-00; Fri, 29 Aug 2003 18:30:13 +0100 Date: Fri, 29 Aug 2003 18:30:13 +0100 From: Chris Lightfoot To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829173013.GE4474@caesious.cold.local> References: <20030829171319.GD4474@caesious.cold.local> <000501c36e63$1f549380$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c36e63$1f549380$6400a8c0@athena> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 12:24:09PM -0700, Michael wrote: > Thanks for the quick reply, this patch compiles successfully > > However it still wont accept any keystrokes once iftop is started.. > I've tried the keys to change the display while in iftop, and q to quit, and > ctrl-z, c, and x, and Break and ctrl-just-about-everything =/ but I > appreciate the help! ok. if i get time i'll try installing openbsd on vmware and have a play. -- `Reading programs were set up in every city and village, and failure to attend was punishable by three years in jail.... UNESCO gave Saddam an award.' (Education, education, education, Iraq style; Mark Bowden on Saddam Hussein) From admin@ntworks.org Sat Aug 30 07:15:22 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sz17-00011d-00 for iftop-users@lists.beasts.org; Sat, 30 Aug 2003 07:15:21 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id AAADBA6992; Sat, 30 Aug 2003 01:15:19 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id 2AF44A6990; Sat, 30 Aug 2003 01:15:14 -0500 (CDT) From: "Michael" To: "'Chris Lightfoot'" Cc: Subject: RE: [Iftop-users] iftop on openbsd Date: Sat, 30 Aug 2003 01:12:19 -0700 Message-ID: <000001c36ece$72662140$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <20030829173013.GE4474@caesious.cold.local> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-6.4 required=5.0 tests=IN_REP_TO,ORIGINAL_MESSAGE version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Ok thanks a lot, iftop is a great program and I'm looking at migrating my firewall to BSD and it's a must-have item on my firewall. :) Oh btw I found 1 keystroke combination that it would accept - CTRL + \ which forces iftop to die and take a core dump in the current directory... which is err... ok I guess lol :) -----Original Message----- From: Chris Lightfoot [mailto:chris@ex-parrot.com] Sent: Friday, August 29, 2003 10:30 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd ok. if i get time i'll try installing openbsd on vmware and have a play. -- `Reading programs were set up in every city and village, and failure to attend was punishable by three years in jail.... UNESCO gave Saddam an award.' (Education, education, education, Iraq style; Mark Bowden on Saddam Hussein) From chris@ex-parrot.com Sun Aug 31 02:17:16 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19tGqC-000635-00 for iftop-users@lists.beasts.org; Sun, 31 Aug 2003 02:17:16 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7V1bp49009810; Sun, 31 Aug 2003 02:37:51 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19tGqA-0007g7-00; Sun, 31 Aug 2003 02:17:14 +0100 Date: Sun, 31 Aug 2003 02:17:14 +0100 From: Chris Lightfoot To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030831011714.GA22024@caesious.cold.local> References: <20030829171319.GD4474@caesious.cold.local> <000501c36e63$1f549380$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c36e63$1f549380$6400a8c0@athena> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 12:24:09PM -0700, Michael wrote: > Thanks for the quick reply, this patch compiles successfully > > However it still wont accept any keystrokes once iftop is started.. > I've tried the keys to change the display while in iftop, and q to quit, and > ctrl-z, c, and x, and Break and ctrl-just-about-everything =/ but I > appreciate the help! For me, keys work, but response is *incredibly* sluggish. I think the problem is that OpenBSD's thread support is userland and therefore I/O in any thread blocks others. There's some blurb about this here: http://groups.google.com/groups?selm=19991222000819.24957.qmail_hotmail.com%40ns.sol.net or see pthreads(3): In OpenBSD, threads are implemented in a user-level library. A program using these routines must be linked with the -pthread option. In particular, the thread running pcap_dispatch seems to stop any of the other threads running, much. Replacing pthread_testcancel() with usleep(10000) makes it more responsive, but (a) is really ugly, and (b) may do bad things to the accuracy of the program. Paul-- thoughts? -- ``It just seems to me that you are wilfully entering an arse-kicking contest with a monstrous entity that has sixteen legs and no arse....'' (seen on the internet) From pdw@sphinx.mythic-beasts.com Sat Sep 06 15:03:05 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 19vdeb-0003OT-00 for iftop-users@lists.beasts.org; Sat, 06 Sep 2003 15:03:05 +0100 Date: Sat, 6 Sep 2003 15:03:05 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030906150305.A12454@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] 0.14 released Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I have just uploaded iftop 0.14. New features: - Works on MacOS X - Minor fix to no DNS resolution mode - Includes Chris' if-this-doesn't-work-you-need-a-better-OS forking resolver as a fall back. Available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.14.tar.gz Paul From tschwinge@gmx.net Sun Sep 07 15:48:49 2003 Received: from postman2.arcor-online.net ([151.189.0.188] helo=postman.arcor.de) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 19w0qP-0000XO-00 for iftop-users@lists.beasts.org; Sun, 07 Sep 2003 15:48:49 +0100 Received: from server.schwinge.homeip.net (c-134-68-4.a.dial.de.ignite.net [62.134.68.4]) (authenticated bits=0) by postman.arcor.de (8.12.9/8.12.9) with ESMTP id h87EmlG0029505 for ; Sun, 7 Sep 2003 16:48:47 +0200 (MEST) Received: (qmail 4648 invoked by uid 7794); 7 Sep 2003 14:50:15 -0000 Received: from tschwinge@gmx.net by server by uid 500 with qmail-scanner-1.16 (clamscan: 0.60. spamassassin: 2.60-cvs. Clear:. Processed in 3.207438 secs); 07 Sep 2003 14:50:15 -0000 X-Qmail-Scanner-Mail-From: tschwinge@gmx.net via server X-Qmail-Scanner-Rcpt-To: iftop-users@lists.beasts.org X-Qmail-Scanner: 1.16 (Clear:. Processed in 3.207438 secs) Date: Sun, 7 Sep 2003 16:50:10 +0200 From: Thomas Schwinge To: iftop-users@lists.beasts.org Message-ID: <20030907145010.GA4572@server.schwinge.homeip.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] small patch Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello! You'll find a small patch attached; it'll make configure actually find libpcap. Regards, Thomas --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="iftop-libpcap.patch" Index: configure.in =================================================================== RCS file: /home/pdw/vcvs/repos/iftop/configure.in,v retrieving revision 1.13 diff -u -1 -b -p -r1.13 configure.in --- configure.in 6 Sep 2003 13:53:57 -0000 1.13 +++ configure.in 7 Sep 2003 14:44:07 -0000 @@ -279,3 +279,3 @@ else if test x$test_prefix != x ; then - LDFLAGS="$LDFLAGS -L$test_prefix" + LDFLAGS="$LDFLAGS -L$test_prefix/lib" fi --y0ulUmNC+osPPQO6-- From chris@ex-parrot.com Sun Sep 07 16:35:47 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 19w1Zq-00020V-00 for iftop-users@lists.beasts.org; Sun, 07 Sep 2003 16:35:46 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h87Fud49007868; Sun, 7 Sep 2003 16:56:39 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19w1Zm-00026I-00; Sun, 07 Sep 2003 16:35:42 +0100 Date: Sun, 7 Sep 2003 16:35:42 +0100 From: Chris Lightfoot To: Thomas Schwinge Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] small patch Message-ID: <20030907153542.GA7915@caesious.cold.local> References: <20030907145010.GA4572@server.schwinge.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907145010.GA4572@server.schwinge.homeip.net> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Sep 07, 2003 at 04:50:10PM +0200, Thomas Schwinge wrote: > Hello! > > You'll find a small patch attached; it'll make configure actually find > libpcap. Thanks. I've now committed this change in CVS. -- The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us. (Calvin and Hobbes) From pdw@sphinx.mythic-beasts.com Sun Sep 07 20:50:32 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 19w5YO-0002ZM-00; Sun, 07 Sep 2003 20:50:32 +0100 Date: Sun, 7 Sep 2003 20:50:31 +0100 From: Paul Warren To: Thomas Schwinge Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] small patch Message-ID: <20030907205031.A9715@sphinx.mythic-beasts.com> References: <20030907145010.GA4572@server.schwinge.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030907145010.GA4572@server.schwinge.homeip.net>; from tschwinge@gmx.net on Sun, Sep 07, 2003 at 04:50:10PM +0200 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Sep 07, 2003 at 04:50:10PM +0200, Thomas Schwinge wrote: > Hello! > > You'll find a small patch attached; it'll make configure actually find > libpcap. Thanks for the patch. On what system was this a problem? I thought the code had been written to track down most esoteric libpcap locations... Paul From tack@auc.ca Fri Oct 03 20:55:35 2003 Received: from ares.auc.ca ([199.212.53.2]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1A5W1W-0008Ud-00 for iftop-users@lists.beasts.org; Fri, 03 Oct 2003 20:55:35 +0100 Received: (qmail 30127 invoked by uid 506); 3 Oct 2003 19:55:32 -0000 Received: from tack@auc.ca by ares by uid 503 with qmail-scanner-1.15 (uvscan: v4.1.60/v4241. Clean. Processed in 0.539409 secs); 03 Oct 2003 19:55:32 -0000 Received: from proxy.algomau.net (HELO somewhere) ([199.212.53.66]) (envelope-sender ) by 205.207.185.129 (qmail-ldap-1.03) with RC4-MD5 encrypted SMTP for ; 3 Oct 2003 19:55:31 -0000 From: Jason Tackaberry To: iftop-users@lists.beasts.org Content-Type: text/plain Message-Id: <1065211009.14184.67.camel@somewhere> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 03 Oct 2003 15:56:49 -0400 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_XIMIAN version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] Feature request Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi, I use iftop every day to monitor the network traffic at the small university I admin. It's a very useful tool; thanks for all your efforts. I have a very minor feature request: when one has source or dest host hidden, it would be useful to indicate somewhere the number of connections that are being amalgamated, perhaps in parens. Something like this: 10.0.1.50 => * (14) 466Kb 420Kb 512Kb <= 280Kb 430Kb 415Kb So I can see at a glance that the bandwidth used by 10.0.1.50 is distributed over 14 separate sessions. Thanks again for iftop, Jason. P.S. I'm not subscribed to the list so please copy me on replies. -- Jason Tackaberry :: tack@auc.ca :: 705-949-2301 x330 Academic Computing Support Specialist Information Technology Services Algoma University College :: www.auc.ca From pdw@sphinx.mythic-beasts.com Tue Oct 14 22:33:09 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1A9Wmy-0001eq-00 for iftop-users@lists.beasts.org; Tue, 14 Oct 2003 22:33:08 +0100 Date: Tue, 14 Oct 2003 22:33:08 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20031014223308.A31447@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop-0.15pre1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Guess what? A new release. 0.15pre1, no less. It's here: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre1.tar.gz It does this: 0.15 * Added linear bar scales (default) ("L") * Added fixed upper limit for bandwidth * Choose which average bars display ("B") * Fixed the search for libpcap in the configure script Thomas Schwinge Enjoy Paul From pdw@sphinx.mythic-beasts.com Mon Oct 20 22:55:59 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1ABi0M-0004vL-00 for iftop-users@lists.beasts.org; Mon, 20 Oct 2003 22:55:58 +0100 Date: Mon, 20 Oct 2003 22:55:58 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20031020225558.A17036@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop 0.15pre2 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Another release for y'all to try: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre2.tar.gz I've added config file support. The code for this was inspired (in the "cp config.{c,h} ~/cvs/iftop" sense of the word) by code from tpop3d. To make things easy, this stuff is totally undocumented, except for me saying: cat > ~/.iftoprc interface: eth0 dns-resolution: yes use-bytes: no log-scale: yes max-bandwidth: 10M filter-code: not port 53 ^D cfgfile.c may give further clues. I'll be documenting this properly for the 0.15 release and at some point I'll add the ability to dump the current configuration to a config file. For your ease and convenience I have changed the letters bound to various options. Actually, this was an attempt at getting consistency between command-line options and run-time buttons. Please let me know if it doesn't work. Paul From pdw@sphinx.mythic-beasts.com Tue Oct 21 23:28:24 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AC4zI-0002yh-00 for iftop-users@lists.beasts.org; Tue, 21 Oct 2003 23:28:24 +0100 Date: Tue, 21 Oct 2003 23:28:23 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20031021232823.C6416@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop 0.15pre3 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I've just uploaded iftop 0.15pre3. This fixes the missing file problem with yesterday's 0.15pre2. You can get it from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre3.tar.gz Apologies for yesterday's broken download. Paul From raptor@tvskat.net Sat Nov 01 15:25:37 2003 Received: from ns.tvskat.net ([213.16.56.1] helo=mail.tvskat.net) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AFxdA-0007GM-00 for iftop-users@lists.beasts.org; Sat, 01 Nov 2003 15:25:36 +0000 Received: from bugsbunny.tvskat.net (unknown [213.16.56.250]) by mail.tvskat.net (Postfix) with SMTP id 38B7D22F2 for ; Sat, 1 Nov 2003 17:38:47 +0200 (EET) Date: Sat, 1 Nov 2003 19:25:27 +0200 From: raptor To: iftop-users@lists.beasts.org Message-Id: <20031101192527.0688db27.raptor@tvskat.net> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] howdy Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: hi, Thanx alot for this super program... it is very helpfull for analyzing my network...:") I was wondering would it be harder a output to a file be implemented, more specificly it would be good if I can capture the total speed and/or total/MB transffered every X seconds. So that If I can say something like this : iftop --output-file /tmp/stat.log --interval 10sec -f 'net 192.168.0.0/24' I could get the info about the perfomance of the 192.168.0.0/24 network for the time iftop was runnnig and analyze it further.. time|Bytes|speed-kbit/s 0|1000|30 10|3000|37 .... and so on.. why I need this... I have two providers and switch between them based on the bandwith usage... this way I can gen rought estamites.. runing iftop in different configurations... One other idea was to be able to group the output of iftop based on some criteria say class C networks, I mean instead of seeing every host of the network, see their combined graph... So if I have 5 class C networks I can view their performance... and/or if many users access some outside class C network i can view total speed used to access these severs .. So it has to be source and/or dest based. or auto sensing when I exclude source "s" group on dest addresses, and vs. versa ("d"). Output based on class C networks would be very good too... this way with a single run I can make comparison of several source or destination nets... net|time|Bytes|speed-kbit/s 192.168.0.0/24|0|1000|30 10.10.0.0/24|0|1000|30 192.168.0.0/24|10|3000|37 10.10.0.0/24|10|3000|37 of course to protect of big dumps, I will have to use something like : -f 'net 10.0.0.0/24 or net 192.168.0.0/24' Third idea : make time periods for averaging the 3 speed columns configurable... that is for now... just my 5c.. iftop and tcpdump are most favorite diagnostic tools.. keep the good work From pdw@sphinx.mythic-beasts.com Sat Nov 01 17:32:34 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AFzc2-0002n9-00; Sat, 01 Nov 2003 17:32:34 +0000 Date: Sat, 1 Nov 2003 17:32:34 +0000 From: Paul Warren To: raptor Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] howdy Message-ID: <20031101173234.B5519@sphinx.mythic-beasts.com> References: <20031101192527.0688db27.raptor@tvskat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20031101192527.0688db27.raptor@tvskat.net>; from raptor@tvskat.net on Sat, Nov 01, 2003 at 07:25:27PM +0200 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Nov 01, 2003 at 07:25:27PM +0200, raptor wrote: > Thanx alot for this super program... it is very helpfull for analyzing my network...:") > I was wondering would it be harder a output to a file be implemented, more specificly it would be > good if I can capture the total speed and/or total/MB transffered every X seconds. > So that If I can say something like this : It's something I've considered, but I would have thought that this would be a better fit for tcpdump's mode of operation. That said, it'd be pretty easy to implement, so I'll bung it on the TODO list. > One other idea was to be able to group the output of iftop based on some criteria say class C networks, > I mean instead of seeing every host of the network, see their combined graph... > So if I have 5 class C networks I can view their performance... and/or if many users access some outside > class C network i can view total speed used to access these severs .. So it has to be source and/or dest based. > or auto sensing when I exclude source "s" group on dest addresses, and vs. versa ("d"). An interesting idea - this basically amounts to putting a netmask on all hosts. > Output based on class C networks would be very good too... this way with a single run I can make comparison > of several source or destination nets... > net|time|Bytes|speed-kbit/s > 192.168.0.0/24|0|1000|30 > 10.10.0.0/24|0|1000|30 > 192.168.0.0/24|10|3000|37 > 10.10.0.0/24|10|3000|37 How would this be arranged? iftop currently works on host-pairs. Would you list traffic by net-pairs, or by total traffic into/out of a network. This would probably be the best option, but would mean that all traffic would be accounted twice as traffic leaving one network (or host) is entering another. > Third idea : make time periods for averaging the 3 speed columns configurable... That's come up before (I think it's on the TODO list). Given the way the code is written, it'd actually be a bit painful to implement, and I'm not sure that there's that much to be gained. I take my lead from load averages - 1min, 5min and 10min are the accepted averages for load and unconfigurable. That's not to say I wouldn't accept a patch, of course. Paul From raptor@tvskat.net Sat Nov 01 18:25:33 2003 Received: from mail.tvskat.net ([213.16.56.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AG0RI-00044j-00 for iftop-users@lists.beasts.org; Sat, 01 Nov 2003 18:25:32 +0000 Received: from bugsbunny.tvskat.net (unknown [213.16.56.250]) by mail.tvskat.net (Postfix) with SMTP id 401F322F2 for ; Sat, 1 Nov 2003 20:38:44 +0200 (EET) Date: Sat, 1 Nov 2003 22:25:28 +0200 From: raptor To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] howdy Message-Id: <20031101222528.49061fb7.raptor@tvskat.net> In-Reply-To: <20031101173234.B5519@sphinx.mythic-beasts.com> References: <20031101192527.0688db27.raptor@tvskat.net> <20031101173234.B5519@sphinx.mythic-beasts.com> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-9.9 required=5.0 tests=IN_REP_TO,REFERENCES version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: |On Sat, Nov 01, 2003 at 07:25:27PM +0200, raptor wrote: |> Thanx alot for this super program... it is very helpfull for analyzing my network...:") |> I was wondering would it be harder a output to a file be implemented, more specificly it would be |> good if I can capture the total speed and/or total/MB transffered every X seconds. |> So that If I can say something like this : | |It's something I've considered, but I would have thought that this would |be a better fit for tcpdump's mode of operation. That said, it'd be |pretty easy to implement, so I'll bung it on the TODO list. ]- yep :"), tcpdump is for looking inside of the packets and such... i feel iftop more abstract tool ... something in between tcpdump and ntop..:") As I told I'm now using second provider and it helps me alot to measure many aspects of the traffic flow and decide what where to direct. As u say it now may work in ala-deamon mode..where it listen and store some average results of its work.. A totaly deamon mode (console-less mode) would be a good addition but probably will complicate the program alot. |> One other idea was to be able to group the output of iftop based on some criteria say class C networks, |> I mean instead of seeing every host of the network, see their combined graph... |> So if I have 5 class C networks I can view their performance... and/or if many users access some outside |> class C network i can view total speed used to access these severs .. So it has to be source and/or dest based. |> or auto sensing when I exclude source "s" group on dest addresses, and vs. versa ("d"). | |An interesting idea - this basically amounts to putting a netmask on all |hosts. ]- an idea further in that direction would be : group1 group2 iftop -g 'src 192.168.0.0/24, src 10.10.2.3; dst 192.168.5.0-10' so we specifiy groups on the command line..probably this is alot harder than just sane class C nets.. |> Output based on class C networks would be very good too... this way with a single run I can make comparison |> of several source or destination nets... |> net|time|Bytes|speed-kbit/s |> 192.168.0.0/24|0|1000|30 |> 10.10.0.0/24|0|1000|30 |> 192.168.0.0/24|10|3000|37 |> 10.10.0.0/24|10|3000|37 | |How would this be arranged? iftop currently works on host-pairs. |Would you list traffic by net-pairs, or by total traffic into/out of a |network. This would probably be the best option, but would mean that |all traffic would be accounted twice as traffic leaving one network (or |host) is entering another. ]- if u show the traffic on per class C nets(my prev idea) then u already made that caclulation or I'm wrong ?! |> Third idea : make time periods for averaging the 3 speed columns configurable... | |That's not to say I wouldn't accept a patch, of course. ]- the bad thing is that I only have theorethical knowledge of C :")... meanwhile I made a quick script to ease my libpcap code generation.. Now to monitor say anet, cnet and fnet I call it like this : tview acf to view all but anet and fnet i do (x for exclude): tview xaf otherway it is alot of typing :")... at moment not work if u say : tview anet cnet fnet (dont need it :") when shortcuts work and i need to monitor maximum 6-7 outside nets) =============tview=============== #!/usr/bin/perl our %net = ( anet => 'x.x.x.0/24', bnet => 'x.x.x.0/24', cnet => 'x.x.x.0/24', dnet => 'x.x.x.0/24', enet => 'x.x.x.0/24', fnet => 'x.x.x.0/24', xhost => 'x.x.x.55', ); use strict; our $iftop = '/usr/sbin/iftop'; sub key { my $k = shift; my ($x) = grep /^$k/, keys %net; return $x } sub byChars { my $a = shift; my @n = split //, $a; my ($str, $pr, $begin); for my $ch (@n) { if ($ch eq 'x') { $pr = ' and not '; $begin = ' not net '; next; } else { $pr = ' or net '; $begin = ' net ' }; my $prefix = $str ? $pr : $begin; $str .= $prefix . $net{key($ch)}; } return $str; } my $str;# = "net $net{$ARGV[0]}" for my $a (@ARGV[0 .. $#ARGV]) { if ($net{$a}) { $str .= " or net $net{$a}" } else { if ($a =~ /^x/) { $a =~ s/^.//; $str = 'not (' . byChars($a) . ')'} else { $str = byChars($a) } } }; print $str; exec qq{$iftop -f '$str'}; From chris@ex-parrot.com Sat Nov 01 21:20:43 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AG3Ap-00006y-00 for iftop-users@lists.beasts.org; Sat, 01 Nov 2003 21:20:43 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hA1Li3cw016764; Sat, 1 Nov 2003 21:44:04 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AG3Ao-0001sg-00; Sat, 01 Nov 2003 21:20:42 +0000 Date: Sat, 1 Nov 2003 21:20:42 +0000 From: Chris Lightfoot To: Paul Warren Cc: raptor , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] howdy Message-ID: References: <20031101192527.0688db27.raptor@tvskat.net> <20031101173234.B5519@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031101173234.B5519@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_CHARS_SPAM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Nov 01, 2003 at 05:32:34PM +0000, Paul Warren wrote: > How would this be arranged? iftop currently works on host-pairs. > Would you list traffic by net-pairs, or by total traffic into/out of a > network. This would probably be the best option, but would mean that > all traffic would be accounted twice as traffic leaving one network (or > host) is entering another. One possibility would be to allow the user to specify BPF programs which evaluate which packets are `inside' or `outside' the network. Is the pcap interface rich enough to allow that? I can't remember. That should enable arbitrarily complex network specifications. -- Plane Too Close to Ground, Crash Probe Told (newspaper headline) From stuart@simhardware.co.nz Tue Nov 04 07:10:49 2003 Received: from visp24-179.visp.co.nz ([210.54.179.24] helo=mail.simhardware.co.nz) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AGvKy-0001s1-00 for iftop-users@lists.beasts.org; Tue, 04 Nov 2003 07:10:49 +0000 Received: from stuartdev (stuart-dev.internal.simhardware.co.nz [192.168.0.5]) by mail.simhardware.co.nz (Postfix) with ESMTP id CF3424230 for ; Tue, 4 Nov 2003 20:10:28 +1300 (NZDT) From: To: Date: Tue, 4 Nov 2003 20:09:21 +1300 Organization: Simulation Hardware LTD Message-ID: <000d01c3a2a2$921c8490$0500a8c0@stuartdev> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Status: No, hits=0.9 required=5.0 tests=NO_REAL_NAME version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] Iftop 0.14 on FreeBSD 5.1 using up all the file handles? Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi Folks, For several weeks I have been running FreeBSD 5.1 Release (was on 4.7 previously). I am using the ports collection of iftop 0.14. What am am finding that that after a day or two I have thousands of open files on the OS. If I exit iftop, that number drops back down to 200 or so, and after I start iftop again it starts climbing again at a rate of about 3 or 4 files per second. I only noticed because after a week it is using all 7000 available file handles, and I get a kernel file table full errors, and everything stops. Anyone else seem this behaviour? Cheers, Stuart Whelan Technical Lead Simulation Hardware LTD DDI: +64 3 3778866 Mobile: +64 27 2828074 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.535 / Virus Database: 330 - Release Date: 1/11/2003 From chris@madingley.org Tue Nov 04 11:49:17 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AGzgT-0003mD-00 for iftop-users@lists.beasts.org; Tue, 04 Nov 2003 11:49:17 +0000 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hA4CCYcw024371; Tue, 4 Nov 2003 12:12:34 GMT Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id hA4Bn5HN000726; Tue, 4 Nov 2003 11:49:05 GMT Date: Tue, 4 Nov 2003 11:49:05 +0000 From: Chris Lightfoot To: iftop@simhardware.co.nz Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Iftop 0.14 on FreeBSD 5.1 using up all the file handles? Message-ID: References: <000d01c3a2a2$921c8490$0500a8c0@stuartdev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000d01c3a2a2$921c8490$0500a8c0@stuartdev> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Tue, Nov 04, 2003 at 08:09:21PM +1300, iftop@simhardware.co.nz wrote: > Hi Folks, > > For several weeks I have been running FreeBSD 5.1 Release (was on 4.7 > previously). > > I am using the ports collection of iftop 0.14. > > What am am finding that that after a day or two I have thousands of open > files on the OS. If I exit iftop, that number drops back down to 200 or > so, and after I start iftop again it starts climbing again at a rate of > about 3 or 4 files per second. > > I only noticed because after a week it is using all 7000 available file > handles, and I get a kernel file table full errors, and everything > stops. Hmm. Which resolver is it using? Does strace show anything useful (try strace -eopen,socket iftop)? Can you use lsof or similar to identify files the process has open? -- ``History is the sum total of things which could have been avoided.'' (Adenauer) From stuart@simhardware.co.nz Tue Nov 04 20:45:11 2003 Received: from visp24-179.visp.co.nz ([210.54.179.24] helo=mail.simhardware.co.nz) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AH834-0001d9-00 for iftop-users@lists.beasts.org; Tue, 04 Nov 2003 20:45:11 +0000 Received: from stuartdev (stuart-dev.internal.simhardware.co.nz [192.168.0.5]) by mail.simhardware.co.nz (Postfix) with ESMTP id ACBD24239; Wed, 5 Nov 2003 09:44:50 +1300 (NZDT) From: "Stuart Whelan - Simulation Hardware LTD" To: "'Chris Lightfoot'" , Cc: Subject: RE: [Iftop-users] Iftop 0.14 on FreeBSD 5.1 using up all the file handles? Date: Wed, 5 Nov 2003 09:43:43 +1300 Organization: Simulation Hardware LTD Message-ID: <000501c3a314$562b7d70$0500a8c0@stuartdev> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Status: No, hits=-6.6 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: > Hmm. Which resolver is it using? Does strace show anything > useful (try strace -eopen,socket iftop)? Can you use lsof or > similar to identify files the process has open? Hi Chris, Thanks for the prompt reply. :) Judging from the make output of the port it is using the forking resolver: >>checking how to call gethostbyaddr_r... no idea; dropping back to the forking resolver I just tried to build strace onto my system, but it is having problems, I will get back to you on that one. lsof provides interesting output: There are the normal open files, but the interesting lines (current 174... Opps, make that 176 lines of them) are similar to: iftop 21553 21552 root 6u KQUEUE 0xc2a08300 count=0, state=0 iftop 21553 21552 root 8u KQUEUE 0xc2987900 count=0, state=0 iftop 21554 21552 root 8u KQUEUE 0xc29e9300 count=0, state=0 iftop 21554 21552 root 9u KQUEUE 0xc2a06400 count=0, state=0 iftop 21553 21552 root 10u KQUEUE 0xc29ee600 count=0, state=0 iftop 21553 21552 root 11u KQUEUE 0xc2a11200 count=0, state=0 iftop 21554 21552 root 11u KQUEUE 0xc2b38400 count=0, state=0 iftop 21553 21552 root 12u KQUEUE 0xc29a1700 count=0, state=0 iftop 21554 21552 root 12u KQUEUE 0xc29e9d00 count=0, state=0 I tied disabling name resolving (using -n) to see if that makes a difference, and it did. Only 18 open files, and not growing. Do you still wish to have the strace output? I will attempt to get it running. Cheers, Stuart Whelan Technical Lead Simulation Hardware LTD DDI: +64 3 3778866 Mobile: +64 27 2828074 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.535 / Virus Database: 330 - Release Date: 1/11/2003 From chris@ex-parrot.com Tue Nov 04 20:47:09 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AH84z-0001ha-00 for iftop-users@lists.beasts.org; Tue, 04 Nov 2003 20:47:09 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hA4LAbcw025578; Tue, 4 Nov 2003 21:10:37 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AH84x-0001pN-00; Tue, 04 Nov 2003 20:47:07 +0000 Date: Tue, 4 Nov 2003 20:47:07 +0000 From: Chris Lightfoot To: Stuart Whelan - Simulation Hardware LTD Cc: iftop@simhardware.co.nz, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Iftop 0.14 on FreeBSD 5.1 using up all the file handles? Message-ID: <1PW4LAbN6ORL.TibdWCJDjDbTOL4JF7CYrA@caesious.cold.local> References: <000501c3a314$562b7d70$0500a8c0@stuartdev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c3a314$562b7d70$0500a8c0@stuartdev> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, Nov 05, 2003 at 09:43:43AM +1300, Stuart Whelan - Simulation Hardware LTD wrote: > > Hmm. Which resolver is it using? Does strace show anything > > useful (try strace -eopen,socket iftop)? Can you use lsof or > > similar to identify files the process has open? > > Hi Chris, > > Thanks for the prompt reply. :) > > Judging from the make output of the port it is using the forking > resolver: > > >>checking how to call gethostbyaddr_r... no idea; dropping back to the > forking resolver OK. > Do you still wish to have the strace output? I will attempt to get it > running. -- that would be handy, but not essential. I think I know where the problem lies but not exactly what it is yet. -- ``It's is not, it isn't ain't, and it's it's, not its, if you mean it is. If you don't, it's its. Then too, it's hers. It isn't her's. It isn't our's either. It's ours, and likewise yours and theirs.'' (From `Edpress News') From chris@madingley.org Wed Nov 05 12:48:45 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AHN5Z-0006uj-00 for iftop-users@lists.beasts.org; Wed, 05 Nov 2003 12:48:45 +0000 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hA5DCEcw027050; Wed, 5 Nov 2003 13:12:14 GMT Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id hA5CmghB024525; Wed, 5 Nov 2003 12:48:42 GMT Date: Wed, 5 Nov 2003 12:48:42 +0000 From: Chris Lightfoot To: Stuart Whelan - Simulation Hardware LTD Cc: iftop@simhardware.co.nz, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Iftop 0.14 on FreeBSD 5.1 using up all the file handles? Message-ID: References: <000501c3a314$562b7d70$0500a8c0@stuartdev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c3a314$562b7d70$0500a8c0@stuartdev> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, Nov 05, 2003 at 09:43:43AM +1300, Stuart Whelan - Simulation Hardware LTD wrote: > > Hmm. Which resolver is it using? Does strace show anything > > useful (try strace -eopen,socket iftop)? Can you use lsof or > > similar to identify files the process has open? > > Hi Chris, > > Thanks for the prompt reply. :) > > Judging from the make output of the port it is using the forking > resolver: > > >>checking how to call gethostbyaddr_r... no idea; dropping back to the > forking resolver > > I just tried to build strace onto my system, but it is having problems, > I will get back to you on that one. ok... I can't reproduce this here (on Linux), so it may be a FreeBSD issue. Could you try applying the following patch, which will make iftop print some debugging information from the resolver, and then running iftop with a command line like iftop -i whatever ... 2> iftop.log -- and then telling me what the contents of iftop.log look like? (Obviously you have to direct stderr into a file since otherwise it'll mess up the display....) diff -u -r1.18 resolver.c --- resolver.c 6 Sep 2003 13:52:36 -0000 1.18 +++ resolver.c 5 Nov 2003 12:46:04 -0000 @@ -320,7 +320,7 @@ workerinfo = xmalloc(sizeof *workerinfo); pthread_setspecific(worker_key, workerinfo); workerinfo->fd = p[0]; - + switch (workerinfo->child = fork()) { case 0: close(p[0]); @@ -332,6 +332,7 @@ return NULL; default: +fprintf(stderr, "New child is %d, we have fd %d, he has fd %d\n", workerinfo->child, p[0], p[1]); close(p[1]); } } @@ -340,11 +341,13 @@ if (write(workerinfo->fd, addr, sizeof *addr) != sizeof *addr || read(workerinfo->fd, name, NAMESIZE) != NAMESIZE) { /* Something went wrong. Just kill the child and get on with it. */ +fprintf(stderr, "Protocol error (%s) talking to child %d\n", strerror(errno), workerinfo->child); kill(workerinfo->child, SIGKILL); wait(); close(workerinfo->fd); xfree(workerinfo); pthread_setspecific(worker_key, NULL); + *name = 0; } if (!*name) return NULL; -- Suburbia: where they cut down the trees then name streets after them From pdw@sphinx.mythic-beasts.com Thu Nov 06 20:24:36 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AHqgG-0001OI-00 for iftop-users@lists.beasts.org; Thu, 06 Nov 2003 20:24:36 +0000 Date: Thu, 6 Nov 2003 20:24:35 +0000 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20031106202435.A4390@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] 0.15pre4 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: The latest and greatest pre-release for the ever forthcoming 0.15 release is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre4.tar.gz Only really bug-fixes and added documentation since the last pre-release. I do not intend to make any further changes before 0.15, so please let me know if it is broken. Paul From spamtrap@lucassen.org Thu Nov 06 21:36:17 2003 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1AHrnc-0005d5-00 for iftop-users@lists.beasts.org; Thu, 06 Nov 2003 21:36:16 +0000 Received: (qmail 21647 invoked from network); 6 Nov 2003 21:36:15 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 6 Nov 2003 21:36:15 -0000 Date: Thu, 6 Nov 2003 22:36:15 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] 0.15pre4 Message-Id: <20031106223615.6d4d1426.spamtrap@lucassen.org> In-Reply-To: <20031106202435.A4390@sphinx.mythic-beasts.com> References: <20031106202435.A4390@sphinx.mythic-beasts.com> Reply-To: reply3@lucassen.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,SIGNATURE_LONG_SPARSE version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, 6 Nov 2003 20:24:35 +0000 Paul Warren wrote: > The latest and greatest pre-release for the ever forthcoming 0.15 > release is now available from: > > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre4.tar.gz > > Only really bug-fixes and added documentation since the last > pre-release. I do not intend to make any further changes before 0.15, > so please let me know if it is broken. Paul, I just tried a quick out-of-the-box compile: util.h: No such file or directory [..] depmode=gcc /bin/sh ./config/depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap -g -O2 -c `test -f 'dlcommon.c' || echo './'`dlcommon.c source='stringmap.c' object='stringmap.o' libtool=no \ depfile='.deps/stringmap.Po' tmpdepfile='.deps/stringmap.TPo' \ depmode=gcc /bin/sh ./config/depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap -g -O2 -c `test -f 'stringmap.c' || echo './'`stringmap.c stringmap.c:19: util.h: No such file or directory make[2]: *** [stringmap.o] Error 1 make[2]: Leaving directory `/home/richard/rpm/BUILD/iftop-0.15pre4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/richard/rpm/BUILD/iftop-0.15pre4' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.39774 (%build) -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ From spamtrap@lucassen.org Thu Nov 06 21:38:47 2003 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1AHrq3-0005hC-00 for iftop-users@lists.beasts.org; Thu, 06 Nov 2003 21:38:47 +0000 Received: (qmail 21675 invoked from network); 6 Nov 2003 21:38:46 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 6 Nov 2003 21:38:46 -0000 Date: Thu, 6 Nov 2003 22:38:46 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] 0.15pre4 Message-Id: <20031106223846.1701a5e1.spamtrap@lucassen.org> In-Reply-To: <20031106202435.A4390@sphinx.mythic-beasts.com> References: <20031106202435.A4390@sphinx.mythic-beasts.com> Reply-To: reply3@lucassen.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,SIGNATURE_LONG_SPARSE version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, 6 Nov 2003 20:24:35 +0000 Paul Warren wrote: > The latest and greatest pre-release for the ever forthcoming 0.15 > release is now available from: > > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre4.tar.gz > > Only really bug-fixes and added documentation since the last > pre-release. I do not intend to make any further changes before 0.15, > so please let me know if it is broken. Same problem with a ./configure && make HTH, R. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ From chris@ex-parrot.com Thu Nov 06 21:46:40 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AHrxf-0005ts-00 for iftop-users@lists.beasts.org; Thu, 06 Nov 2003 21:46:39 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hA6MADcw030459; Thu, 6 Nov 2003 22:10:13 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AHrxe-0007kX-00; Thu, 06 Nov 2003 21:46:38 +0000 Date: Thu, 6 Nov 2003 21:46:38 +0000 From: Chris Lightfoot To: reply3@lucassen.org Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] 0.15pre4 Message-ID: References: <20031106202435.A4390@sphinx.mythic-beasts.com> <20031106223615.6d4d1426.spamtrap@lucassen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031106223615.6d4d1426.spamtrap@lucassen.org> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Nov 06, 2003 at 10:36:15PM +0100, richard lucassen wrote: > On Thu, 6 Nov 2003 20:24:35 +0000 > Paul Warren wrote: > > > The latest and greatest pre-release for the ever forthcoming 0.15 > > release is now available from: > > > > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre4.tar.gz > > > > Only really bug-fixes and added documentation since the last > > pre-release. I do not intend to make any further changes before 0.15, > > so please let me know if it is broken. > > Paul, > > I just tried a quick out-of-the-box compile: > > util.h: No such file or directory Oops. This one's my fault. I added a file but didn't add it to the list of distributed files in Makefile.am. I've now fixed this in CVS, but Paul will have to do another release to get it into a tarball. -- ``Early to rise and early to bed, makes a man healthy, wealthy and dead.'' (Thurber) From pdw@sphinx.mythic-beasts.com Fri Nov 07 02:18:19 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AHwCY-0005zF-00; Fri, 07 Nov 2003 02:18:18 +0000 Date: Fri, 7 Nov 2003 02:18:17 +0000 From: Paul Warren To: Chris Lightfoot Cc: reply3@lucassen.org, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] 0.15pre4 Message-ID: <20031107021817.C2684@sphinx.mythic-beasts.com> References: <20031106202435.A4390@sphinx.mythic-beasts.com> <20031106223615.6d4d1426.spamtrap@lucassen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from chris@ex-parrot.com on Thu, Nov 06, 2003 at 09:46:38PM +0000 X-Spam-Status: No, hits=-33.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Nov 06, 2003 at 09:46:38PM +0000, Chris Lightfoot wrote: > On Thu, Nov 06, 2003 at 10:36:15PM +0100, richard lucassen wrote: > > On Thu, 6 Nov 2003 20:24:35 +0000 > > Paul Warren wrote: > > > > > > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre4.tar.gz > > I just tried a quick out-of-the-box compile: > > > > util.h: No such file or directory > > Oops. This one's my fault. I added a file but didn't add > it to the list of distributed files in Makefile.am. I've just uploaded 0.15pre5 to fix this: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15pre5.tar.gz Paul From raptor@tvskat.net Thu Nov 13 09:10:21 2003 Received: from ns.tvskat.net ([213.16.56.1] helo=mail.tvskat.net) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AKDUb-00029e-00 for iftop-users@lists.beasts.org; Thu, 13 Nov 2003 09:10:21 +0000 Received: from tvskat.net (unknown [213.16.56.6]) by mail.tvskat.net (Postfix) with SMTP id A3B1B2285 for ; Thu, 13 Nov 2003 11:24:49 +0200 (EET) Date: Thu, 13 Nov 2003 11:10:00 +0200 From: raptor To: iftop-users@lists.beasts.org Message-Id: <20031113111000.1bbf6b25.raptor@tvskat.net> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] t key to option ? Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: can u make a "single" line information key-t available like option thx From pdw@sphinx.mythic-beasts.com Thu Nov 13 14:56:02 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AKIt8-0002Fu-00; Thu, 13 Nov 2003 14:56:02 +0000 Date: Thu, 13 Nov 2003 14:56:02 +0000 From: Paul Warren To: raptor Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] t key to option ? Message-ID: <20031113145602.G3691@sphinx.mythic-beasts.com> References: <20031113111000.1bbf6b25.raptor@tvskat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20031113111000.1bbf6b25.raptor@tvskat.net>; from raptor@tvskat.net on Thu, Nov 13, 2003 at 11:10:00AM +0200 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Nov 13, 2003 at 11:10:00AM +0200, raptor wrote: > can u make a "single" line information key-t available like option It's not available as a command line option, but you can specify via the config file by putting: line-display: one-line-both into ~/.iftoprc Paul From raptor@tvskat.net Thu Nov 13 15:51:37 2003 Received: from mail.tvskat.net ([213.16.56.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AKJkv-0004kH-00 for iftop-users@lists.beasts.org; Thu, 13 Nov 2003 15:51:37 +0000 Received: from tvskat.net (unknown [213.16.56.6]) by mail.tvskat.net (Postfix) with SMTP id DBD5E2272 for ; Thu, 13 Nov 2003 18:06:07 +0200 (EET) Date: Thu, 13 Nov 2003 17:51:22 +0200 From: raptor To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] t key to option ? Message-Id: <20031113175122.45a3e95c.raptor@tvskat.net> In-Reply-To: <20031113145602.G3691@sphinx.mythic-beasts.com> References: <20031113111000.1bbf6b25.raptor@tvskat.net> <20031113145602.G3691@sphinx.mythic-beasts.com> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-19.8 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: thanx, on which version it is available > On Thu, Nov 13, 2003 at 11:10:00AM +0200, raptor wrote: > > can u make a "single" line information key-t available like option > > It's not available as a command line option, but you can specify via the > config file by putting: > > line-display: one-line-both > > into ~/.iftoprc > > Paul From pdw@sphinx.mythic-beasts.com Thu Nov 13 15:54:48 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1AKJnz-0004tf-00; Thu, 13 Nov 2003 15:54:47 +0000 Date: Thu, 13 Nov 2003 15:54:47 +0000 From: Paul Warren To: raptor Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] t key to option ? Message-ID: <20031113155447.H3691@sphinx.mythic-beasts.com> References: <20031113111000.1bbf6b25.raptor@tvskat.net> <20031113145602.G3691@sphinx.mythic-beasts.com> <20031113175122.45a3e95c.raptor@tvskat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20031113175122.45a3e95c.raptor@tvskat.net>; from raptor@tvskat.net on Thu, Nov 13, 2003 at 05:51:22PM +0200 X-Spam-Status: No, hits=-33.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Nov 13, 2003 at 05:51:22PM +0200, raptor wrote: > thanx, on which version it is available 0.15. You've just reminded me that I failed to announce this to the mailing list. 0.15 is now available for download from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.15.tar.gz The change log says: 0.15 10/11/03 * Added linear bar scales (default) ("L") * Added fixed upper limit for bandwidth * Choose which average bars display ("B") * Renamed some buttons and command line options * Added config file support * Added command line to turn of port resolution ("-N") * Fixed the search for libpcap in the configure script Thomas Schwinge * Updated RPM spec file Richard Lucassen Paul > > On Thu, Nov 13, 2003 at 11:10:00AM +0200, raptor wrote: > > > can u make a "single" line information key-t available like option > > > > It's not available as a command line option, but you can specify via the > > config file by putting: > > > > line-display: one-line-both > > > > into ~/.iftoprc > > > > Paul > > > _______________________________________________ > iftop-users mailing list > iftop-users@lists.beasts.org > http://lists.beasts.org/mailman/listinfo/iftop-users From JohnThompson@new.rr.com Sun Nov 16 22:24:58 2003 Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALVK9-0004IR-00 for iftop-users@lists.beasts.org; Sun, 16 Nov 2003 22:24:54 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id hAGMOVhL004451 for ; Sun, 16 Nov 2003 16:24:44 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.10/8.12.8) with SMTP id hAGMOQRr090440 for ; Sun, 16 Nov 2003 16:24:26 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Sun, 16 Nov 2003 16:27:48 -0600 From: John Thompson To: iftop-users Message-Id: <20031116162748.67346517.JohnThompson@new.rr.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -100 () USER_IN_WHITELIST X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang $Revision: $version $ X-Sanitizer-Config-Version: $Revision: 1.122 $ X-Scanned-By: MIMEDefang 2.38 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop build fials: POSIX threads in NetBSD Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I'm trying to build iftop on my NetBSD-1.6.1 machine, but the config script dies with a complaint about POSIX threads: [...] checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checkingfor a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... no idea configure: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. Has anyone else tried building iftop for NetBSD or have any experience with POSIX threads in NetBSD? -- -John (JohnThompson@new.rr.com) From jonabbey@arlut.utexas.edu Mon Nov 17 19:21:13 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALovw-0003LT-00 for iftop-users@lists.beasts.org; Mon, 17 Nov 2003 19:21:12 +0000 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.10/8.12.9) with ESMTP id hAHJLAq1088585 for ; Mon, 17 Nov 2003 13:21:10 -0600 (CST) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.10/8.12.9) with ESMTP id hAHJLAqn078093 for ; Mon, 17 Nov 2003 13:21:10 -0600 (CST) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id hAHJL9R27468 for iftop-users@lists.beasts.org; Mon, 17 Nov 2003 13:21:09 -0600 (CST) Date: Mon, 17 Nov 2003 13:21:09 -0600 From: Jonathan Abbey To: iftop-users@lists.beasts.org Message-ID: <20031117192109.GA27118@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] POSIX threads configure test spins on Solaris Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi, folks. I've been negligent in trying out the newer iftop releases lately. I just tried to configure 0.15, and found that the POSIX thread test program spins indefinitely on Solaris, blocking the configure. I'm not very familiar with the POSIX Threads API so I don't know that I can debug this quickly. If I run a truss on the pthread test program, it exits out fairly quickly with a 0 exit value, but if I run it straight it just hangs. Any thoughts? -- ------------------------------------------------------------------------------- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Austin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey.gpg From chris@ex-parrot.com Mon Nov 17 19:43:41 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALpHh-0004BM-00 for iftop-users@lists.beasts.org; Mon, 17 Nov 2003 19:43:41 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hAHK7fcw027433; Mon, 17 Nov 2003 20:07:41 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1ALpHd-0005iD-00; Mon, 17 Nov 2003 19:43:37 +0000 Date: Mon, 17 Nov 2003 19:43:37 +0000 From: Chris Lightfoot To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] POSIX threads configure test spins on Solaris Message-ID: References: <20031117192109.GA27118@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031117192109.GA27118@arlut.utexas.edu> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Nov 17, 2003 at 01:21:09PM -0600, Jonathan Abbey wrote: > Hi, folks. I've been negligent in trying out the newer iftop releases > lately. I just tried to configure 0.15, and found that the POSIX > thread test program spins indefinitely on Solaris, blocking the > configure. > > I'm not very familiar with the POSIX Threads API so I don't know that > I can debug this quickly. If I run a truss on the pthread test > program, it exits out fairly quickly with a 0 exit value, but if I run > it straight it just hangs. > > Any thoughts? Yes. `POSIX Threads: Just Say No.' I changed the test program since the old one didn't work on some operating system (one of the BSDs, I think). The problem was that on some operating systems you need to explicitly call pthread_testcancel for a call to pthread_cancel to succeed. The reason the test program exists is that there are systems where, with the wrong combination of options, a POSIX threads program will compile and run, but no threads can be created. So the program is supposed to ensure that you can create a thread, that the thread can do some work, that you can cancel the thread, and that you can determine that the thread has quit. It is a testament to the flexibility and robustness of the UNIX APIs that, simply by changing compiler options, it is possible to make a program which fails any one of the above tests. Can you try this patch: diff -u -r1.2 pthread.c --- pthread.c 27 Aug 2003 18:29:27 -0000 1.2 +++ pthread.c 17 Nov 2003 19:40:27 -0000 @@ -12,6 +12,7 @@ #include #include #include +#include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; @@ -23,8 +24,10 @@ pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); - while (1) + while (1) { + sleep(1); pthread_testcancel(); + } } /* Start a thread, and have it set a variable to some other value, then signal -- which seems to improve things on a Solaris machine here. -- ``Any design problem can be solved by adding a level of indirection, apart from having too many levels of indirection.'' (Cargill) From chris@ex-parrot.com Mon Nov 17 19:44:07 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALpI6-0004Dn-00 for iftop-users@lists.beasts.org; Mon, 17 Nov 2003 19:44:06 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hAHK88cw027439; Mon, 17 Nov 2003 20:08:09 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1ALpI5-0005ib-00; Mon, 17 Nov 2003 19:44:05 +0000 Date: Mon, 17 Nov 2003 19:44:05 +0000 From: Chris Lightfoot To: John Thompson Cc: iftop-users Subject: Re: [Iftop-users] iftop build fials: POSIX threads in NetBSD Message-ID: References: <20031116162748.67346517.JohnThompson@new.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031116162748.67346517.JohnThompson@new.rr.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_CHARS_SPAM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Nov 16, 2003 at 04:27:48PM -0600, John Thompson wrote: > I'm trying to build iftop on my NetBSD-1.6.1 machine, but the config > script dies with a complaint about POSIX threads: > > [...] > > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checkingfor a curses library containing mvchgat... -lncurses > checking how to compile a working program with POSIX threads... no idea > configure: error: can't figure out how to compile with POSIX threads > If your system actually supports POSIX threads, this means we've > messed up. > > Has anyone else tried building iftop for NetBSD or have any experience > with POSIX threads in NetBSD? can you send the relevant section of config.log (should be near the end and mention config/pthread.c). -- Curiosity kills more mice than cats. From jonabbey@arlut.utexas.edu Mon Nov 17 20:33:59 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALq4M-00063Y-00 for iftop-users@lists.beasts.org; Mon, 17 Nov 2003 20:33:58 +0000 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.10/8.12.9) with ESMTP id hAHKXtq1092243; Mon, 17 Nov 2003 14:33:55 -0600 (CST) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.10/8.12.9) with ESMTP id hAHKXtqn093733; Mon, 17 Nov 2003 14:33:55 -0600 (CST) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id hAHKXtU03849; Mon, 17 Nov 2003 14:33:55 -0600 (CST) Date: Mon, 17 Nov 2003 14:33:55 -0600 From: Jonathan Abbey To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] POSIX threads configure test spins on Solaris Message-ID: <20031117203355.GA1808@arlut.utexas.edu> References: <20031117192109.GA27118@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) X-Spam-Status: No, hits=-16.3 required=5.0 tests=IN_REP_TO,REFERENCES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Nov 17, 2003 at 07:43:37PM +0000, Chris Lightfoot wrote: | Can you try this patch: | | diff -u -r1.2 pthread.c | --- pthread.c 27 Aug 2003 18:29:27 -0000 1.2 | +++ pthread.c 17 Nov 2003 19:40:27 -0000 | @@ -12,6 +12,7 @@ | #include | #include | #include | +#include | | static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; | static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; | @@ -23,8 +24,10 @@ | pthread_mutex_lock(&mtx); | pthread_cond_signal(&cond); | pthread_mutex_unlock(&mtx); | - while (1) | + while (1) { | + sleep(1); | pthread_testcancel(); | + } | } | | /* Start a thread, and have it set a variable to some other value, then signal | | | -- which seems to improve things on a Solaris machine | here. Yes, the configure runs to completion successfully now. Boy, do I hate racey stuff like this. jon | -- | ``Any design problem can be solved by adding a level of indirection, | apart from having too many levels of indirection.'' (Cargill) -- ------------------------------------------------------------------------------- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Austin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey.gpg From chris@ex-parrot.com Tue Nov 18 01:27:35 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1ALueU-0000Dq-00 for iftop-users@lists.beasts.org; Tue, 18 Nov 2003 01:27:34 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hAI1pbcw027975; Tue, 18 Nov 2003 01:51:37 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1ALueT-0006e6-00; Tue, 18 Nov 2003 01:27:33 +0000 Date: Tue, 18 Nov 2003 01:27:33 +0000 From: Chris Lightfoot To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop build fials: POSIX threads in NetBSD Message-ID: References: <20031116162748.67346517.JohnThompson@new.rr.com> <20031117140850.62693e2f.JohnThompson@new.rr.com> <4Dwv9B5wECGV.R4ommNjbCGM50eq6TMANrw@caesious.cold.local> <20031117173249.1f0f4ea5.JohnThompson@new.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031117173249.1f0f4ea5.JohnThompson@new.rr.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_CHARS_SPAM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Nov 17, 2003 at 05:32:49PM -0600, John Thompson wrote: > On Mon, 17 Nov 2003 20:06:15 +0000 > Chris Lightfoot wrote: > > > On Mon, Nov 17, 2003 at 02:08:50PM -0600, John Thompson wrote: > > > > Even when I use "./configure --includedir=/usr/pkg/include" it fails > > > with the same error. > > > what if you do > > > > CFLAGS=-I/usr/pkg/include ./configure ... > > Just tried it; no joy (same failure). d'oh. should have said CPPFLAGS=... ./configure ... -- if that fails too, can you tell me the end of the resulting config.log. -- Something must be done. This is something, so we must do it. (characterising government-by-reaction) From chris@ex-parrot.com Tue Nov 18 09:34:22 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AM2Fa-00005A-00 for iftop-users@lists.beasts.org; Tue, 18 Nov 2003 09:34:22 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id hAI9wQcw028754; Tue, 18 Nov 2003 09:58:26 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AM2FZ-0007sn-00; Tue, 18 Nov 2003 09:34:21 +0000 Date: Tue, 18 Nov 2003 09:34:21 +0000 From: Chris Lightfoot To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop build fials: POSIX threads in NetBSD Message-ID: References: <20031116162748.67346517.JohnThompson@new.rr.com> <20031117140850.62693e2f.JohnThompson@new.rr.com> <4Dwv9B5wECGV.R4ommNjbCGM50eq6TMANrw@caesious.cold.local> <20031117173249.1f0f4ea5.JohnThompson@new.rr.com> <20031117201230.6f1505c9.JohnThompson@new.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031117201230.6f1505c9.JohnThompson@new.rr.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-26.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Nov 17, 2003 at 08:12:30PM -0600, John Thompson wrote: > On Tue, 18 Nov 2003 01:27:33 +0000 > Chris Lightfoot wrote: > > > d'oh. should have said CPPFLAGS=... ./configure ... > > CPPFLAGS=-I/usr/pkg/include ./configure > > [...] > > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lncurses > checking how to compile a working program with POSIX threads... no idea > configure: error: can't figure out how to compile with POSIX threads > If your system actually supports POSIX threads, this means we've > messed up. wher is libpthread on your system? -- Free, a., already paid for. (Peyton Jones) From spamtrap@lucassen.org Mon Dec 01 11:58:38 2003 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1AQmhI-0000Bn-00 for iftop-users@lists.beasts.org; Mon, 01 Dec 2003 11:58:36 +0000 Received: (qmail 26195 invoked from network); 1 Dec 2003 11:58:33 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 1 Dec 2003 11:58:33 -0000 Date: Mon, 1 Dec 2003 12:58:33 +0100 From: richard lucassen To: Paul Warren Cc: iftop-users@lists.beasts.org Message-Id: <20031201125833.417dad4f.spamtrap@lucassen.org> In-Reply-To: <20031120113701.R24793@sphinx.mythic-beasts.com> References: <20031120123109.1c0e8eac.spamtrap@lucassen.org> <20031120113701.R24793@sphinx.mythic-beasts.com> Reply-To: reply3@lucassen.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Mon__1_Dec_2003_12_58_33_+0100_HTMTu=ci1J7Gu=_E" X-Spam-Status: No, hits=-23.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] Re: problem with iftop Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --Multipart=_Mon__1_Dec_2003_12_58_33_+0100_HTMTu=ci1J7Gu=_E Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 20 Nov 2003 11:37:01 +0000 Paul Warren wrote: Fedora Core 1, with all security updates. I've got another problem with iftop, is segfaults: [..] close(3) = 0 open("/root/.iftoprc", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0664, st_size=458, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf53a000 read(3, "interface: eth0\ndns-resolution: "..., 4096) = 458--- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Removing the .iftoprc makes it work again. # cat .iftoprc interface: eth0 dns-resolution: no port-resolution: no filter-code: not udp port 53 show-bars: yes promiscuous: yes port-display: on hide-source: no hide-destination: no use-bytes: no #sort: 2s #sort: 10s sort: 40s #sort: source #sort: destination line-display: one-line-both #line-display: two-line #line-display: one-line-sent #line-display: one-line-received show-totals: yes log-scale: no max-bandwidth: 512k #net-filter: net/mask #screen-filter: regexp HTH, R. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ --Multipart=_Mon__1_Dec_2003_12_58_33_+0100_HTMTu=ci1J7Gu=_E Content-Type: application/octet-stream; name="iftop.gdb" Content-Disposition: attachment; filename="iftop.gdb" Content-Transfer-Encoding: base64 R05VIGdkYiBSZWQgSGF0IExpbnV4ICg1LjMuOTAtMC4yMDAzMDcxMC40MXJoKQpDb3B5cmlnaHQg MjAwMyBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIEluYy4KR0RCIGlzIGZyZWUgc29mdHdhcmUs IGNvdmVyZWQgYnkgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlLCBhbmQgeW91IGFyZQp3 ZWxjb21lIHRvIGNoYW5nZSBpdCBhbmQvb3IgZGlzdHJpYnV0ZSBjb3BpZXMgb2YgaXQgdW5kZXIg Y2VydGFpbiBjb25kaXRpb25zLgpUeXBlICJzaG93IGNvcHlpbmciIHRvIHNlZSB0aGUgY29uZGl0 aW9ucy4KVGhlcmUgaXMgYWJzb2x1dGVseSBubyB3YXJyYW50eSBmb3IgR0RCLiAgVHlwZSAic2hv dyB3YXJyYW50eSIgZm9yIGRldGFpbHMuClRoaXMgR0RCIHdhcyBjb25maWd1cmVkIGFzICJpMzg2 LXJlZGhhdC1saW51eC1nbnUiLi4uCihubyBkZWJ1Z2dpbmcgc3ltYm9scyBmb3VuZCkuLi5Vc2lu ZyBob3N0IGxpYnRocmVhZF9kYiBsaWJyYXJ5ICIvbGliL3Rscy9saWJ0aHJlYWRfZGIuc28uMSIu CgpDb3JlIHdhcyBnZW5lcmF0ZWQgYnkgYGlmdG9wJy4KUHJvZ3JhbSB0ZXJtaW5hdGVkIHdpdGgg c2lnbmFsIDExLCBTZWdtZW50YXRpb24gZmF1bHQuClJlYWRpbmcgc3ltYm9scyBmcm9tIC91c3Iv bGliL2xpYnBjYXAuc28uMC42LjIuLi4KKG5vIGRlYnVnZ2luZyBzeW1ib2xzIGZvdW5kKS4uLmRv bmUuCkxvYWRlZCBzeW1ib2xzIGZvciAvdXNyL2xpYi9saWJwY2FwLnNvLjAuNi4yClJlYWRpbmcg c3ltYm9scyBmcm9tIC9saWIvdGxzL2xpYm0uc28uNi4uLihubyBkZWJ1Z2dpbmcgc3ltYm9scyBm b3VuZCkuLi5kb25lLgpMb2FkZWQgc3ltYm9scyBmb3IgL2xpYi90bHMvbGlibS5zby42ClJlYWRp bmcgc3ltYm9scyBmcm9tIC91c3IvbGliL2xpYm5jdXJzZXMuc28uNS4uLmRvbmUuCkxvYWRlZCBz eW1ib2xzIGZvciAvdXNyL2xpYi9saWJuY3Vyc2VzLnNvLjUKUmVhZGluZyBzeW1ib2xzIGZyb20g L2xpYi90bHMvbGlicHRocmVhZC5zby4wLi4uZG9uZS4KTG9hZGVkIHN5bWJvbHMgZm9yIC9saWIv dGxzL2xpYnB0aHJlYWQuc28uMApSZWFkaW5nIHN5bWJvbHMgZnJvbSAvbGliL3Rscy9saWJjLnNv LjYuLi5kb25lLgpMb2FkZWQgc3ltYm9scyBmb3IgL2xpYi90bHMvbGliYy5zby42ClJlYWRpbmcg c3ltYm9scyBmcm9tIC9saWIvbGQtbGludXguc28uMi4uLmRvbmUuCkxvYWRlZCBzeW1ib2xzIGZv ciAvbGliL2xkLWxpbnV4LnNvLjIKUmVhZGluZyBzeW1ib2xzIGZyb20gL3Vzci9saWIvbGliZ3Bt LnNvLjEuLi5kb25lLgpMb2FkZWQgc3ltYm9scyBmb3IgL3Vzci9saWIvbGliZ3BtLnNvLjEKIzAg IDB4MDA4ZWVkY2EgaW4gc3RyY21wICgpIGZyb20gL2xpYi90bHMvbGliYy5zby42CihnZGIpIHdo ZXJlCiMwICAweDAwOGVlZGNhIGluIHN0cmNtcCAoKSBmcm9tIC9saWIvdGxzL2xpYmMuc28uNgoj MSAgMHgwODA0ZTQ1MiBpbiA/PyAoKQojMiAgMHgwOWNmZjE0OCBpbiA/PyAoKQojMyAgMHgwODA1 MjAwMCBpbiA/PyAoKQojNCAgMHgwMDAwMDAwMSBpbiA/PyAoKQojNSAgMHgwOWNmZjE1OCBpbiA/ PyAoKQojNiAgMHgwOWNmZjE1OSBpbiA/PyAoKQojNyAgMHgwOWNmZjE0OCBpbiA/PyAoKQojOCAg MHhiZmVlN2QyOCBpbiA/PyAoKQojOSAgMHgwODA0ZTY0MiBpbiA/PyAoKQojMTAgMHgwOWNmZjE0 OCBpbiA/PyAoKQojMTEgMHgwMDAwMDA2ZiBpbiA/PyAoKQojMTIgMHgwOWNmZjk1MCBpbiA/PyAo KQooZ2RiKSBxdWl0Cg== --Multipart=_Mon__1_Dec_2003_12_58_33_+0100_HTMTu=ci1J7Gu=_E Content-Type: text/plain; name="info.txt" Content-Disposition: attachment; filename="info.txt" Content-Transfer-Encoding: 7bit processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 2.80GHz stepping : 9 cpu MHz : 2785.190 cache size : 512 KB physical id : 3 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid runqueue : 0 bogomips : 5557.45 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 2.80GHz stepping : 9 cpu MHz : 2785.190 cache size : 512 KB physical id : 3 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid runqueue : 0 bogomips : 5557.45 Linux version 2.4.22-1.2115.nptlsmp (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)) #1 SMP Wed Oct 29 15:30:09 EST 2003 $ rpm -qa | grep gcc gcc-3.3.2-1 gcc-g77-3.3.2-1 gcc-java-3.3.2-1 gcc32-3.2.3-6 libgcc-3.3.2-1 gcc-c++-3.3.2-1 gcc-gnat-3.3.2-1 $ rpm -qa | grep libc libcap-1.10-16 libcap-devel-1.10-16 glibc-common-2.3.2-101.1 glibc-headers-2.3.2-101.1 glibc-kernheaders-2.4-8.36 glibc-2.3.2-101.1 glibc-devel-2.3.2-101.1 --Multipart=_Mon__1_Dec_2003_12_58_33_+0100_HTMTu=ci1J7Gu=_E-- From spamtrap@lucassen.org Mon Dec 01 12:14:23 2003 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1AQmwY-0000s2-00 for iftop-users@lists.beasts.org; Mon, 01 Dec 2003 12:14:22 +0000 Received: (qmail 26797 invoked from network); 1 Dec 2003 12:14:22 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 1 Dec 2003 12:14:22 -0000 Date: Mon, 1 Dec 2003 13:14:22 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Re: problem with iftop Message-Id: <20031201131422.0e3b25d3.spamtrap@lucassen.org> In-Reply-To: <20031201125833.417dad4f.spamtrap@lucassen.org> References: <20031120123109.1c0e8eac.spamtrap@lucassen.org> <20031120113701.R24793@sphinx.mythic-beasts.com> <20031201125833.417dad4f.spamtrap@lucassen.org> Reply-To: reply3@lucassen.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-28.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, SIGNATURE_LONG_SPARSE version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, 1 Dec 2003 12:58:33 +0100 richard lucassen wrote: Hmmm, I looked once again and apparently there is no debugging switched on (sorry, I'm not a programmer). How do I switch on debugging? ./configure--help doesn't help me any further. R. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ From tagriffin@micron.com Thu Jan 15 20:04:59 2004 Received: from masquerade.micron.com ([137.201.242.130] helo=mail-srv2.micron.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AhDjf-00007S-00 for iftop-users@lists.beasts.org; Thu, 15 Jan 2004 20:04:59 +0000 Received: from mail-srv2.micron.com (localhost [127.0.0.1]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id i0FK4URi015234 for ; Thu, 15 Jan 2004 13:04:30 -0700 (MST) Received: from ntxboimbx06.micron.com (ntxboimbx06.micron.com [137.201.80.93]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id i0FK4SRA015213 for ; Thu, 15 Jan 2004 13:04:28 -0700 (MST) From: tagriffin@micron.com X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3DBA2.C3D7CF92" Date: Thu, 15 Jan 2004 13:04:21 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Trying to compile iftop-0.15 -- problems Thread-Index: AcPbosWUoJUHRmAdRCyaVAzFtACjJw== To: X-Scanned-By: MIMEDefang 2.37 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=1.7 required=5.0 tests=HTML_30_40,HTML_FONTCOLOR_BLUE, HTML_FONTCOLOR_RED,HTML_FONT_FACE_ODD,HTML_MESSAGE,NO_REAL_NAME autolearn=no version=2.61-sa_mythic X-Spam-Level: * Subject: [Iftop-users] Trying to compile iftop-0.15 -- problems Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C3DBA2.C3D7CF92 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I hope someone can help me out here. I am not a C coder but occasionally compile things in the Unix [aix, solaris, linux] environment. I am currently attempting to compile iftop and have run into many problem. I have installed libpcap and ncurses to get past my first two problems. I applied the patch referenced here http://lists.beasts.org/pipermail/iftop-users/2003-November/000074.html for POSIX threads. I am now stumped though. Here is the error that I am getting when trying to compile: . . . . checking for inet_pton... yes checking size of u_int8_t... unknown type checking size of u_int16_t... unknown type checking size of u_int32_t... unknown type checking for stdint.h... (cached) no checking sys/inttypes.h usability... yes checking sys/inttypes.h presence... yes checking for sys/inttypes.h... yes checking for library containing getnameinfo... none required checking for library containing gethostbyaddr_r... none required checking how to call gethostbyaddr_r... 7 args, struct hostent* return checking where to find pcap.h... /home/username/tcpdump/include checking for pcap_open_live in -lpcap... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... -lpthread checking if we need to enable promiscuous mode by default... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands make all-recursive make[1]: Entering directory `/home/username/iftop-0.15' Making all in config make[2]: Entering directory `/home/username/iftop-0.15/config' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/username/iftop-0.15/config' make[2]: Entering directory `/home/username/iftop-0.15' source=3D'options.c' object=3D'options.o' libtool=3Dno \ depfile=3D'.deps/options.Po' tmpdepfile=3D'.deps/options.TPo' \ depmode=3Dgcc /bin/bash ./config/depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/username/tcpdump/include -g -O2 -c `test -f 'options.c' || echo './'`options.c options.c: In function `set_net_filter': options.c:218: `u_int32_t' undeclared (first use in this function) options.c:218: (Each undeclared identifier is reported only once options.c:218: for each function it appears in.) options.c:218: parse error before `mm' options.c:219: `mm' undeclared (first use in this function) options.c: In function `options_config_get_net_filter': options.c:466: `u_int32_t' undeclared (first use in this function) options.c:466: parse error before `mm' options.c:467: `mm' undeclared (first use in this function) make[2]: *** [options.o] Error 1 make[2]: Leaving directory `/home/username/iftop-0.15' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/username/iftop-0.15' make: *** [all] Error 2 [60]/home/username/iftop-0.15 #=20 I am guessing that it is something simple but I just don't have the knowledge base to figure this one out for myself. Any help would be greatly appreciated. Oh yes: SunOS hostname-here5.8 Generic_108528-22 sun4u sparc SUNW,Ultra-5_10.=20 Teressa Griffin ------_=_NextPart_001_01C3DBA2.C3D7CF92 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Trying to compile iftop-0.15 -- problems

I hope someone can help me out = here.  I am not a C coder but occasionally compile things in the = Unix [aix, solaris, linux] environment.  I am currently attempting = to compile iftop and have run into many problem.  I have installed = libpcap and ncurses to get past my first two problems.  I applied = the patch referenced here http://lists.beasts.org/pipermail/iftop-users/2003-Novem= ber/000074.html for POSIX = threads.  I am now stumped though.  Here is the error that I = am getting when trying to compile:


    .
    .
    .
    .
    checking for inet_pton... yes
    checking size of = u_int8_t... unknown type
    checking size of = u_int16_t... unknown type
    checking size of = u_int32_t... unknown type
    checking for stdint.h... (cached) = no
    checking sys/inttypes.h usability... = yes
    checking sys/inttypes.h presence... = yes
    checking for sys/inttypes.h... = yes
    checking for library containing = getnameinfo... none required
    checking for library containing = gethostbyaddr_r... none required
    checking how to call = gethostbyaddr_r... 7 args, struct hostent* return
    checking where to find pcap.h... = /home/username/tcpdump/include
    checking for pcap_open_live in = -lpcap... yes
    checking pcap.h usability... = yes
    checking pcap.h presence... = yes
    checking for pcap.h... yes
    checking for a curses library = containing mvchgat... -lncurses
    checking how to compile a working = program with POSIX threads...  -lpthread
    checking if we need to enable = promiscuous mode by default... yes
    configure: creating = ./config.status
    config.status: creating = Makefile
    config.status: creating = config/Makefile
    config.status: creating = config.h
    config.status: config.h is = unchanged
    config.status: executing depfiles = commands
    make   = all-recursive
    make[1]: Entering directory = `/home/username/iftop-0.15'
    Making all in config
    make[2]: Entering directory = `/home/username/iftop-0.15/config'
    make[2]: Nothing to be done for = `all'.
    make[2]: Leaving directory = `/home/username/iftop-0.15/config'
    make[2]: Entering directory = `/home/username/iftop-0.15'
    source=3D'options.c' = object=3D'options.o' libtool=3Dno \
    depfile=3D'.deps/options.Po' = tmpdepfile=3D'.deps/options.TPo' \
    depmode=3Dgcc /bin/bash = ./config/depcomp \
    gcc -DHAVE_CONFIG_H -I. -I. = -I.   -I/home/username/tcpdump/include  -g -O2  -c = `test -f 'options.c' || echo './'`options.c

    options.c: In = function `set_net_filter':
    options.c:218: = `u_int32_t' undeclared (first use in this function)
    options.c:218: = (Each undeclared identifier is reported only once
    options.c:218: for = each function it appears in.)
    options.c:218: = parse error before `mm'
    options.c:219: = `mm' undeclared (first use in this function)
    options.c: In = function `options_config_get_net_filter':
    options.c:466: = `u_int32_t' undeclared (first use in this function)
    options.c:466: = parse error before `mm'
    options.c:467: = `mm' undeclared (first use in this function)
    make[2]: *** [options.o] Error = 1
    make[2]: Leaving directory = `/home/username/iftop-0.15'
    make[1]: *** [all-recursive] Error = 1
    make[1]: Leaving directory = `/home/username/iftop-0.15'
    make: *** [all] Error 2
    [60]/home/username/iftop-0.15 # =



I am guessing that it is something = simple but I just don't have the knowledge base to figure this one out = for myself.  Any help would be greatly appreciated.

Oh yes:  SunOS hostname-here5.8 = Generic_108528-22 sun4u sparc SUNW,Ultra-5_10.

Teressa Griffin

------_=_NextPart_001_01C3DBA2.C3D7CF92-- From pdw@decisionsoft.com Mon Jan 19 12:22:33 2004 Received: from oshakati-as1-dial177.iway.na ([196.44.143.177] helo=echinda ident=[VHYzFeLCaCCvVmHHLoC0dr+Zsm4SOoQr]) by sphinx.mythic-beasts.com with asmtp (Exim 3.33 #3) id 1AiYQG-0004Cg-00; Mon, 19 Jan 2004 12:22:29 +0000 Received: from pdw by echinda with local (Exim 3.36 #1) id 1AiYnz-0000GT-00; Mon, 19 Jan 2004 12:46:59 +0000 Date: Mon, 19 Jan 2004 12:46:59 +0000 From: Paul Warren To: tagriffin@micron.com Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Trying to compile iftop-0.15 -- problems Message-ID: <20040119124659.GA960@echinda> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi Teressa, Sorry for the lack of reply on this one. You should be able to work around this problem by replacing every occurence of "u_int32_t" with "unsigned int". I'm not sure what the "correct" solution to this problem. Does anyone know if it's possible to get autoconf to do something useful here? Paul On Thu, Jan 15, 2004 at 01:04:21PM -0700, tagriffin@micron.com wrote: > I hope someone can help me out here. I am not a C coder but occasionally > compile things in the Unix [aix, solaris, linux] environment. I am > currently attempting to compile iftop and have run into many problem. I > have installed libpcap and ncurses to get past my first two problems. I > applied the patch referenced here > http://lists.beasts.org/pipermail/iftop-users/2003-November/000074.html > for POSIX threads. I am now stumped though. Here is the error that I am > getting when trying to compile: > > . > . > . > . > checking for inet_pton... yes > checking size of u_int8_t... unknown type > checking size of u_int16_t... unknown type > checking size of u_int32_t... unknown type > checking for stdint.h... (cached) no > checking sys/inttypes.h usability... yes > checking sys/inttypes.h presence... yes > checking for sys/inttypes.h... yes > checking for library containing getnameinfo... none required > checking for library containing gethostbyaddr_r... none required > checking how to call gethostbyaddr_r... 7 args, struct hostent* return > checking where to find pcap.h... /home/username/tcpdump/include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lncurses > checking how to compile a working program with POSIX threads... > -lpthread > checking if we need to enable promiscuous mode by default... yes > configure: creating ./config.status > config.status: creating Makefile > config.status: creating config/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > make all-recursive > make[1]: Entering directory `/home/username/iftop-0.15' > Making all in config > make[2]: Entering directory `/home/username/iftop-0.15/config' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/username/iftop-0.15/config' > make[2]: Entering directory `/home/username/iftop-0.15' > source='options.c' object='options.o' libtool=no \ > depfile='.deps/options.Po' tmpdepfile='.deps/options.TPo' \ > depmode=gcc /bin/bash ./config/depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/username/tcpdump/include -g > -O2 -c `test -f 'options.c' || echo './'`options.c > > options.c: In function `set_net_filter': > options.c:218: `u_int32_t' undeclared (first use in this function) > options.c:218: (Each undeclared identifier is reported only once > options.c:218: for each function it appears in.) > options.c:218: parse error before `mm' > options.c:219: `mm' undeclared (first use in this function) > options.c: In function `options_config_get_net_filter': > options.c:466: `u_int32_t' undeclared (first use in this function) > options.c:466: parse error before `mm' > options.c:467: `mm' undeclared (first use in this function) > make[2]: *** [options.o] Error 1 > make[2]: Leaving directory `/home/username/iftop-0.15' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/username/iftop-0.15' > make: *** [all] Error 2 > [60]/home/username/iftop-0.15 # > > I am guessing that it is something simple but I just don't have the > knowledge base to figure this one out for myself. Any help would be > greatly appreciated. > > Oh yes: SunOS hostname-here5.8 Generic_108528-22 sun4u sparc > SUNW,Ultra-5_10. > > Teressa Griffin From chris@ex-parrot.com Mon Jan 19 13:00:24 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AiZ0x-0006Qv-00 for iftop-users@lists.beasts.org; Mon, 19 Jan 2004 13:00:24 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i0JDQfT6028275; Mon, 19 Jan 2004 13:26:41 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AiZ0w-0005IV-00; Mon, 19 Jan 2004 13:00:22 +0000 Date: Mon, 19 Jan 2004 13:00:22 +0000 From: Chris Lightfoot To: Paul Warren Cc: tagriffin@micron.com, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Trying to compile iftop-0.15 -- problems Message-ID: References: <20040119124659.GA960@echinda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040119124659.GA960@echinda> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Jan 19, 2004 at 12:46:59PM +0000, Paul Warren wrote: > Hi Teressa, > > Sorry for the lack of reply on this one. You should be able to work > around this problem by replacing every occurence of "u_int32_t" with > "unsigned int". > > I'm not sure what the "correct" solution to this problem. Does anyone > know if it's possible to get autoconf to do something useful here? It should already be doing so -- there's complicated logic to define the various types. I don't know why it isn't working in this case, though. -- ``The Fifth Law of Pipes: The outside diameter must exceed the inside diameter; otherwise the hole will be on the outside of the pipe.'' From chris@ex-parrot.com Mon Jan 19 13:15:50 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AiZFu-0007GV-00 for iftop-users@lists.beasts.org; Mon, 19 Jan 2004 13:15:50 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i0JDg8T6028331; Mon, 19 Jan 2004 13:42:08 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AiZFt-0005RK-00; Mon, 19 Jan 2004 13:15:49 +0000 Date: Mon, 19 Jan 2004 13:15:49 +0000 From: Chris Lightfoot To: tagriffin@micron.com Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Trying to compile iftop-0.15 -- problems Message-ID: <+ERRgHvDBga+.eTwmf1tqf/utxSQpgC0o1w@caesious.cold.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Jan 15, 2004 at 01:04:21PM -0700, tagriffin@micron.com wrote: > checking for sys/inttypes.h... yes > I am guessing that it is something simple but I just don't have the > knowledge base to figure this one out for myself. Any help would be > greatly appreciated. > > Oh yes: SunOS hostname-here5.8 Generic_108528-22 sun4u sparc > SUNW,Ultra-5_10. What does grep uint8_t /usr/include/sys/inttypes.h give? -- ``... Now I had improved the program to the point where it would not work at all.'' (George Greenstein, from `Frozen Star') From pdw@decisionsoft.com Mon Jan 19 17:24:14 2004 Received: from oshakati-as1-dial175.iway.na ([196.44.143.175] helo=echinda ident=[BIXU9W/XW20VGqlh1PnpJ4QA7xe96Am/]) by sphinx.mythic-beasts.com with asmtp (Exim 3.33 #3) id 1Aid8D-0004Iy-00; Mon, 19 Jan 2004 17:24:10 +0000 Received: from pdw by echinda with local (Exim 3.36 #1) id 1Aif2B-0000dK-00; Mon, 19 Jan 2004 19:26:03 +0000 Date: Mon, 19 Jan 2004 19:26:03 +0000 From: Paul Warren To: Chris Lightfoot Cc: tagriffin@micron.com, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Trying to compile iftop-0.15 -- problems Message-ID: <20040119192603.GA2416@echinda> References: <20040119124659.GA960@echinda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Jan 19, 2004 at 01:00:22PM +0000, Chris Lightfoot wrote: > On Mon, Jan 19, 2004 at 12:46:59PM +0000, Paul Warren wrote: > > Sorry for the lack of reply on this one. You should be able to work > > around this problem by replacing every occurence of "u_int32_t" with > > "unsigned int". > > > > I'm not sure what the "correct" solution to this problem. Does anyone > > know if it's possible to get autoconf to do something useful here? > > It should already be doing so -- there's complicated logic > to define the various types. I don't know why it isn't > working in this case, though. On this system, the types are defined in sys/types.h, and presumably autoconf is supposed to make them up in the event that they're not defined there on a given system. Perhaps upgrading autoconf might help? Paul From chris@ex-parrot.com Mon Jan 19 17:36:05 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AidJk-0004tB-00 for iftop-users@lists.beasts.org; Mon, 19 Jan 2004 17:36:04 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i0JI2LT6028950; Mon, 19 Jan 2004 18:02:21 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1AidJh-0007Ya-00; Mon, 19 Jan 2004 17:36:01 +0000 Date: Mon, 19 Jan 2004 17:36:01 +0000 From: Chris Lightfoot To: Paul Warren Cc: tagriffin@micron.com, iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Trying to compile iftop-0.15 -- problems Message-ID: References: <20040119124659.GA960@echinda> <20040119192603.GA2416@echinda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040119192603.GA2416@echinda> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Jan 19, 2004 at 07:26:03PM +0000, Paul Warren wrote: > On Mon, Jan 19, 2004 at 01:00:22PM +0000, Chris Lightfoot wrote: > > On Mon, Jan 19, 2004 at 12:46:59PM +0000, Paul Warren wrote: > > > Sorry for the lack of reply on this one. You should be able to work > > > around this problem by replacing every occurence of "u_int32_t" with > > > "unsigned int". > > > > > > I'm not sure what the "correct" solution to this problem. Does anyone > > > know if it's possible to get autoconf to do something useful here? > > > > It should already be doing so -- there's complicated logic > > to define the various types. I don't know why it isn't > > working in this case, though. > > On this system, the types are defined in sys/types.h, and presumably > autoconf is supposed to make them up in the event that they're not > defined there on a given system. > > Perhaps upgrading autoconf might help? The autoconf scripts sets some macros which are tested by integers.h. The problem is that, until C99, there were no standard fixed-width integer types, so the script and header file try between them to figure out what combination of types works. It assumes that if exists, it contains the proper C99 uint_t types, and similarly for , which on Solaris seems to contain the same definitions. I don't think that autoconf has functionality to do this itself, sadly. -- Don't argue with idiots-- they drag you down to their level, and then they win because they're playing on home ground. From cyliang@ilstu.edu Wed Jan 21 22:50:21 2004 Received: from merlin.ilstu.edu ([138.87.1.96]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AjRAy-0001Qa-00 for iftop-users@lists.beasts.org; Wed, 21 Jan 2004 22:50:20 +0000 Received: from [10.1.12.108] ([10.1.12.108]) by merlin.ilstu.edu (8.11.6+Sun/8.9.3) with ESMTP id i0LMoJb00956 for ; Wed, 21 Jan 2004 16:50:19 -0600 (CST) Date: Wed, 21 Jan 2004 16:50:30 -0600 From: "C. Liang" Reply-To: "C. Liang" To: iftop-users@lists.beasts.org Message-ID: <2147483647.1074703830@[10.1.12.108]> X-Mailer: Mulberry/3.1.0 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] POSIX thread compile problem on Solaris 9? Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I apologize in advance if this is a very basic question. I'm still trying to wrap my head around the peculiarities of Solaris .... I'm trying to compile iftop0.15 on a box running Solaris 9 (SPARC). When trying to configure, I get an error about being unable to figure out how to compile with POSIX threads: > ./configure --with-libcap=/usr/local checking for a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... -lpcap -lnsl -lm -lsocket -lncurses no idea configure: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. I believe the libraries in question (libpthreatd, etc.) are in /usr/local/lib, which is where the ncurses libraries are (which it seems to have no problem finding). I have tried setting LDFLAGS to "-L/usr/lib -R/usr/lib", but that doesn't seem to help any. I'm trying to avoid the use of LD_LIBRARY_PATH since there have been problems in the past with getting scripts, etc. to work cleanly. Since I don't have much experience with trying to compile something using POSIX threads, is there something else I need to be feeding to the configure script? - C. From pdw@sphinx.mythic-beasts.com Sat Feb 28 19:15:44 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1Ax9w7-0005k7-00 for iftop-users@lists.beasts.org; Sat, 28 Feb 2004 19:15:43 +0000 Date: Sat, 28 Feb 2004 19:15:43 +0000 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20040228191543.F26383@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] iftop 0.16 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I've just uploaded iftop 0.16. You can get it from: http://ex-parrot.com/~pdw/iftop/download/iftop-0.16.tar.gz Changes are: 0.16 28/02/04 * Added support for DLT_NULL * Fix for pthread.c behaviour on Solaris. * Build fixes for gcc 3.4+ Henne Vogelsang * Fixed behaviour of -n and -N options Klaus Sperner Paul From JohnThompson@new.rr.com Sat Feb 28 20:31:53 2004 Received: from ms-smtp-01.rdc-kc.rr.com ([24.94.166.115]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AxB7p-0000bY-00 for iftop-users@lists.beasts.org; Sat, 28 Feb 2004 20:31:53 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-01.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i1SKViV5021410 for ; Sat, 28 Feb 2004 14:31:45 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i1SKVf7f000592 for ; Sat, 28 Feb 2004 14:31:42 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Sat, 28 Feb 2004 14:31:41 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040228143141.2658a512@starfleet.os2.dhs.org> In-Reply-To: <20040228191543.F26383@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, 28 Feb 2004 19:15:43 +0000 Paul Warren wrote: > I've just uploaded iftop 0.16. You can get it from: > > http://ex-parrot.com/~pdw/iftop/download/iftop-0.16.tar.gz > > Changes are: > > 0.16 28/02/04 > * Added support for DLT_NULL > * Fix for pthread.c behaviour on Solaris. Thanks. Unfortunately, Posix thread support is still broken in NetBSD: bash-2.05b# ./configure checking build system type... i386-unknown-netbsdelf1.6.1 checking host system type... i386-unknown-netbsdelf1.6.1 checking target system type... i386-unknown-netbsdelf1.6.1 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets ${MAKE}... yes checking for gcc... gcc checking for C compiler default output... 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 style of include used by make... GNU checking dependency style of gcc... gcc checking how to run the C preprocessor... gcc -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... yes checking for unistd.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/sockio.h usability... yes checking sys/sockio.h presence... yes checking for sys/sockio.h... yes checking for unistd.h... (cached) yes checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking sys/dlpi.h usability... no checking sys/dlpi.h presence... no checking for sys/dlpi.h... no checking for regcomp... yes checking for select... yes checking for strdup... yes checking for strerror... yes checking for strspn... yes checking for library containing socket... none required checking for library containing log... -lm checking for gethostbyname... yes checking for library containing inet_aton... none required checking for library containing inet_pton... none required checking for inet_aton... yes checking for inet_pton... yes checking size of u_int8_t... 1 checking size of u_int16_t... 2 checking size of u_int32_t... 4 checking for library containing getnameinfo... none required checking for library containing gethostbyaddr_r... no checking for library containing gethostbyaddr... none required checking where to find pcap.h... /include checking for pcap_open_live in -lpcap... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... no idea configure: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. -- -John (JohnThompson@new.rr.com) From kent-cdr@greendot.com.ph Mon Mar 01 01:28:51 2004 Received: from mail.greendot.com.ph ([203.160.160.11] helo=supercom.com.ph) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AxcEk-0000K1-00 for iftop-users@lists.beasts.org; Mon, 01 Mar 2004 01:28:50 +0000 Received: from [203.160.184.42] (HELO kent) by supercom.com.ph (CommuniGate Pro SMTP 4.0.3) with ESMTP id 10225422 for iftop-users@lists.beasts.org; Mon, 01 Mar 2004 08:44:29 +0800 From: "kent e." To: Date: Mon, 1 Mar 2004 09:28:09 +0800 Message-ID: <002701c3ff2c$74fa23e0$1500000a@kent> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] Version for our firewall Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi to all ... I tried to do './configure' in our firewall .. Ipcop1.3.0 but im having an error ... Configure: error: no acceptable C compiler found in $PATH Thanks kent From JohnThompson@new.rr.com Mon Mar 01 01:56:00 2004 Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1Axcf1-0001QV-00 for iftop-users@lists.beasts.org; Mon, 01 Mar 2004 01:55:59 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i211ttfc027825 for ; Sun, 29 Feb 2004 19:55:55 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i211tj6s008801 for ; Sun, 29 Feb 2004 19:55:45 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Sun, 29 Feb 2004 19:55:51 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Version for our firewall Message-Id: <20040229195551.463b7b31@starfleet.os2.dhs.org> In-Reply-To: <002701c3ff2c$74fa23e0$1500000a@kent> References: <002701c3ff2c$74fa23e0$1500000a@kent> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, 01 Mar 2004 09:28:09 +0800 "kent e." wrote: > I tried to do './configure' in our firewall .. Ipcop1.3.0 but im > having an error ... > > Configure: error: no acceptable C compiler found in $PATH Looks like you don't have a compiler installed on your firewall machine. Having a compiler on the firewall could be a security issue; compile iftop on a different machine and just copy the executable to the firewall machine. -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Mon Mar 01 09:48:24 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1Axk2A-00047B-00; Mon, 01 Mar 2004 09:48:22 +0000 Date: Mon, 1 Mar 2004 09:48:22 +0000 From: Paul Warren To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040301094822.B13593@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040228143141.2658a512@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Sat, Feb 28, 2004 at 02:31:41PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi John, Can you post us the (last bit of) output from your config.log? thanks, Paul On Sat, Feb 28, 2004 at 02:31:41PM -0600, John Thompson wrote: > On Sat, 28 Feb 2004 19:15:43 +0000 > Paul Warren wrote: > > > I've just uploaded iftop 0.16. You can get it from: > > > > http://ex-parrot.com/~pdw/iftop/download/iftop-0.16.tar.gz > > > > Changes are: > > > > 0.16 28/02/04 > > * Added support for DLT_NULL > > * Fix for pthread.c behaviour on Solaris. > > Thanks. Unfortunately, Posix thread support is still broken in NetBSD: > > bash-2.05b# ./configure > checking build system type... i386-unknown-netbsdelf1.6.1 > checking host system type... i386-unknown-netbsdelf1.6.1 > checking target system type... i386-unknown-netbsdelf1.6.1 > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... no > checking for nawk... no > checking for awk... awk > checking whether make sets ${MAKE}... yes > checking for gcc... gcc > checking for C compiler default output... 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 style of include used by make... GNU > checking dependency style of gcc... gcc > checking how to run the C preprocessor... gcc -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... yes > checking for unistd.h... yes > checking sys/ioctl.h usability... yes > checking sys/ioctl.h presence... yes > checking for sys/ioctl.h... yes > checking sys/time.h usability... yes > checking sys/time.h presence... yes > checking for sys/time.h... yes > checking sys/sockio.h usability... yes > checking sys/sockio.h presence... yes > checking for sys/sockio.h... yes > checking for unistd.h... (cached) yes > checking for gcc option to accept ANSI C... none needed > checking for an ANSI C-conforming const... yes > checking for size_t... yes > checking whether time.h and sys/time.h may both be included... yes > checking sys/dlpi.h usability... no > checking sys/dlpi.h presence... no > checking for sys/dlpi.h... no > checking for regcomp... yes > checking for select... yes > checking for strdup... yes > checking for strerror... yes > checking for strspn... yes > checking for library containing socket... none required > checking for library containing log... -lm > checking for gethostbyname... yes > checking for library containing inet_aton... none required > checking for library containing inet_pton... none required > checking for inet_aton... yes > checking for inet_pton... yes > checking size of u_int8_t... 1 > checking size of u_int16_t... 2 > checking size of u_int32_t... 4 > checking for library containing getnameinfo... none required > checking for library containing gethostbyaddr_r... no > checking for library containing gethostbyaddr... none required > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lncurses > checking how to compile a working program with POSIX threads... no idea > configure: error: can't figure out how to compile with POSIX threads > If your system actually supports POSIX threads, this means we've > messed up. > > -- > > -John (JohnThompson@new.rr.com) > > _______________________________________________ > iftop-users mailing list > iftop-users@lists.beasts.org > http://lists.beasts.org/mailman/listinfo/iftop-users From JohnThompson@new.rr.com Mon Mar 01 13:27:03 2004 Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1AxnRm-0000J0-00 for iftop-users@lists.beasts.org; Mon, 01 Mar 2004 13:27:02 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i21DQwfc021611 for ; Mon, 1 Mar 2004 07:26:58 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i21DQj8F037709 for ; Mon, 1 Mar 2004 07:26:46 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Mon, 1 Mar 2004 07:26:53 -0600 From: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040301072653.48f6958c@starfleet.os2.dhs.org> In-Reply-To: <20040301094822.B13593@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, 01 Mar 2004 09:48:22 +0000 Paul Warren wrote: > Hi John, > > Can you post us the (last bit of) output from your config.log? Sure; thanks: configure:6504: checking how to compile a working program with POSIX threads configure:6524: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -ln curses >&5 /var/tmp/cccO6llL.o: In function`worker_thread': /var/tmp/cccO6llL.o(.text+0x19): undefined reference to`pthread_mutex_lock' /var/tmp/cccO6llL.o(.text+0x29): undefined reference to `pthread_cond_signal' /var/tmp/cccO6llL.o(.text+0x39): undefined reference to `pthread_mutex_unlock' /var/tmp/cccO6llL.o(.text+0x52): undefined reference to `pthread_testcancel' /var/tmp/cccO6llL.o: In function `main': /var/tmp/cccO6llL.o(.text+0x79): undefined reference to `pthread_mutex_lock' /var/tmp/cccO6llL.o(.text+0x99): undefined reference to `pthread_create' /var/tmp/cccO6llL.o(.text+0x10f): undefined reference to `pthread_cond_timedwait' /var/tmp/cccO6llL.o(.text+0x164): undefined reference to `pthread_cancel' /var/tmp/cccO6llL.o(.text+0x180): undefined reference to `pthread_join' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" [...] configure:6554: result: no idea configure:6557: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-unknown-netbsdelf1.6.1 ac_cv_build_alias=i386-unknown-netbsdelf1.6.1 ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=-I/usr/pkg/include ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_gethostbyname=yes ac_cv_func_inet_aton=yes ac_cv_func_inet_pton=yes ac_cv_func_regcomp=yes ac_cv_func_select=yes ac_cv_func_strdup=yes ac_cv_func_strerror=yes ac_cv_func_strspn=yes ac_cv_header_inttypes_h=yes ac_cv_header_pcap_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_dlpi_h=no ac_cv_header_sys_ioctl_h=yes ac_cv_header_sys_sockio_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_time_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_time=yes ac_cv_header_unistd_h=yes ac_cv_host=i386-unknown-netbsdelf1.6.1 ac_cv_host_alias=i386-unknown-netbsdelf1.6.1 ac_cv_lib_pcap_pcap_open_live=yes ac_cv_objext=o ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_AWK=awk ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_make_make_set=yes ac_cv_search_gethostbyaddr='none required' ac_cv_search_gethostbyaddr_r=no ac_cv_search_getnameinfo='none required' ac_cv_search_inet_aton='none required' ac_cv_search_inet_pton='none required' ac_cv_search_log=-lm ac_cv_search_socket='none required' ac_cv_target=i386-unknown-netbsdelf1.6.1 ac_cv_target_alias=i386-unknown-netbsdelf1.6.1 ac_cv_type_size_t=yes am_cv_CC_dependencies_compiler_type=gcc [...] -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Sun Mar 07 15:38:31 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B00MH-000205-00; Sun, 07 Mar 2004 15:38:29 +0000 Date: Sun, 7 Mar 2004 15:38:29 +0000 From: Paul Warren To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040307153829.E27687@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040301072653.48f6958c@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Mon, Mar 01, 2004 at 07:26:53AM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hi John, Sorry for the delay in repling, I've only just had a chance to look at this. I think I need to see more of your config.log. configure should attempt to compile a test program in 12 different ways. I suspect that at least one of those is actually compiling and it's the test program that's failing. Can you post the rest of the file? thanks, Paul On Mon, Mar 01, 2004 at 07:26:53AM -0600, John Thompson wrote: > On Mon, 01 Mar 2004 09:48:22 +0000 > Paul Warren wrote: > > > Hi John, > > > > Can you post us the (last bit of) output from your config.log? > > Sure; thanks: > > configure:6504: checking how to compile a working program with POSIX > threads configure:6524: gcc -o conftest -I/usr/pkg/include conftest.c > -lpcap -lm -ln curses >&5 > /var/tmp/cccO6llL.o: In function`worker_thread': > /var/tmp/cccO6llL.o(.text+0x19): undefined reference > to`pthread_mutex_lock' > /var/tmp/cccO6llL.o(.text+0x29): undefined reference to > `pthread_cond_signal' > /var/tmp/cccO6llL.o(.text+0x39): undefined reference to > `pthread_mutex_unlock' > /var/tmp/cccO6llL.o(.text+0x52): undefined reference to > `pthread_testcancel' > /var/tmp/cccO6llL.o: In function `main': > /var/tmp/cccO6llL.o(.text+0x79): undefined reference to > `pthread_mutex_lock' > /var/tmp/cccO6llL.o(.text+0x99): undefined reference > to `pthread_create' > /var/tmp/cccO6llL.o(.text+0x10f): undefined reference > to `pthread_cond_timedwait' > /var/tmp/cccO6llL.o(.text+0x164): undefined reference to > `pthread_cancel' > /var/tmp/cccO6llL.o(.text+0x180): undefined reference to > `pthread_join' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > > [...] > > > configure:6554: result: no idea > configure:6557: error: can't figure out how to compile with POSIX > threads If your system actually supports POSIX threads, this means > we've messed up. > > ## ---------------- ## > ## Cache variables. ## > ## ---------------- ## > > ac_cv_build=i386-unknown-netbsdelf1.6.1 > ac_cv_build_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_c_compiler_gnu=yes > ac_cv_c_const=yes > ac_cv_env_CC_set= > ac_cv_env_CC_value= > ac_cv_env_CFLAGS_set=set > ac_cv_env_CFLAGS_value=-I/usr/pkg/include > ac_cv_env_CPPFLAGS_set= > ac_cv_env_CPPFLAGS_value= > ac_cv_env_CPP_set= > ac_cv_env_CPP_value= > ac_cv_env_LDFLAGS_set= > ac_cv_env_LDFLAGS_value= > ac_cv_env_build_alias_set= > ac_cv_env_build_alias_value= > ac_cv_env_host_alias_set= > ac_cv_env_host_alias_value= > ac_cv_env_target_alias_set= > ac_cv_env_target_alias_value= > ac_cv_exeext= > ac_cv_func_gethostbyname=yes > ac_cv_func_inet_aton=yes > ac_cv_func_inet_pton=yes > ac_cv_func_regcomp=yes > ac_cv_func_select=yes > ac_cv_func_strdup=yes > ac_cv_func_strerror=yes > ac_cv_func_strspn=yes > ac_cv_header_inttypes_h=yes > ac_cv_header_pcap_h=yes > ac_cv_header_stdc=yes > ac_cv_header_stdint_h=yes > ac_cv_header_stdlib_h=yes > ac_cv_header_string_h=yes > ac_cv_header_strings_h=yes > ac_cv_header_sys_dlpi_h=no > ac_cv_header_sys_ioctl_h=yes > ac_cv_header_sys_sockio_h=yes > ac_cv_header_sys_stat_h=yes > ac_cv_header_sys_time_h=yes > ac_cv_header_sys_types_h=yes > ac_cv_header_time=yes > ac_cv_header_unistd_h=yes > ac_cv_host=i386-unknown-netbsdelf1.6.1 > ac_cv_host_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_lib_pcap_pcap_open_live=yes > ac_cv_objext=o > ac_cv_path_install='/usr/bin/install -c' > ac_cv_prog_AWK=awk > ac_cv_prog_CPP='gcc -E' > ac_cv_prog_ac_ct_CC=gcc > ac_cv_prog_cc_g=yes > ac_cv_prog_cc_stdc= > ac_cv_prog_make_make_set=yes > ac_cv_search_gethostbyaddr='none required' > ac_cv_search_gethostbyaddr_r=no > ac_cv_search_getnameinfo='none required' > ac_cv_search_inet_aton='none required' > ac_cv_search_inet_pton='none required' > ac_cv_search_log=-lm > ac_cv_search_socket='none required' > ac_cv_target=i386-unknown-netbsdelf1.6.1 > ac_cv_target_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_type_size_t=yes > am_cv_CC_dependencies_compiler_type=gcc > > [...] > > > > -- > > -John (JohnThompson@new.rr.com) > > _______________________________________________ > iftop-users mailing list > iftop-users@lists.beasts.org > http://lists.beasts.org/mailman/listinfo/iftop-users From JohnThompson@new.rr.com Sun Mar 07 18:05:06 2004 Received: from ms-smtp-01.rdc-kc.rr.com ([24.94.166.115]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B02e4-0001C6-00 for iftop-users@lists.beasts.org; Sun, 07 Mar 2004 18:05:00 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-01.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i27I4sV5015966 for ; Sun, 7 Mar 2004 12:04:55 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i27I4Not047531 for ; Sun, 7 Mar 2004 12:04:23 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Sun, 7 Mar 2004 12:04:45 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040307120445.1d44cbcc@starfleet.os2.dhs.org> In-Reply-To: <20040307153829.E27687@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, 07 Mar 2004 15:38:29 +0000 Paul Warren wrote: > Sorry for the delay in repling, I've only just had a chance to look at > this. I think I need to see more of your config.log. configure should > attempt to compile a test program in 12 different ways. I suspect > that at least one of those is actually compiling and it's the test > program that's failing. Can you post the rest of the file? Certainly: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.53. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = shire uname -m = i386 uname -r = 1.6.1 uname -s = NetBSD uname -v = NetBSD 1.6.1 (shire) #1: Thu Jul 17 17:16:47 CDT 2003 skylar@shire:/usr/exports/src/syssrc/NetBSD/1.6.1/arch/i386/compile/shire /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/bin PATH: /bin PATH: /usr/pkg/bin PATH: /usr/local/bin PATH: /home/john/OpenOffice PATH: /home/john/sdm PATH: /usr/java/j2re1.4.2_01/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1245: checking build system type configure:1263: result: i386-unknown-netbsdelf1.6.1 configure:1271: checking host system type configure:1285: result: i386-unknown-netbsdelf1.6.1 configure:1293: checking target system type configure:1307: result: i386-unknown-netbsdelf1.6.1 configure:1341: checking for a BSD-compatible install configure:1395: result: /usr/bin/install -c configure:1406: checking whether build environment is sane configure:1449: result: yes configure:1482: checking for gawk configure:1511: result: no configure:1482: checking for mawk configure:1511: result: no configure:1482: checking for nawk configure:1511: result: no configure:1482: checking for awk configure:1498: found /usr/bin/awk configure:1508: result: awk configure:1518: checking whether make sets ${MAKE} configure:1538: result: yes configure:1736: checking for gcc configure:1752: found /usr/bin/gcc configure:1762: result: gcc configure:2006: checking for C compiler version configure:2009: gcc --version &5 2.95.3 configure:2012: $? = 0 configure:2014: gcc -v &5 Using builtin specs. gcc version 2.95.3 20010315 (release) (NetBSD nb3) configure:2017: $? = 0 configure:2019: gcc -V &5 gcc: argument to `-V' is missing configure:2022: $? = 1 configure:2048: checking for C compiler default output configure:2051: gcc -I/usr/pkg/include conftest.c >&5 configure:2054: $? = 0 configure:2087: result: a.out configure:2092: checking whether the C compiler works configure:2098: ./a.out configure:2101: $? = 0 configure:2116: result: yes configure:2123: checking whether we are cross compiling configure:2125: result: no configure:2128: checking for suffix of executables configure:2130: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:2133: $? = 0 configure:2155: result: configure:2161: checking for suffix of object files configure:2185: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2188: $? = 0 configure:2207: result: o configure:2211: checking whether we are using the GNU C compiler configure:2238: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2241: $? = 0 configure:2244: test -s conftest.o configure:2247: $? = 0 configure:2259: result: yes configure:2265: checking whether gcc accepts -g configure:2289: gcc -c -g conftest.c >&5 configure:2292: $? = 0 configure:2295: test -s conftest.o configure:2298: $? = 0 configure:2308: result: yes configure:2335: gcc -c -I/usr/pkg/include conftest.c >&5 conftest.c:2: parse error before `me' configure:2338: $? = 1 configure: failed program was: #ifndef __cplusplus choke me #endif configure:2467: checking for style of include used by make configure:2495: result: GNU configure:2523: checking dependency style of gcc configure:2585: result: gcc configure:2596: checking how to run the C preprocessor configure:2622: gcc -E conftest.c configure:2628: $? = 0 configure:2655: gcc -E conftest.c configure:2651: ac_nonexistent.h: No such file or directory configure:2661: $? = 1 configure: failed program was: #line 2650 "configure" #include "confdefs.h" #include configure:2698: result: gcc -E configure:2713: gcc -E conftest.c configure:2719: $? = 0 configure:2746: gcc -E conftest.c configure:2742: ac_nonexistent.h: No such file or directory configure:2752: $? = 1 configure: failed program was: #line 2741 "configure" #include "confdefs.h" #include configure:2792: checking for ANSI C header files configure:2806: gcc -E conftest.c configure:2812: $? = 0 configure:2897: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:2900: $? = 0 configure:2902: ./conftest configure:2905: $? = 0 configure:2919: result: yes configure:2964: checking for sys/types.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for sys/stat.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for stdlib.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for string.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for memory.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for strings.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for inttypes.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for stdint.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:2964: checking for unistd.h configure:2977: gcc -c -I/usr/pkg/include conftest.c >&5 configure:2980: $? = 0 configure:2983: test -s conftest.o configure:2986: $? = 0 configure:2996: result: yes configure:3025: checking sys/ioctl.h usability configure:3034: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3037: $? = 0 configure:3040: test -s conftest.o configure:3043: $? = 0 configure:3052: result: yes configure:3056: checking sys/ioctl.h presence configure:3063: gcc -E conftest.c configure:3069: $? = 0 configure:3087: result: yes configure:3105: checking for sys/ioctl.h configure:3112: result: yes configure:3025: checking sys/time.h usability configure:3034: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3037: $? = 0 configure:3040: test -s conftest.o configure:3043: $? = 0 configure:3052: result: yes configure:3056: checking sys/time.h presence configure:3063: gcc -E conftest.c configure:3069: $? = 0 configure:3087: result: yes configure:3105: checking for sys/time.h configure:3112: result: yes configure:3025: checking sys/sockio.h usability configure:3034: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3037: $? = 0 configure:3040: test -s conftest.o configure:3043: $? = 0 configure:3052: result: yes configure:3056: checking sys/sockio.h presence configure:3063: gcc -E conftest.c configure:3069: $? = 0 configure:3087: result: yes configure:3105: checking for sys/sockio.h configure:3112: result: yes configure:3016: checking for unistd.h configure:3021: result: yes configure:3126: checking for gcc option to accept ANSI C configure:3189: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3192: $? = 0 configure:3195: test -s conftest.o configure:3198: $? = 0 configure:3215: result: none needed configure:3223: checking for an ANSI C-conforming const configure:3293: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3296: $? = 0 configure:3299: test -s conftest.o configure:3302: $? = 0 configure:3312: result: yes configure:3322: checking for size_t configure:3349: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3352: $? = 0 configure:3355: test -s conftest.o configure:3358: $? = 0 configure:3368: result: yes configure:3380: checking whether time.h and sys/time.h may both be included configure:3408: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3411: $? = 0 configure:3414: test -s conftest.o configure:3417: $? = 0 configure:3427: result: yes configure:3449: checking sys/dlpi.h usability configure:3458: gcc -c -I/usr/pkg/include conftest.c >&5 configure:3486: sys/dlpi.h: No such file or directory configure:3461: $? = 1 configure: failed program was: #line 3451 "configure" #include "confdefs.h" #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif #include configure:3476: result: no configure:3480: checking sys/dlpi.h presence configure:3487: gcc -E conftest.c configure:3483: sys/dlpi.h: No such file or directory configure:3493: $? = 1 configure: failed program was: #line 3482 "configure" #include "confdefs.h" #include configure:3511: result: no configure:3529: checking for sys/dlpi.h configure:3536: result: no configure:3558: checking for regcomp configure:3601: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3604: $? = 0 configure:3607: test -s conftest configure:3610: $? = 0 configure:3620: result: yes configure:3558: checking for select configure:3601: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3604: $? = 0 configure:3607: test -s conftest configure:3610: $? = 0 configure:3620: result: yes configure:3558: checking for strdup configure:3601: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3604: $? = 0 configure:3607: test -s conftest configure:3610: $? = 0 configure:3620: result: yes configure:3558: checking for strerror configure:3601: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3604: $? = 0 configure:3607: test -s conftest configure:3610: $? = 0 configure:3620: result: yes configure:3558: checking for strspn configure:3601: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3604: $? = 0 configure:3607: test -s conftest configure:3610: $? = 0 configure:3620: result: yes configure:3631: checking for library containing socket configure:3664: gcc -o conftest -I/usr/pkg/include conftest.c >&5 configure:3667: $? = 0 configure:3670: test -s conftest configure:3673: $? = 0 configure:3732: result: none required configure:3739: checking for library containing log configure:3772: gcc -o conftest -I/usr/pkg/include conftest.c >&5 /var/tmp/ccXBbjZz.o: In function `main': /var/tmp/ccXBbjZz.o(.text+0x7): undefined reference to `log' configure:3775: $? = 1 configure: failed program was: #line 3746 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char log (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { log (); ; return 0; } configure:3818: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:3821: $? = 0 configure:3824: test -s conftest configure:3827: $? = 0 configure:3840: result: -lm configure:3847: checking for gethostbyname configure:3890: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:3893: $? = 0 configure:3896: test -s conftest configure:3899: $? = 0 configure:3909: result: yes configure:3982: checking for library containing inet_aton configure:4015: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4018: $? = 0 configure:4021: test -s conftest configure:4024: $? = 0 configure:4083: result: none required configure:4090: checking for library containing inet_pton configure:4123: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4126: $? = 0 configure:4129: test -s conftest configure:4132: $? = 0 configure:4191: result: none required configure:4203: checking for inet_aton configure:4246: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4249: $? = 0 configure:4252: test -s conftest configure:4255: $? = 0 configure:4265: result: yes configure:4203: checking for inet_pton configure:4246: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4249: $? = 0 configure:4252: test -s conftest configure:4255: $? = 0 configure:4265: result: yes configure:4278: checking size of u_int8_t configure:4301: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4304: $? = 0 configure:4306: ./conftest configure:4309: $? = 0 configure:4314: result: 1 configure:4278: checking size of u_int16_t configure:4301: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4304: $? = 0 configure:4306: ./conftest configure:4309: $? = 0 configure:4314: result: 2 configure:4278: checking size of u_int32_t configure:4301: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:4304: $? = 0 configure:4306: ./conftest configure:4309: $? = 0 configure:4314: result: 4 configure:5566: checking for library containing getnameinfo configure:5599: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:5602: $? = 0 configure:5605: test -s conftest configure:5608: $? = 0 configure:5667: result: none required configure:5684: checking for library containing gethostbyaddr_r configure:5717: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 /var/tmp/ccyEL3wM.o: In function `main': /var/tmp/ccyEL3wM.o(.text+0x7): undefined reference to `gethostbyaddr_r' configure:5720: $? = 1 configure: failed program was: #line 5691 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyaddr_r (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { gethostbyaddr_r (); ; return 0; } configure:5763: gcc -o conftest -I/usr/pkg/include conftest.c -lnsl -lm >&5 ld: cannot find -lnsl configure:5766: $? = 1 configure: failed program was: #line 5737 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyaddr_r (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { gethostbyaddr_r (); ; return 0; } configure:5785: result: no configure:6018: checking for library containing gethostbyaddr configure:6051: gcc -o conftest -I/usr/pkg/include conftest.c -lm >&5 configure:6054: $? = 0 configure:6057: test -s conftest configure:6060: $? = 0 configure:6119: result: none required configure:6170: checking where to find pcap.h configure:6186: gcc -E conftest.c configure:6192: $? = 0 configure:6204: result: /include configure:6234: checking for pcap_open_live in -lpcap configure:6267: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm >&5 configure:6270: $? = 0 configure:6273: test -s conftest configure:6276: $? = 0 configure:6287: result: yes configure:6324: checking pcap.h usability configure:6333: gcc -c -I/usr/pkg/include conftest.c >&5 configure:6336: $? = 0 configure:6339: test -s conftest.o configure:6342: $? = 0 configure:6351: result: yes configure:6355: checking pcap.h presence configure:6362: gcc -E conftest.c configure:6368: $? = 0 configure:6386: result: yes configure:6404: checking for pcap.h configure:6411: result: yes configure:6437: checking for a curses library containing mvchgat configure:6465: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -lcurses >&5 /var/tmp/ccj5gfIz.o: In function `main': /var/tmp/ccj5gfIz.o(.text+0x19): undefined reference to `mvchgat' configure:6468: $? = 1 configure: failed program was: #line 6442 "configure" #include "confdefs.h" #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { mvchgat(0, 0, 1, A_REVERSE, 0, NULL) ; return 0; } configure:6465: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -lncurses >&5 configure:6468: $? = 0 configure:6471: test -s conftest configure:6474: $? = 0 configure:6498: result: -lncurses configure:6504: checking how to compile a working program with POSIX threads configure:6524: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -lncurses >&5 /var/tmp/cccO6llL.o: In function `worker_thread': /var/tmp/cccO6llL.o(.text+0x19): undefined reference to `pthread_mutex_lock' /var/tmp/cccO6llL.o(.text+0x29): undefined reference to `pthread_cond_signal' /var/tmp/cccO6llL.o(.text+0x39): undefined reference to `pthread_mutex_unlock' /var/tmp/cccO6llL.o(.text+0x52): undefined reference to `pthread_testcancel' /var/tmp/cccO6llL.o: In function `main': /var/tmp/cccO6llL.o(.text+0x79): undefined reference to `pthread_mutex_lock' /var/tmp/cccO6llL.o(.text+0x99): undefined reference to `pthread_create' /var/tmp/cccO6llL.o(.text+0x10f): undefined reference to `pthread_cond_timedwait' /var/tmp/cccO6llL.o(.text+0x164): undefined reference to `pthread_cancel' /var/tmp/cccO6llL.o(.text+0x180): undefined reference to `pthread_join' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -lncurses -lpthread >&5 ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include conftest.c -lpcap -lm -lncurses -lpthread -lposix4 >&5 ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -mt conftest.c -lpcap -lm -lncurses >&5 cc1: Invalid option `t' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -mt conftest.c -lpcap -lm -lncurses -lpthread >&5 cc1: Invalid option `t' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -mt conftest.c -lpcap -lm -lncurses -lpthread -lposix4 >&5 cc1: Invalid option `t' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -pthread conftest.c -lpcap -lm -lncurses >&5 gcc: unrecognized option `-pthread' /var/tmp/ccs18JIT.o: In function `worker_thread': /var/tmp/ccs18JIT.o(.text+0x19): undefined reference to `pthread_mutex_lock' /var/tmp/ccs18JIT.o(.text+0x29): undefined reference to `pthread_cond_signal' /var/tmp/ccs18JIT.o(.text+0x39): undefined reference to `pthread_mutex_unlock' /var/tmp/ccs18JIT.o(.text+0x52): undefined reference to `pthread_testcancel' /var/tmp/ccs18JIT.o: In function `main': /var/tmp/ccs18JIT.o(.text+0x79): undefined reference to `pthread_mutex_lock' /var/tmp/ccs18JIT.o(.text+0x99): undefined reference to `pthread_create' /var/tmp/ccs18JIT.o(.text+0x10f): undefined reference to `pthread_cond_timedwait' /var/tmp/ccs18JIT.o(.text+0x164): undefined reference to `pthread_cancel' /var/tmp/ccs18JIT.o(.text+0x180): undefined reference to `pthread_join' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -pthread conftest.c -lpcap -lm -lncurses -lpthread >&5 gcc: unrecognized option `-pthread' ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -pthread conftest.c -lpcap -lm -lncurses -lpthread -lposix4 >&5 gcc: unrecognized option `-pthread' ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -thread conftest.c -lpcap -lm -lncurses >&5 gcc: unrecognized option `-thread' /var/tmp/cc93sgnv.o: In function `worker_thread': /var/tmp/cc93sgnv.o(.text+0x19): undefined reference to `pthread_mutex_lock' /var/tmp/cc93sgnv.o(.text+0x29): undefined reference to `pthread_cond_signal' /var/tmp/cc93sgnv.o(.text+0x39): undefined reference to `pthread_mutex_unlock' /var/tmp/cc93sgnv.o(.text+0x52): undefined reference to `pthread_testcancel' /var/tmp/cc93sgnv.o: In function `main': /var/tmp/cc93sgnv.o(.text+0x79): undefined reference to `pthread_mutex_lock' /var/tmp/cc93sgnv.o(.text+0x99): undefined reference to `pthread_create' /var/tmp/cc93sgnv.o(.text+0x10f): undefined reference to `pthread_cond_timedwait' /var/tmp/cc93sgnv.o(.text+0x164): undefined reference to `pthread_cancel' /var/tmp/cc93sgnv.o(.text+0x180): undefined reference to `pthread_join' configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -thread conftest.c -lpcap -lm -lncurses -lpthread >&5 gcc: unrecognized option `-thread' ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6524: gcc -o conftest -I/usr/pkg/include -thread conftest.c -lpcap -lm -lncurses -lpthread -lposix4 >&5 gcc: unrecognized option `-thread' ld: cannot find -lpthread configure:6527: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6518 "configure" #include "confdefs.h" /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 pdw Exp $"; #include #include #include #include #include #include #include static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static int return_value = -1; void *worker_thread(void *v) { /* Record successful return and signal parent to wake up. */ return_value = 0; pthread_mutex_lock(&mtx); pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) { sleep(1); pthread_testcancel(); } } /* Start a thread, and have it set a variable to some other value, then signal * a condition variable. If this doesn't happen within some set time, we assume * that something's gone badly wrong and abort (for instance, the thread never * got started). */ int main(void) { pthread_t thr; int res; struct timespec deadline = {0}; if ((res = pthread_mutex_lock(&mtx)) != 0 || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } /* Thread should now be running; we should wait on the condition * variable. */ do deadline.tv_sec = 2 + time(NULL); while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == EINTR); if (res != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } if ((res = pthread_cancel(thr)) != 0 || (res = pthread_join(thr, NULL)) != 0) { fprintf(stderr, "%s\n", strerror(res)); return -1; } return return_value; } configure:6554: result: no idea configure:6557: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-unknown-netbsdelf1.6.1 ac_cv_build_alias=i386-unknown-netbsdelf1.6.1 ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=-I/usr/pkg/include ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_gethostbyname=yes ac_cv_func_inet_aton=yes ac_cv_func_inet_pton=yes ac_cv_func_regcomp=yes ac_cv_func_select=yes ac_cv_func_strdup=yes ac_cv_func_strerror=yes ac_cv_func_strspn=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_pcap_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_dlpi_h=no ac_cv_header_sys_ioctl_h=yes ac_cv_header_sys_sockio_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_time_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_time=yes ac_cv_header_unistd_h=yes ac_cv_host=i386-unknown-netbsdelf1.6.1 ac_cv_host_alias=i386-unknown-netbsdelf1.6.1 ac_cv_lib_pcap_pcap_open_live=yes ac_cv_objext=o ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_AWK=awk ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_make_make_set=yes ac_cv_search_gethostbyaddr='none required' ac_cv_search_gethostbyaddr_r=no ac_cv_search_getnameinfo='none required' ac_cv_search_inet_aton='none required' ac_cv_search_inet_pton='none required' ac_cv_search_log=-lm ac_cv_search_socket='none required' ac_cv_target=i386-unknown-netbsdelf1.6.1 ac_cv_target_alias=i386-unknown-netbsdelf1.6.1 ac_cv_type_size_t=yes am_cv_CC_dependencies_compiler_type=gcc ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE "iftop" #define VERSION "0.16" #define IFTOP_VERSION "0.16" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_SOCKIO_H 1 #define HAVE_UNISTD_H 1 #define TIME_WITH_SYS_TIME 1 #define HAVE_REGCOMP 1 #define HAVE_SELECT 1 #define HAVE_STRDUP 1 #define HAVE_STRERROR 1 #define HAVE_STRSPN 1 #define HAVE_INET_ATON 1 #define HAVE_INET_PTON 1 #define SIZEOF_U_INT8_T 1 #define SIZEOF_U_INT16_T 2 #define SIZEOF_U_INT32_T 4 #define USE_FORKING_RESOLVER 1 #define HAVE_LIBPCAP 1 #define HAVE_PCAP_H 1 configure: exit 1 -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Sun Mar 07 20:46:46 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B05Ac-00016p-00; Sun, 07 Mar 2004 20:46:46 +0000 Date: Sun, 7 Mar 2004 20:46:46 +0000 From: Paul Warren To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040307204646.B1388@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040307120445.1d44cbcc@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Sun, Mar 07, 2004 at 12:04:45PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Mar 07, 2004 at 12:04:45PM -0600, John Thompson wrote: > On Sun, 07 Mar 2004 15:38:29 +0000 > Paul Warren wrote: > > > Sorry for the delay in repling, I've only just had a chance to look at > > this. I think I need to see more of your config.log. configure should > > attempt to compile a test program in 12 different ways. I suspect > > that at least one of those is actually compiling and it's the test > > program that's failing. Can you post the rest of the file? > > Certainly: OK, so it doesn't like the -pthread option, and it can't find libpthread. What does: locate libpthread tell you? If that reveals libpthread to be in a non-standard location, try doing: export CPPFLAGS=-L/some/wierd/directory before running configure. Paul From JohnThompson@new.rr.com Sun Mar 07 23:36:35 2004 Received: from ms-smtp-03.rdc-kc.rr.com ([24.94.166.129]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B07ow-0001HC-00 for iftop-users@lists.beasts.org; Sun, 07 Mar 2004 23:36:34 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-03.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i27NaUee015820 for ; Sun, 7 Mar 2004 17:36:30 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i27Na4Us098774 for ; Sun, 7 Mar 2004 17:36:04 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Sun, 7 Mar 2004 17:36:28 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040307173628.540dfc09@starfleet.os2.dhs.org> In-Reply-To: <20040307204646.B1388@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, 07 Mar 2004 20:46:46 +0000 Paul Warren wrote: > On Sun, Mar 07, 2004 at 12:04:45PM -0600, John Thompson wrote: > > On Sun, 07 Mar 2004 15:38:29 +0000 > > Paul Warren wrote: > > > > > Sorry for the delay in repling, I've only just had a chance to > > > look at this. I think I need to see more of your config.log. > > > configure should attempt to compile a test program in 12 different > > > ways. I suspect that at least one of those is actually compiling > > > and it's the test program that's failing. Can you post the rest > > > of the file? > > > > Certainly: > > OK, so it doesn't like the -pthread option, and it can't find > libpthread. What does: > > locate libpthread > > tell you? bash-2.05b# locate libpthread /usr/pkg/pthreads/lib/libpthread.a /usr/pkg/pthreads/lib/libpthread.so /usr/pkg/pthreads/lib/libpthread.so.1 /usr/pkg/pthreads/lib/libpthread.so.1.60 > If that reveals libpthread to be in a non-standard location, > try doing: > > export CPPFLAGS=-L/some/wierd/directory > > before running configure. No joy: bash-2.05b# export CPPFLAGS=-L/usr/pkg/pthreads/lib bash-2.05b# ./configure [...] checking for library containing getnameinfo... none required checking for library containing gethostbyaddr_r... no checking for library containing gethostbyaddr... none required checking where to find pcap.h... /include checking for pcap_open_live in -lpcap... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... no idea configure: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. bash-2.05b# -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Mon Mar 08 09:23:36 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B0Gz1-00052F-00; Mon, 08 Mar 2004 09:23:35 +0000 Date: Mon, 8 Mar 2004 09:23:34 +0000 From: Paul Warren To: John Thompson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040308092333.A15731@sphinx.mythic-beasts.com> References: <20040228191543.F26383@sphinx.mythic-beasts.com> <20040228143141.2658a512@starfleet.os2.dhs.org> <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040307173628.540dfc09@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Sun, Mar 07, 2004 at 05:36:28PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Mar 07, 2004 at 05:36:28PM -0600, John Thompson wrote: > > If that reveals libpthread to be in a non-standard location, > > try doing: > > > > export CPPFLAGS=-L/some/wierd/directory > > > > before running configure. Sorry, my mistake, that should be LDFLAGS, not CPPFLAGS. If that still doesn't work, can you include the output from config.log with that option set. thanks, Paul From pdw@sphinx.mythic-beasts.com Fri Mar 12 15:20:38 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B1oSj-0004za-00; Fri, 12 Mar 2004 15:20:37 +0000 Date: Fri, 12 Mar 2004 15:20:37 +0000 From: Paul Warren To: iftop-users@lists.beasts.org Cc: John Thompson Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040312152036.F29340@sphinx.mythic-beasts.com> References: <20040301094822.B13593@sphinx.mythic-beasts.com> <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040308185234.05dc0b04@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Mon, Mar 08, 2004 at 06:52:34PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: This email didn't make it onto the mailing list, probably due to the size limit. We're trying to persuade iftop to compile on NetBSD, which like any decent UNIX has its own, uniquely broken pthread implementation. This one doesn't seem to be able to spell "pthread_cancel". Chris, as someone who's suffered more at the hands of broken pthread implementations, is this something you've seen before? Paul On Mon, Mar 08, 2004 at 06:52:34PM -0600, John Thompson wrote: > configure:6465: gcc -o conftest -g -O2 -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses >&5 > configure:6468: $? = 0 configure:6471: test -s conftest > configure:6474: $? = 0 > configure:6498: result: -lncurses > configure:6504: checking how to compile a working program with POSIX > threads configure:6524: gcc -o conftest -g -O2 -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses > >&5/var/tmp/ccbn0NX0.o: In function `worker_thread': > /tmp/iftop-0.16/configure:6542: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6543: undefined reference > to `pthread_cond_signal'/tmp/iftop-0.16/configure:6544: undefined > reference to `pthread_mutex_unlock'/tmp/iftop-0.16/configure:6547: > undefined reference to `pthread_testcancel'/var/tmp/ccbn0NX0.o: In > function `main':/tmp/iftop-0.16/configure:6559: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6559: undefined reference > to `pthread_create'/tmp/iftop-0.16/configure:6569: undefined reference > to `pthread_cond_timedwait'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_cancel'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_join' configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > >&5 > /usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_errlist[]; include for correct > reference/usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_nerr; include for correct > reference/var/tmp/ccL8U8Of.o: In function > `worker_thread':/tmp/iftop-0.16/configure:6547: undefined reference to > `pthread_testcancel'/var/tmp/ccL8U8Of.o: In function `main': > /tmp/iftop-0.16/configure:6576: undefined reference to `pthread_cancel' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > -lposix4 >&5 ld: cannot find -lposix4 > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -mt -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses >&5 cc1: > Invalid option `t' configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -mt -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > >&5 > cc1: Invalid option `t' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -mt -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > -lposix4 >&5 cc1: Invalid option `t' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -pthread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses >&5 gcc: > unrecognized option `-pthread'/var/tmp/ccVLEfkq.o: In function > `worker_thread':/tmp/iftop-0.16/configure:6542: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6543: undefined reference > to `pthread_cond_signal'/tmp/iftop-0.16/configure:6544: undefined > reference to `pthread_mutex_unlock'/tmp/iftop-0.16/configure:6547: > undefined reference to `pthread_testcancel'/var/tmp/ccVLEfkq.o: In > function `main':/tmp/iftop-0.16/configure:6559: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6559: undefined reference > to `pthread_create'/tmp/iftop-0.16/configure:6569: undefined reference > to `pthread_cond_timedwait'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_cancel'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_join' configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -pthread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > >&5 > gcc: unrecognized option `-pthread' > /usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_errlist[]; include for correct > reference/usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_nerr; include for correct > reference/var/tmp/cc5PSfvD.o: In function > `worker_thread':/tmp/iftop-0.16/configure:6547: undefined reference to > `pthread_testcancel'/var/tmp/cc5PSfvD.o: In function `main': > /tmp/iftop-0.16/configure:6576: undefined reference to `pthread_cancel' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -pthread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > -lposix4 >&5 gcc: unrecognized option `-pthread' > ld: cannot find -lposix4 > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -thread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses >&5 gcc: > unrecognized option `-thread'/var/tmp/ccBEe91M.o: In function > `worker_thread':/tmp/iftop-0.16/configure:6542: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6543: undefined reference > to `pthread_cond_signal'/tmp/iftop-0.16/configure:6544: undefined > reference to `pthread_mutex_unlock'/tmp/iftop-0.16/configure:6547: > undefined reference to `pthread_testcancel'/var/tmp/ccBEe91M.o: In > function `main':/tmp/iftop-0.16/configure:6559: undefined reference to > `pthread_mutex_lock'/tmp/iftop-0.16/configure:6559: undefined reference > to `pthread_create'/tmp/iftop-0.16/configure:6569: undefined reference > to `pthread_cond_timedwait'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_cancel'/tmp/iftop-0.16/configure:6576: undefined > reference to `pthread_join' configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -thread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > >&5 > gcc: unrecognized option `-thread' > /usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_errlist[]; include for correct > reference/usr/pkg/pthreads/lib//libpthread.so: warning: reference to > compatibility sys_nerr; include for correct > reference/var/tmp/ccFxVAF0.o: In function > `worker_thread':/tmp/iftop-0.16/configure:6547: undefined reference to > `pthread_testcancel'/var/tmp/ccFxVAF0.o: In function `main': > /tmp/iftop-0.16/configure:6576: undefined reference to `pthread_cancel' > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6524: gcc -o conftest -g -O2 -thread -L/usr/pkg/pthreads/lib/ > -I/usr/pkg/pthreads/include conftest.c -lpcap -lm -lncurses -lpthread > -lposix4 >&5 gcc: unrecognized option `-thread' > ld: cannot find -lposix4 > configure:6527: $? = 1 > configure: program exited with status 1 > configure: failed program was: > #line 6518 "configure" > #include "confdefs.h" > /* > * pthread.c: > * Tiny test program to see whether POSIX threads work. > */ > > static const char rcsid[] = "$Id: pthread.c,v 1.3 2004/01/20 09:51:48 > pdw Exp $"; > > #include > > #include > #include > #include > #include > #include > #include > > static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; > static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > static int return_value = -1; > > void *worker_thread(void *v) { > /* Record successful return and signal parent to wake up. */ > return_value = 0; > pthread_mutex_lock(&mtx); > pthread_cond_signal(&cond); > pthread_mutex_unlock(&mtx); > while (1) { > sleep(1); > pthread_testcancel(); > } > } > > /* Start a thread, and have it set a variable to some other value, then > signal * a condition variable. If this doesn't happen within some set > time, we assume * that something's gone badly wrong and abort (for > instance, the thread never * got started). */ > int main(void) { > pthread_t thr; > int res; > struct timespec deadline = {0}; > if ((res = pthread_mutex_lock(&mtx)) != 0 > || (res = pthread_create(&thr, NULL, worker_thread, NULL)) != 0) > { fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > /* Thread should now be running; we should wait on the condition > * variable. */ > do > deadline.tv_sec = 2 + time(NULL); > while ((res = pthread_cond_timedwait(&cond, &mtx, &deadline)) == > EINTR); > if (res != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > if ((res = pthread_cancel(thr)) != 0 > || (res = pthread_join(thr, NULL)) != 0) { > fprintf(stderr, "%s\n", strerror(res)); > return -1; > } > > return return_value; > } > configure:6554: result: no idea > configure:6557: error: can't figure out how to compile with POSIX > threads If your system actually supports POSIX threads, this means > we've messed up. > > ## ---------------- ## > ## Cache variables. ## > ## ---------------- ## > > ac_cv_build=i386-unknown-netbsdelf1.6.1 > ac_cv_build_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_c_compiler_gnu=yes > ac_cv_c_const=yes > ac_cv_env_CC_set= > ac_cv_env_CC_value= > ac_cv_env_CFLAGS_set= > ac_cv_env_CFLAGS_value= > ac_cv_env_CPPFLAGS_set=set > ac_cv_env_CPPFLAGS_value=-L/usr/pkg/pthreads/lib/ > ac_cv_env_CPP_set= > ac_cv_env_CPP_value= > ac_cv_env_LDFLAGS_set=set > ac_cv_env_LDFLAGS_value=-I/usr/pkg/pthreads/include > ac_cv_env_build_alias_set= > ac_cv_env_build_alias_value= > ac_cv_env_host_alias_set= > ac_cv_env_host_alias_value= > ac_cv_env_target_alias_set= > ac_cv_env_target_alias_value= > ac_cv_exeext= > ac_cv_func_gethostbyname=yes > ac_cv_func_inet_aton=yes > ac_cv_func_inet_pton=yes > ac_cv_func_regcomp=yes > ac_cv_func_select=yes > ac_cv_func_strdup=yes > ac_cv_func_strerror=yes > ac_cv_func_strspn=yes > ac_cv_header_inttypes_h=yes > ac_cv_header_memory_h=yes > ac_cv_header_pcap_h=yes > ac_cv_header_stdc=yes > ac_cv_header_stdint_h=yes > ac_cv_header_stdlib_h=yes > ac_cv_header_string_h=yes > ac_cv_header_strings_h=yes > ac_cv_header_sys_dlpi_h=no > ac_cv_header_sys_ioctl_h=yes > ac_cv_header_sys_sockio_h=yes > ac_cv_header_sys_stat_h=yes > ac_cv_header_sys_time_h=yes > ac_cv_header_sys_types_h=yes > ac_cv_header_time=yes > ac_cv_header_unistd_h=yes > ac_cv_host=i386-unknown-netbsdelf1.6.1 > ac_cv_host_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_lib_pcap_pcap_open_live=yes > ac_cv_objext=o > ac_cv_path_install='/usr/bin/install -c' > ac_cv_prog_AWK=awk > ac_cv_prog_CPP='gcc -E' > ac_cv_prog_ac_ct_CC=gcc > ac_cv_prog_cc_g=yes > ac_cv_prog_cc_stdc= > ac_cv_prog_make_make_set=yes > ac_cv_search_gethostbyaddr='none required' > ac_cv_search_gethostbyaddr_r=no > ac_cv_search_getnameinfo='none required' > ac_cv_search_inet_aton='none required' > ac_cv_search_inet_pton='none required' > ac_cv_search_log=-lm > ac_cv_search_socket='none required' > ac_cv_target=i386-unknown-netbsdelf1.6.1 > ac_cv_target_alias=i386-unknown-netbsdelf1.6.1 > ac_cv_type_size_t=yes > am_cv_CC_dependencies_compiler_type=gcc > > ## ----------- ## > ## confdefs.h. ## > ## ----------- ## > > #define PACKAGE_NAME "" > #define PACKAGE_TARNAME "" > #define PACKAGE_VERSION "" > #define PACKAGE_STRING "" > #define PACKAGE_BUGREPORT "" > #define PACKAGE "iftop" > #define VERSION "0.16" > #define IFTOP_VERSION "0.16" > #define STDC_HEADERS 1 > #define HAVE_SYS_TYPES_H 1 > #define HAVE_SYS_STAT_H 1 > #define HAVE_STDLIB_H 1 > #define HAVE_STRING_H 1 > #define HAVE_MEMORY_H 1 > #define HAVE_STRINGS_H 1 > #define HAVE_INTTYPES_H 1 > #define HAVE_STDINT_H 1 > #define HAVE_UNISTD_H 1 > #define HAVE_SYS_IOCTL_H 1 > #define HAVE_SYS_TIME_H 1 > #define HAVE_SYS_SOCKIO_H 1 > #define HAVE_UNISTD_H 1 > #define TIME_WITH_SYS_TIME 1 > #define HAVE_REGCOMP 1 > #define HAVE_SELECT 1 > #define HAVE_STRDUP 1 > #define HAVE_STRERROR 1 > #define HAVE_STRSPN 1 > #define HAVE_INET_ATON 1 > #define HAVE_INET_PTON 1 > #define SIZEOF_U_INT8_T 1 > #define SIZEOF_U_INT16_T 2 > #define SIZEOF_U_INT32_T 4 > #define USE_FORKING_RESOLVER 1 > #define HAVE_LIBPCAP 1 > #define HAVE_PCAP_H 1 > > configure: exit 1 > > > The proper fix is to add a --with-pthread option, much like the > > --with-libpcap option to configure.in. Patches gratefully received - > > I won't be doing this myself as I have a broken hand and typing is > > painfully slow... > > > Bummer. I'll help if I can -- assuming I can get this working... :-) > > -- > > -John (JohnThompson@new.rr.com) From chris@ex-parrot.com Fri Mar 12 15:28:29 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1oaL-0005Xl-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 15:28:29 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2CFv7T6010448; Fri, 12 Mar 2004 15:57:08 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B1oaK-00033h-00; Fri, 12 Mar 2004 15:28:28 +0000 Date: Fri, 12 Mar 2004 15:28:28 +0000 From: Chris Lightfoot To: Paul Warren Cc: iftop-users@lists.beasts.org, John Thompson Subject: Re: [Iftop-users] iftop 0.16 Message-ID: References: <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312152036.F29340@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 03:20:37PM +0000, Paul Warren wrote: > This email didn't make it onto the mailing list, probably due to the > size limit. We're trying to persuade iftop to compile on NetBSD, which > like any decent UNIX has its own, uniquely broken pthread > implementation. This one doesn't seem to be able to spell > "pthread_cancel". hmm. From the transcript it looks like it's failing to link with the pthread library. The thing to do is probably to figure out how to compile a pthread program (like the test one), perhaps from the pthread(3) man page, then try to figure out why configure isn't figuring it out. Are the NetBSD man pages online? -- ``The West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often forget this fact, non-Westerners never do.'' (Samuel Huntington) From pdw@sphinx.mythic-beasts.com Fri Mar 12 15:33:50 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B1ofU-0005zH-00; Fri, 12 Mar 2004 15:33:48 +0000 Date: Fri, 12 Mar 2004 15:33:48 +0000 From: Paul Warren To: Chris Lightfoot Cc: iftop-users@lists.beasts.org, John Thompson Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040312153348.H29340@sphinx.mythic-beasts.com> References: <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from chris@ex-parrot.com on Fri, Mar 12, 2004 at 03:28:28PM +0000 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 03:28:28PM +0000, Chris Lightfoot wrote: > On Fri, Mar 12, 2004 at 03:20:37PM +0000, Paul Warren wrote: > > This email didn't make it onto the mailing list, probably due to the > > size limit. We're trying to persuade iftop to compile on NetBSD, which > > like any decent UNIX has its own, uniquely broken pthread > > implementation. This one doesn't seem to be able to spell > > "pthread_cancel". > > hmm. From the transcript it looks like it's failing to > link with the pthread library. The thing to do is probably > to figure out how to compile a pthread program (like the > test one), perhaps from the pthread(3) man page, then > try to figure out why configure isn't figuring it out. Are > the NetBSD man pages online? Hmm. I think previously it was failing to link against loads of things, and now it's just down to that one function, BICBW. Paul From chris@ex-parrot.com Fri Mar 12 15:38:45 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1okH-0006Nf-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 15:38:45 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2CG7NT6010490; Fri, 12 Mar 2004 16:07:23 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B1okG-00036t-00; Fri, 12 Mar 2004 15:38:44 +0000 Date: Fri, 12 Mar 2004 15:38:44 +0000 From: Chris Lightfoot To: Paul Warren Cc: iftop-users@lists.beasts.org, John Thompson Subject: Re: [Iftop-users] iftop 0.16 Message-ID: References: <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312153348.H29340@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 03:33:48PM +0000, Paul Warren wrote: > On Fri, Mar 12, 2004 at 03:28:28PM +0000, Chris Lightfoot wrote: > > On Fri, Mar 12, 2004 at 03:20:37PM +0000, Paul Warren wrote: > > > This email didn't make it onto the mailing list, probably due to the > > > size limit. We're trying to persuade iftop to compile on NetBSD, which > > > like any decent UNIX has its own, uniquely broken pthread > > > implementation. This one doesn't seem to be able to spell > > > "pthread_cancel". > > > > hmm. From the transcript it looks like it's failing to > > link with the pthread library. The thing to do is probably > > to figure out how to compile a pthread program (like the > > test one), perhaps from the pthread(3) man page, then > > try to figure out why configure isn't figuring it out. Are > > the NetBSD man pages online? > > Hmm. I think previously it was failing to link against loads of things, > and now it's just down to that one function, BICBW. Quite right, I was only reading the top of the log :( According to the man pages for -current on http://www.netbsd.org/, the implementation supports pthread_cancel and pthread_testcancel, and all you need to do is link with -lpthread. Dunno about older versions though. Can you try compiling the test program (config/pthread.c) with, cc -lpthread -g -Wall -o pthread pthread.c and tell me what you get? -- Drunk Gets Nine Months in Violin Case (newspaper headline) From JohnThompson@new.rr.com Fri Mar 12 17:05:32 2004 Received: from ms-smtp-01.rdc-kc.rr.com ([24.94.166.115]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1q6G-0003h9-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 17:05:32 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-01.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i2CH5S4D013929 for ; Fri, 12 Mar 2004 11:05:28 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i2CH4ZvD043038 for ; Fri, 12 Mar 2004 11:04:35 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Fri, 12 Mar 2004 11:05:26 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040312110526.7c4a83e8@starfleet.os2.dhs.org> In-Reply-To: References: <20040301072653.48f6958c@starfleet.os2.dhs.org> <20040307153829.E27687@sphinx.mythic-beasts.com> <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, 12 Mar 2004 15:28:28 +0000 Chris Lightfoot wrote: > On Fri, Mar 12, 2004 at 03:20:37PM +0000, Paul Warren wrote: > > This email didn't make it onto the mailing list, probably due to the > > size limit. We're trying to persuade iftop to compile on NetBSD, > > which like any decent UNIX has its own, uniquely broken pthread > > implementation. This one doesn't seem to be able to spell > > "pthread_cancel". > > hmm. From the transcript it looks like it's failing to > link with the pthread library. The thing to do is probably > to figure out how to compile a pthread program (like the > test one), perhaps from the pthread(3) man page, then > try to figure out why configure isn't figuring it out. Are > the NetBSD man pages online? Yes: http://netbsd.gw.com/cgi-bin/man-cgi?++NetBSD-current -- -John (JohnThompson@new.rr.com) From JohnThompson@new.rr.com Fri Mar 12 17:16:11 2004 Received: from ms-smtp-03.rdc-kc.rr.com ([24.94.166.129]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1qGZ-0004Ot-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 17:16:11 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-03.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i2CHG6tq018202 for ; Fri, 12 Mar 2004 11:16:06 -0600 (CST) Received: from amayatra.os2.dhs.org (localhost [127.0.0.1]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with ESMTP id i2CHFD4c043193 for ; Fri, 12 Mar 2004 11:15:13 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Received: (from smmsp@localhost) by amayatra.os2.dhs.org (8.12.11/8.12.8/Submit) id i2CHFCnR043192 for ; Fri, 12 Mar 2004 12:15:12 -0500 (EST) (envelope-from JohnThompson@new.rr.com) X-Authentication-Warning: amayatra.os2.dhs.org: smmsp set sender to using -f Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.9/8.12.9+MIMEDefang) with ESMTP id i2CHFC6N043190; Fri, 12 Mar 2004 12:15:12 -0500 (EST) Date: Fri, 12 Mar 2004 11:16:03 -0600 From: John Thompson To: Chris Lightfoot Cc: Paul Warren , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040312111603.79750ecd@starfleet.os2.dhs.org> In-Reply-To: References: <20040307120445.1d44cbcc@starfleet.os2.dhs.org> <20040307204646.B1388@sphinx.mythic-beasts.com> <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, 12 Mar 2004 15:38:44 +0000 Chris Lightfoot wrote: > Can you try compiling the test program (config/pthread.c) > with, > > cc -lpthread -g -Wall -o pthread pthread.c > > and tell me what you get? Sure: -bash-2.05b$ cc -I/usr/pkg/include -lpthread -g -Wall -o pthread pthread.c pthread.c: In function `worker_thread': pthread.c:29: warning: implicit declaration of function `pthread_testcancel' pthread.c: In function `main': pthread.c:58: warning: implicit declaration of function`pthread_cancel' ld: cannot find -lpthread -- -John (JohnThompson@new.rr.com) From chris@ex-parrot.com Fri Mar 12 17:20:20 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1qKZ-0004fq-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 17:20:19 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2CHmvT6010790; Fri, 12 Mar 2004 17:48:57 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B1qKX-0003ZW-00; Fri, 12 Mar 2004 17:20:17 +0000 Date: Fri, 12 Mar 2004 17:20:17 +0000 From: Chris Lightfoot To: John Thompson Cc: Paul Warren , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: References: <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312111603.79750ecd@starfleet.os2.dhs.org> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 11:16:03AM -0600, John Thompson wrote: > On Fri, 12 Mar 2004 15:38:44 +0000 > Chris Lightfoot wrote: > > > > Can you try compiling the test program (config/pthread.c) > > with, > > > > cc -lpthread -g -Wall -o pthread pthread.c > > > > and tell me what you get? > > Sure: > > -bash-2.05b$ cc -I/usr/pkg/include -lpthread -g -Wall -o pthread > pthread.c pthread.c: In function `worker_thread': > pthread.c:29: warning: implicit declaration of function `pthread_testcancel' > pthread.c: In function `main': > pthread.c:58: warning: implicit declaration of function`pthread_cancel' > ld: cannot find -lpthread hmm. Are you running -current? Is there a man page for pthread_cancel on your system? -- ``There's nothing I like less than bad arguments for a view that I hold dear.'' (Daniel Dennett) From JohnThompson@new.rr.com Fri Mar 12 18:01:02 2004 Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1qxx-00071e-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 18:01:01 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i2CI0vOp010497 for ; Fri, 12 Mar 2004 12:00:57 -0600 (CST) Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with SMTP id i2CI041T043809 for ; Fri, 12 Mar 2004 12:00:04 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Date: Fri, 12 Mar 2004 12:00:55 -0600 From: John Thompson To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040312120055.4b6b1640@starfleet.os2.dhs.org> In-Reply-To: References: <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, 12 Mar 2004 17:20:17 +0000 Chris Lightfoot wrote: > hmm. Are you running -current? Is there a man page for > pthread_cancel on your system? I am running NetBSD 1.6.1. No man entry for pthread_cancel. Perhaps this function was added to -curent since I installed NetBSD 1.6.1 last summer... -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Fri Mar 12 20:39:20 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B1tR8-0006lO-00; Fri, 12 Mar 2004 20:39:18 +0000 Date: Fri, 12 Mar 2004 20:39:18 +0000 From: Paul Warren To: John Thompson Cc: Chris Lightfoot , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040312203917.A24855@sphinx.mythic-beasts.com> References: <20040307173628.540dfc09@starfleet.os2.dhs.org> <20040308092333.A15731@sphinx.mythic-beasts.com> <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040312111603.79750ecd@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Fri, Mar 12, 2004 at 11:16:03AM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 11:16:03AM -0600, John Thompson wrote: > > > Can you try compiling the test program (config/pthread.c) > > with, > > > > cc -lpthread -g -Wall -o pthread pthread.c > > > > and tell me what you get? > > Sure: > > -bash-2.05b$ cc -I/usr/pkg/include -lpthread -g -Wall -o pthread > pthread.c pthread.c: In function `worker_thread': > pthread.c:29: warning: implicit declaration of function `pthread_testcancel' > pthread.c: In function `main': > pthread.c:58: warning: implicit declaration of function`pthread_cancel' > ld: cannot find -lpthread ^^^^^^^^^^^^^^^^^^^^^^^^^ Try: cc -I/usr/pkg/include -L/usr/pkg/wotsit -lpthread -g -Wall -o pthread Paul From JohnThompson@new.rr.com Fri Mar 12 21:14:07 2004 Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1typ-00009E-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 21:14:07 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i2CLE3Op024560 for ; Fri, 12 Mar 2004 15:14:03 -0600 (CST) Received: from amayatra.os2.dhs.org (localhost [127.0.0.1]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with ESMTP id i2CLD8Wq046462 for ; Fri, 12 Mar 2004 15:13:08 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Received: (from smmsp@localhost) by amayatra.os2.dhs.org (8.12.11/8.12.8/Submit) id i2CLD5Yn046459 for ; Fri, 12 Mar 2004 16:13:05 -0500 (EST) (envelope-from JohnThompson@new.rr.com) X-Authentication-Warning: amayatra.os2.dhs.org: smmsp set sender to using -f Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.9/8.12.9+MIMEDefang) with ESMTP id i2CLD5wF046457; Fri, 12 Mar 2004 16:13:05 -0500 (EST) Date: Fri, 12 Mar 2004 15:13:57 -0600 From: John Thompson To: Paul Warren Cc: iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040312151357.485eaa3c@starfleet.os2.dhs.org> In-Reply-To: <20040312205013.A26110@sphinx.mythic-beasts.com> References: <20040308171417.795c28ed@starfleet.os2.dhs.org> <20040309000832.A28146@sphinx.mythic-beasts.com> <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, 12 Mar 2004 20:50:14 +0000 Paul Warren wrote: > > -bash-2.05b$ cc -I/usr/pkg/include -L/usr/pkg/lib -lpthread -g -Wall > > -o pthread/usr/lib/crt0.o: In function `___start': > > /usr/lib/crt0.o(.text+0xb8): undefined reference to `main' > > -bash-2.05b$ > > Sorry, that should be: > > cc -I/usr/pkg/include -L/usr/pkg/lib -lpthread -g -Wall -o pthread > pthread.c OK, now it seems to build: -bash-2.05b$ cc -I/usr/pkg/include -L/usr/pkg/lib -lpthread -g -Wall -o pthread pthread.c -bash-2.05b$ls -l pthread -rwxr-x--- 1 john wheel 19808 Mar 12 15:02 pthread I assume there should be some way to tweak the makefile to show it where to look? -- -John (JohnThompson@new.rr.com) From pdw@sphinx.mythic-beasts.com Fri Mar 12 22:39:49 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B1vJi-00049M-00; Fri, 12 Mar 2004 22:39:46 +0000 Date: Fri, 12 Mar 2004 22:39:46 +0000 From: Paul Warren To: John Thompson Cc: iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040312223940.C26110@sphinx.mythic-beasts.com> References: <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> <20040312151357.485eaa3c@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040312151357.485eaa3c@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Fri, Mar 12, 2004 at 03:13:57PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 03:13:57PM -0600, John Thompson wrote: > OK, now it seems to build: > > -bash-2.05b$ cc -I/usr/pkg/include -L/usr/pkg/lib -lpthread -g -Wall -o > pthread pthread.c > -bash-2.05b$ls -l pthread > -rwxr-x--- 1 john wheel 19808 Mar 12 15:02 pthread Hmm, well in that case it should be possible to configure to get the test to compile. At the risk of trying something we've already tried, what happens if you do: CPPFLAGS=-I/usr/pkg/include && LDFLAGS=-L/usr/pkg/lib && ./configure Please send the log if it doesn't work. Paul From JohnThompson@new.rr.com Fri Mar 12 23:06:47 2004 Received: from ms-smtp-03.rdc-kc.rr.com ([24.94.166.129]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B1vjo-0005Tb-00 for iftop-users@lists.beasts.org; Fri, 12 Mar 2004 23:06:45 +0000 Received: from amayatra.os2.dhs.org (CPE-24-166-133-96.new.rr.com [24.166.133.96]) by ms-smtp-03.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id i2CN6etq001743 for ; Fri, 12 Mar 2004 17:06:40 -0600 (CST) Received: from amayatra.os2.dhs.org (localhost [127.0.0.1]) by amayatra.os2.dhs.org (8.12.11/8.12.8) with ESMTP id i2CN5jEf047623 for ; Fri, 12 Mar 2004 17:05:45 -0600 (CST) (envelope-from JohnThompson@new.rr.com) Received: (from smmsp@localhost) by amayatra.os2.dhs.org (8.12.11/8.12.8/Submit) id i2CN5gnP047621 for ; Fri, 12 Mar 2004 18:05:42 -0500 (EST) (envelope-from JohnThompson@new.rr.com) X-Authentication-Warning: amayatra.os2.dhs.org: smmsp set sender to using -f Received: from starfleet.os2.dhs.org (starfleet.os2.dhs.org [192.168.0.2]) by amayatra.os2.dhs.org (8.12.9/8.12.9+MIMEDefang) with ESMTP id i2CN5fPM047619; Fri, 12 Mar 2004 18:05:42 -0500 (EST) Date: Fri, 12 Mar 2004 17:06:34 -0600 From: John Thompson To: Paul Warren Cc: iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-Id: <20040312170634.16783a6f@starfleet.os2.dhs.org> In-Reply-To: <20040312223940.C26110@sphinx.mythic-beasts.com> References: <20040308185234.05dc0b04@starfleet.os2.dhs.org> <20040312152036.F29340@sphinx.mythic-beasts.com> <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> <20040312151357.485eaa3c@starfleet.os2.dhs.org> <20040312223940.C26110@sphinx.mythic-beasts.com> Organization: The Crimson Permanent Assurance X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Fri__12_Mar_2004_17_06_34_-0600_aIoSfOFq3nyhN.Jn" X-Sanitizer: This message has passed the MIMEDefang sanitizer. X-Sanitizer-URL: http://www.os2.dhs.org/~sysnet/ X-Sanitizer-Version: MIMEDefang v2.39 X-Sanitizer-Config-Version: 1.2.2 X-Scanned-By: MIMEDefang 2.39 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --Multipart=_Fri__12_Mar_2004_17_06_34_-0600_aIoSfOFq3nyhN.Jn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 12 Mar 2004 22:39:46 +0000 Paul Warren wrote: > On Fri, Mar 12, 2004 at 03:13:57PM -0600, John Thompson wrote: > > OK, now it seems to build: > > > > -bash-2.05b$ cc -I/usr/pkg/include -L/usr/pkg/lib -lpthread -g -Wall > > -o pthread pthread.c > > -bash-2.05b$ls -l pthread > > -rwxr-x--- 1 john wheel 19808 Mar 12 15:02 pthread > > Hmm, well in that case it should be possible to configure to get the > test to compile. At the risk of trying something we've already > tried, what happens if you do: > > CPPFLAGS=-I/usr/pkg/include && LDFLAGS=-L/usr/pkg/lib && ./configure > > Please send the log if it doesn't work. No joy: checking for pcap.h... yes checking for a curses library containing mvchgat... -lncurses checking how to compile a working program with POSIX threads... no idea configure: error: can't figure out how to compile with POSIX threads If your system actually supports POSIX threads, this means we've messed up. config.log attached... -- -John (JohnThompson@new.rr.com) --Multipart=_Fri__12_Mar_2004_17_06_34_-0600_aIoSfOFq3nyhN.Jn Content-Type: application/x-gzip; name="config.log.gz" Content-Disposition: attachment; filename="config.log.gz" Content-Transfer-Encoding: base64 H4sICIJBUkAAA2NvbmZpZy5sb2cA7V3rdts4kv6vp8DY2djOWhLvkpxxdtW2OtF0fFlJTnd6dw+b IiGJMUVqeJHt6el3nwJISgQFWrJ7zul2Ap/EtgoFoKpQqPpwoTmauRGauB5GduDHlutHyPIf0BxH kTXFEVqEgZPY2EHjB+CYL4AzjNDdDH7WwsT3XX9Kak7caRLiYxQHyHId5OBxMp2SMneyLkZz6xaa tNDcjWL4tVGr9WN0Z0XIDrEV552sGoNe7Bkpr02xj8Oc4/3lDeomcUA4kdLQ1QZCfX8Z2FbsBj6R cm75DvJcH9PKNYReoUZzLUattr+P6vkX2t8nn689K54E4byRfWbKa7Mgin1rjtEpimZuiGsJ/VSf A8FV20b+OYTPcsNoyDkhAsIljr8bnueU5YqScqJD2uIR2pdP0GiWoL8lHpJb8O9ENk60Fjo7HyFF klREvqLbB88K/5tWOWkmUdjE94sgjKNmFNrN6CEiP9Lmm7T5phXasyaRsZmNXzPVoEZrj12/mQm2 yHUpEn+ivZ6ixL/1gzu/lhaSNhHzteZYNUuZ6rd8BhiNJb5vTnEMMrv+JCgwEGNTUmUXpPm5Zc/I ED8qQxB5eIk9fguJ7y7BmzGvhdp1d/ThBOUN5R8Lv5KSxe20TPLAD70icRbMcfNLMPObVwvsX00m ro03yyJnXmzli7W0ml+UEMsNraGYkkxbZB135bpnATh1jKM42nDezH1Xvn8iK5p+guwZtm/J9Bwn rucgGIIYz1H8sMAMq6GeoBBHiRefUM+oZ9ap+zgeRw72JqmvF+u05ELzZCQrW2/rT2+9oxZaj60Q /KeqfVVqPbl9VStKD+EAghXMpDqZORBdxhAmIULGlucxtToFTVaulzGiul3k1SSj0MPdDMczHGbD gP2lGwb+HPsxgqgcWT6jkKZ11t084IgpayslwafW3W2RQ5fldW0/eLzy/PdU9n9P5VJdrdM+AXoC 8XwdV0rNS+118xtdtznWJmkIRRB50KtfL7o/9H5jqqjtSiu3VKNsZZsZ3ZaubIhbZjGUdftsGQT5 cvtnq6SLSKiC/Mbyd2gbMN+zUvTXpoOXTT8Bx3v3Wq8pjY7eUJk6MvT/6r8g1EksWcuaWpbbuIny SAFRGUULbEeNGmHN+0w7ITlKllRZR4ch9rAVQUo7zBKdP1aP2N5afCFyfT6VhQAqjG44TejsAJjx S/3TAZklgCWIfEwzSq6izJC1drV1HTyxYEhQkMSLJGaq6XIqFHwRMgm0DfhEpGLYNK5K7UIUshpB qe2OwvFP+FYU7S4IbyO2FijSaG60JksyTwQZYESFRyuyonIEuMNgakCEYRBFmRwlE8uKXjGnoahs 5iiBpHePggnC99hOYgviKCuFKmXjHqxMvMXcsqpyddULcjEFRjmyr6UKxl+wHVMUzIpFMhQVy2aF KcvSbvNkUYoJiDGRIsvVVk/odCM+QIDu2g+YBkiQ2kEyReN6hKKBr1Ij16N1bVZEjTtDFb0yBymK oXO0IlJato0XEG7rjA8p7c5Kifr0UTU63JilkLy7RY0Od2hUqTLIK6qqF8WqXylc0dKPJyDYwiIY EochONUYTwgY+2WOD9g225yIhCYWDKxD1ljT0JqTxcpJbd+d+BCMkGnaCy+JyH9YwNizAHLWHNf2 se+4k2LbmtEqe3b8AEAFHNv1bS9xiEulKyeS+JiqReAC3lYs05nI4GDArg727Yd166XkpRfxXLms YzCo8I5EcFg+ZqFuEWKwgQ1rzoBxc4MEcjoUveIYsCzcATZ0fWtNEtct2/QDH9/DghTySmN2gi4D iAywcKFrYjCmA2slOw7CB6auIe88nnQdCr1JaG/FugfDnI0NJcKAR41ZgfrXsmDvmO47bcbUoGWx uCWr25RvkUy7abaWZmytqSnPNhuFR08yW0uT/31ma3XKaLN7OeyD/82w5UCo2kgAbWmrOdp8ONXu tDYzWh5NHstrHUnitdeRlJNsD4NUZIt0bg25OlJ3DK0cMh6iJllAgTkZxlZrl1iYc7f5srfVbWG6 0za4NTvVyIWvAyy54pesQux47vhFKxDCry9YgTmeQ9B6wQqkI/CS57Hrxy8+FMWO67/kQJT4kEGd l6KAKinFpQdJBG5gx15jBtDXGsPqNX5g2FVtd02Am7cUUiVN2qIJsPAWqaqkK9Wa6EaFJgCSIwDg mOE2tiE9YOEhPZXZlyjJIEs6J7VmcjCM8iOKbAxJ7M7xVzEimSJ/9ICkYjx/PKIAfg++ihFZqfJH j0kuyM6jIpd3fDmRF8ZOrpZD4exJo2BBz0LJcSzde8lWOkzFfPtltxGWuXswQN62BwMsvCW6qsjM FiKs9nyMHewwPMwmBD0f8DNV6oQtCOfZATSzJlLpOdHOzqt0eAkHyJ1tqqkS1yjqIyOuKuVFaOT+ A5uM+KrWeYL4qs4XQt86MqrOHRnVqNwdU1WS1jd3rNOISI7dCwFybj2gcRDP0BjnW1HM6GpS+wlq ajJvLxPI2/YygYUbnDSlenbTszYmxDjewq2KlZr+JEUIvlk3udveiao9dcsJpHra3gkBrQHZMtl3 J+hD91PPHH4emqPP172h+aG2j9aM682Cd/mGJFNnOOqONquka3OmxnB0fmZ+6HXPe4Mhw56tg9+V iCB02oIXYVKU9zk6/9j/jvbIbyPrsSzqaNC/fJ8KOkF/KQqDXr9OeS56F1eDz6Wm80Vioeliv+kS mGMa2l/ZmPl6bZO/fzniWH+9POIaAiptGsJN98KqDHFz2YeabDd5HiqIVRzM1HffMR7aMirOhMDl Jf504uVrrd3alq81sop4+hTqqE+dQm3laVOIb5nqE3CI3R0OjEjbYPjUSuPqevnALcRTcmpUZDIk +VkbklCRd64J5NZm2GUYZN76TzUUqTLobioSYQ+G8SvQIw6d5GsYjzik51xfhSbRwn9pehhq+RQb UlxohQ/57U0aXmENgtmeDO2Zqhlc5GS0OMs6loG7qGupSgnyh/jvCYRqh+Uqh0SOkl4wZeq0lCdo 2FxaYTOeL5q2fff34Hpw0QhOUN9Hk8S36brplzl0c3BSo0zuJA4WdakhG81ij8SmCTmqhUzhgCIT HJJMRu+mgHQHrHj6EzNPSzN2yDy15ht0tYQp6UIJubcLJlDIBioOfcsjDccBAQt0IbgMXIesn+gM biD0pkkQQPmsGd+TymjvbC9P/NDHj/QMGQbFIkfctkU+QC9o7k5n8N2KIfWSo9wQxwlUpl0GE2RR eWowAvntIbJCAEYfuXG0vs6zlvMuSMh9xNj1PGQtFt5DKiftGIyKDo/e5kJ/32qZ5zcXF5/Ni27/ kiKeDWXopc6iRihDQAhR+dk2Do/Qr7kK8lv0W24A4KwRh4Dea7/WcjEQIv8zdultrXiLTG3L7d38 se7N0ca0ayvcpU5b4Sx1WAbudG1rhYgCHbJl5dsDU1jSBVE8fiAXgBnWDueWTqVOZZU63IjQJkvv R1XqcHdmOlLl6aba2bhUyIkfMMli04qZ+3SaJOvP1hAq8xbTGt27eURDYOClD1gbq9tjpSZ1pB11 XZR0pTe/nqsr3XTalFlWODsmDIPK26rQ5I68g66KVN4M4g6isrrD8AzFFI3nbppCtlgeU0zReYfw Gr0SxXfTKnXK4/Ri1GkVIRbZ0yIZIDEheLaZ3S1N3RVo8TRSuWALyEbF/Qgo4tpAJftGuS7yjprI xp9eFWVHVVTlT6+KVijRdaO8z82JdJC7SNYiD48wdTudZ+umG9w9XiBztldZBl4+0Cmk3hbrdKNd PpHla5tmastxQrO4KNNb8o73j1YaFzDxcurMfho+HRPrLTKoVZi4JO0BI64iPQ0f60Znl83Nbwof lwz8Z8DKPJEew816y9gZlfiRh9bu6zkwXyzfD8g9bjAiLWdbNp7oYi21JVzsK3SxdtWjC4Ykl7eJ tkVdprb+/Axq8B8fAfLjm0iGZPA2kQy5ePuzKssYcqt0mBdSN6UTaGFbC2YL2pDb227DGvxDYkOR Clm9mU0jhkEtpzvSvRkssG967pJ4OliN0Jhaxs5JjlRFXMMrLa4BlRbnnhLLwFsCGUr1lQFDVYpa pgbmHigaqvqE82vg5oqiqtvOrw1V446XqlfeNzDosXJZCc4xjqEa2y7vG/SgmdN9u/Kml6FJPE9h HVWTq8XX1PJ+h4XsJIxwxJvr86U9m1rMuGvGznsE1Omoz9W9rI8S0vo5OUtu/ufpSMvQyBWYKqSV SX3Air37Eyg0/RmatsvZV+HwK1WRHH390Tmhlj/PnVniUDpG8E8+Rl1z0PvUGwx7lHB58/HjUe3R dPHc8fYLA84dBsbjtdbjm0TAwE0PWvFBkFWnRQ6dmS/ZkzfZI2Xg+uTZQjqPcwdw4xm6vhr2fwKM EGLLYRtTHjtH2G6MsjXo4eci7WjXU1yo1OJ5cq4BvnfJ34mgipAbB0m0s8frcnsHj2++qaE3K6nt E/Jp5ALwo9bI2wUrRxivLsgwJqVWb9QIqqoREV07vcGUgrvQjlznf/8f9Nt71XfW9rGPl0hOH7PV mpLcVCQEyy2I1FobLZw71LtfoFd7b2ul4+jVXYECHeCnn930yEmrUXjHvxHCud2woqXXfYqU9eWB XMGsfXOexPjeBMAa34OG16MPg1733Ly4GfV+MvuX/VG/+7H/c2/wtlwPDORANfKjUO/s6vKcW41E jnRCm0vLS8jf7ajLYBsKwN8Q++PQTJs+TGlLiCw0bgDWHmA7CB3ii+SZtEni5cGBXnBypxTYW2H2 JPIdeZw8WTTIeJIGSv1KbymVNYAX2LeHr8EIR2wpVTPt4fA1+XDEq5345fr0D7KgQzlXgnxFHsYL IL1dUfJWiKfCYsnG3mFW+hsEPbLKGMZWGENcSBmPqcIziwCwmDwxDyWQvFzyAC/18GAO85Q6ONX2 OF1YpPKTeWHRAXNpVssrNlB/AnxuhJwAR/5BDB0sAOjRKUseMCeNkr6IWx3Tp2KjCBYppL14ZsWU gXBODyI0JdB2bDneA7oLAwhkRGBrHIASh+mWKjgEKEoly7RCPob1GmluCqvFiGiMnSM6fHRBBWmE +kRuy5XVSP3UXKl7RekHmBKJnYpLHo5HDjDTgHKKfpV+yypM0OEh1ABalSMcob+Q6J6P1T//iUoV 0j+Sc/gaPqap6xgxjpzls7SdoiNMFjBn48khTEmY+cdo7z+i//P3jlen+aSfo6O3wLmqkvk7mTOp e+RTY5SaMJrRVaIP+WSMUfaHgN6SwcpK7izwmCB9wHPlA2nzbwqukE0ZJ1j1nFuvES/NCKx5ihT0 n9S4h1Q9xt/LFqJBAlgd0n06gY4RsS58zxsGA52eol7/cjTIGluNEGntmcbbYjnO+GcTED5tH/ov AfjkatyfP8TVUq7skJUUg1gJEf1eFADUbCIKOCDggIADAg4IOCDggIAD3zwcgN+CyL3XBC4QuEDg AoELBC4QuEDggq8RF9Tn8S7QQAABAQQEEBBAQAABAQQEEPiGgYA4MhCIQCACgQgEIhCIQCACgQjE qYGABgIaCGggoIGABgIafDPQIE/5ux4d0JdGJT7k+WDqu/+AzJz9XdRf8qYOBGIQiEEgBoEYBGIQ iEEghm8ZMbBnDAI6COggoIOADgI6COggoIOADs85jBAYQmAIgSEEhhAYQmAIgSG+RQzx7zuvEHhB 4AWBFwReEHhB4AWBFwRe2Pm0QgAHARwEcBDAQQAHARwEcBDA4elnFQJBCAQhEIRAEAJBCAQhEMRL RhC6VnwpEHLBsmw5JGjaK32X1gF5lRYpQUESl18dwXlRBCLx4SFI6CvsYzxHlh0nlgczPEoWC5jZ EVvhOA0mc2z5kFnxAQQrmIgR5HiIyZD19lG99IX29wn5zLLBOXNfjBoZmcdds2zTXprk3VfOqau2 jXri34Lz+3Ufx+PIwd5EbhgNuchnWp5rRTtww7fUGqE59ZNT8qaZdQHErwIF+0vz7AzmRXzKUug4 MbTvP3bfDzc4U+om9/U1nz+n82pwmDf5Pp5zG87JG/wF05XrFIs26pF3afGrFUo2akHsn+KKekwZ W/Me4/sVL3nfjsm87bgwYLRw9X5ZbsGCUxDiKfGJMjnCHuDhDWocOskmbzbzOfRoUexwBpMIXA/C B4WK5myzbI7nAMJ5JfT9Whw6xCGbS4VuKvg9d8wvIYCzuoQrMEQO0/EWLpT5wWaRG9ixV1WPvPfe DSpLAV9WlZHMU1lWZVtSaZOaAmiWH/xrh2iydvcdmInN6RCy70kr9BqMvxBfz424sOKZSUGV550e NJMobI5dv5lRUN0+yBlhHWR2f/zh1Lq7LZIgSJwepK/zYljJrzFEslMoK9JtmFsFcXIa9a8ibQ4g PP1GpvG6QoSt0J6ZzNv2Tg+YV9kdPMJqhmsHWpfnL4d9vKH1tN/OttjK5gXTU/LSdYZIfBXU5VdM A9gOXlCMdLuwgyub5CXAZmboOaFCEnIwOJCDfdsFV1/lNMJOR7WUXLN0u15acxIwzb376evJ0HX3 7Ifu+5552b3oob29DfqoO6gqIu/q6l9d8oqGo0H/8j2v5Lub94Pe9dVgxClEe/SFamv6qgfyirU1 uf/96OrarCgcjs7PzA+wjoViJK/IH7qfQKzPQ3P0+bo3ND/wioaj7ohTMjr/2P+ORyc6btIvehdX g89V/JyuATRXCTU6h8JN+s1lH4r4SvSvzkYf+UWj/kWvQvOrsx/6Vzt1RBv5sT/6sGqyXGnQe392 dXG90U/vY+9sxLHK+c0m72jQGwyuBhz68Ppy04C9kdkdXfELrtmCYf/n3tX35g0xe9scVZTIBhQp 3CJVgSJtVXQz7JnfXw1+IL4w6A2vPoJfluUA/7k+625oSWjUtsWtNLLVBqR/Aa90Z3H8rwAA --Multipart=_Fri__12_Mar_2004_17_06_34_-0600_aIoSfOFq3nyhN.Jn-- From pdw@sphinx.mythic-beasts.com Sat Mar 13 10:36:10 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B26Uy-0004P8-00; Sat, 13 Mar 2004 10:36:08 +0000 Date: Sat, 13 Mar 2004 10:36:08 +0000 From: Paul Warren To: John Thompson Cc: iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040313103607.A10863@sphinx.mythic-beasts.com> References: <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> <20040312151357.485eaa3c@starfleet.os2.dhs.org> <20040312223940.C26110@sphinx.mythic-beasts.com> <20040312170634.16783a6f@starfleet.os2.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040312170634.16783a6f@starfleet.os2.dhs.org>; from JohnThompson@new.rr.com on Fri, Mar 12, 2004 at 05:06:34PM -0600 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 12, 2004 at 05:06:34PM -0600, John Thompson wrote: > > Hmm, well in that case it should be possible to configure to get the > > test to compile. At the risk of trying something we've already > > tried, what happens if you do: > > > > CPPFLAGS=-I/usr/pkg/include && LDFLAGS=-L/usr/pkg/lib && ./configure > > > > Please send the log if it doesn't work. > > No joy: OK, I'm getting pretty confused now. Should the directories in the above example not be /usr/pkg/pthreads/include and /use/pkg/pthreads/lib? Can you try: CPPFLAGS=-I/usr/pkg/pthreads/include && LDFLAGS=-L/usr/pkg/pthreads/lib && ./configure and if that doesn't work: CFLAGS="-I/usr/pkg/pthreads/include -L/usr/pkg/pthreads/lib" && ./configure Paul From chris@ex-parrot.com Sat Mar 13 10:56:11 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B26oN-0005au-00 for iftop-users@lists.beasts.org; Sat, 13 Mar 2004 10:56:11 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2DBOpT6013141; Sat, 13 Mar 2004 11:24:52 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B26oM-0006Vp-00; Sat, 13 Mar 2004 10:56:10 +0000 Date: Sat, 13 Mar 2004 10:56:10 +0000 From: Chris Lightfoot To: Paul Warren Cc: John Thompson , iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <1JEveqGtbVvV.KZYLqUG6itfjFlyrePWZ7A@caesious.cold.local> References: <20040312153348.H29340@sphinx.mythic-beasts.com> <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> <20040312151357.485eaa3c@starfleet.os2.dhs.org> <20040312223940.C26110@sphinx.mythic-beasts.com> <20040312170634.16783a6f@starfleet.os2.dhs.org> <20040313103607.A10863@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040313103607.A10863@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=1.2 required=5.0 tests=OPT_HEADER autolearn=no version=2.61-sa_mythic X-Spam-Level: * Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Mar 13, 2004 at 10:36:08AM +0000, Paul Warren wrote: > On Fri, Mar 12, 2004 at 05:06:34PM -0600, John Thompson wrote: > > > Hmm, well in that case it should be possible to configure to get the > > > test to compile. At the risk of trying something we've already > > > tried, what happens if you do: > > > > > > CPPFLAGS=-I/usr/pkg/include && LDFLAGS=-L/usr/pkg/lib && ./configure > > > > > > Please send the log if it doesn't work. > > > > No joy: > > OK, I'm getting pretty confused now. Should the directories in the > above example not be /usr/pkg/pthreads/include and > /use/pkg/pthreads/lib? > > Can you try: > > CPPFLAGS=-I/usr/pkg/pthreads/include && LDFLAGS=-L/usr/pkg/pthreads/lib && ./configure > > and if that doesn't work: > > CFLAGS="-I/usr/pkg/pthreads/include -L/usr/pkg/pthreads/lib" && ./configure don't you need to set CFLAGS and CPPFLAGS? -- ``God is a comedian, playing to an audience that's too afraid to laugh.'' (Voltaire) From pdw@sphinx.mythic-beasts.com Sat Mar 13 11:18:24 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B279l-00076g-00; Sat, 13 Mar 2004 11:18:17 +0000 Date: Sat, 13 Mar 2004 11:18:17 +0000 From: Paul Warren To: Chris Lightfoot Cc: John Thompson , iftop-users Subject: Re: [Iftop-users] iftop 0.16 Message-ID: <20040313111815.B10863@sphinx.mythic-beasts.com> References: <20040312111603.79750ecd@starfleet.os2.dhs.org> <20040312203917.A24855@sphinx.mythic-beasts.com> <20040312144612.6cf2f144@starfleet.os2.dhs.org> <20040312205013.A26110@sphinx.mythic-beasts.com> <20040312151357.485eaa3c@starfleet.os2.dhs.org> <20040312223940.C26110@sphinx.mythic-beasts.com> <20040312170634.16783a6f@starfleet.os2.dhs.org> <20040313103607.A10863@sphinx.mythic-beasts.com> <1JEveqGtbVvV.KZYLqUG6itfjFlyrePWZ7A@caesious.cold.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1JEveqGtbVvV.KZYLqUG6itfjFlyrePWZ7A@caesious.cold.local>; from chris@ex-parrot.com on Sat, Mar 13, 2004 at 10:56:10AM +0000 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Mar 13, 2004 at 10:56:10AM +0000, Chris Lightfoot wrote: > On Sat, Mar 13, 2004 at 10:36:08AM +0000, Paul Warren wrote: > > On Fri, Mar 12, 2004 at 05:06:34PM -0600, John Thompson wrote: > > > > Hmm, well in that case it should be possible to configure to get the > > > > test to compile. At the risk of trying something we've already > > > > tried, what happens if you do: > > > > > > > > CPPFLAGS=-I/usr/pkg/include && LDFLAGS=-L/usr/pkg/lib && ./configure > > > > > > > > Please send the log if it doesn't work. > > > > > > No joy: > > > > OK, I'm getting pretty confused now. Should the directories in the > > above example not be /usr/pkg/pthreads/include and > > /use/pkg/pthreads/lib? > > > > Can you try: > > > > CPPFLAGS=-I/usr/pkg/pthreads/include && LDFLAGS=-L/usr/pkg/pthreads/lib && ./configure > > > > and if that doesn't work: > > > > CFLAGS="-I/usr/pkg/pthreads/include -L/usr/pkg/pthreads/lib" && ./configure > > don't you need to set CFLAGS and CPPFLAGS? Why? I thought that CPPFLAGS were for pre-processor (i.e. includes), LDFLAGS for linker flags (-L...) and CFLAGS were included at every CC invocation. I can't find any documentation of these - the info page for gcc does not list them as environment variables that affect gcc operation... Paul From mailinglists@lucassen.org Tue Mar 16 21:45:37 2004 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B3MNU-0005EX-00 for iftop-users@lists.beasts.org; Tue, 16 Mar 2004 21:45:36 +0000 Received: (qmail 20501 invoked from network); 16 Mar 2004 21:45:35 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 16 Mar 2004 21:45:35 -0000 Date: Tue, 16 Mar 2004 22:45:23 +0100 From: richard lucassen To: Message-Id: <20040316224523.02bcbdf2.mailinglists@lucassen.org> Reply-To: Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Tue__16_Mar_2004_22_45_23_+0100_UmtpPyy6+ovoS035" X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] iftop segfaults Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --Signature=_Tue__16_Mar_2004_22_45_23_+0100_UmtpPyy6+ovoS035 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello Paul and Chris, I have some machines (RH73 and Fedora) where iftop (both 0.15 and 0.16) segfaults. Ik know there were problems with RH72 and ncurses, but this is ncurses-5.2-12 on RH73 and higher. # rpm -qa | grep ncurses ncurses-5.2-12 ncurses-devel-5.2-12 I'm not a programmer, but I gdb'd the core. It's here: http://www.lucassen.org/divers/iftop.gdb.gz HTH, Richard. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ --Signature=_Tue__16_Mar_2004_22_45_23_+0100_UmtpPyy6+ovoS035 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAV3V/yG85G+teVsIRArHLAJ9DK21fa9oM5S7k12h01SFNr5mYZQCghxnt XbvNDNGC+gcAk32m66Ajjks= =E4R7 -----END PGP SIGNATURE----- --Signature=_Tue__16_Mar_2004_22_45_23_+0100_UmtpPyy6+ovoS035-- From mailinglists@lucassen.org Tue Mar 16 21:49:31 2004 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B3MRG-0005Uo-00 for iftop-users@lists.beasts.org; Tue, 16 Mar 2004 21:49:31 +0000 Received: (qmail 20515 invoked from network); 16 Mar 2004 21:49:28 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 16 Mar 2004 21:49:28 -0000 Date: Tue, 16 Mar 2004 22:49:28 +0100 From: richard lucassen To: Message-Id: <20040316224928.06b1028c.mailinglists@lucassen.org> Reply-To: Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Tue__16_Mar_2004_22_49_28_+0100_O3d=s4cWXSZKMfCf" X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] iftop segfaults [forget it] Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --Signature=_Tue__16_Mar_2004_22_49_28_+0100_O3d=s4cWXSZKMfCf Content-Type: multipart/mixed; boundary="Multipart=_Tue__16_Mar_2004_22_49_28_+0100_QV=Bl_.j44N8KrC/" --Multipart=_Tue__16_Mar_2004_22_49_28_+0100_QV=Bl_.j44N8KrC/ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit Sorry, I just discovered that this was a RH72 machine.... Please forget it. I'll try to find the Fedora machine where iftop segfaults as well. R. Hello Paul and Chris, I have some machines (RH73 and Fedora) where iftop (both 0.15 and 0.16) segfaults. Ik know there were problems with RH72 and ncurses, but this is ncurses-5.2-12 on RH73 and higher. # rpm -qa | grep ncurses ncurses-5.2-12 ncurses-devel-5.2-12 I'm not a programmer, but I gdb'd the core. It's here: http://www.lucassen.org/divers/iftop.gdb.gz HTH, Richard. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ --Multipart=_Tue__16_Mar_2004_22_49_28_+0100_QV=Bl_.j44N8KrC/ Content-Type: application/pgp-signature; name="00000000.mimetmp" Content-Disposition: attachment; filename="00000000.mimetmp" Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi4xIChHTlUv TGludXgpCgppRDhEQlFGQVYzVi95Rzg1Ryt0ZVZzSVJBckhMQUo5REsyMWZhOW9NNVM3azEyaDAx U0ZOcjVtWVpRQ2doeG50Clhidk5ETkdDK2djQWszMm02NkFqamtzPQo9RTRSNwotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0KCg== --Multipart=_Tue__16_Mar_2004_22_49_28_+0100_QV=Bl_.j44N8KrC/-- --Signature=_Tue__16_Mar_2004_22_49_28_+0100_O3d=s4cWXSZKMfCf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAV3ZoyG85G+teVsIRAru5AKDQKbqy/sC2YmuJgk2UmQioz2DU/ACeJ9YS Nu+H79Wsj1db+AP+3UCdJ+4= =X+eJ -----END PGP SIGNATURE----- --Signature=_Tue__16_Mar_2004_22_49_28_+0100_O3d=s4cWXSZKMfCf-- From mailinglists@lucassen.org Tue Mar 16 22:04:27 2004 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B3Mfi-0006hA-00 for iftop-users@lists.beasts.org; Tue, 16 Mar 2004 22:04:26 +0000 Received: (qmail 20604 invoked from network); 16 Mar 2004 22:04:26 -0000 Received: from asterix.utr.lucassen.org (192.168.100.102) by server2.utr.lucassen.org with SMTP; 16 Mar 2004 22:04:26 -0000 Date: Tue, 16 Mar 2004 23:04:26 +0100 From: richard lucassen To: Message-Id: <20040316230426.65a246cc.mailinglists@lucassen.org> Reply-To: Organization: CAM S&C X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Tue__16_Mar_2004_23_04_26_+0100_kxwGbQD0sejmMtt6" X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] iftop segfaults on Fedora-Core1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --Signature=_Tue__16_Mar_2004_23_04_26_+0100_kxwGbQD0sejmMtt6 Content-Type: multipart/mixed; boundary="Multipart=_Tue__16_Mar_2004_23_04_26_+0100_odFP2AqNPv8kKWy3" --Multipart=_Tue__16_Mar_2004_23_04_26_+0100_odFP2AqNPv8kKWy3 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello Paul and Chris, Here's the Fedora-Core1 core dump: http://www.lucassen.org/divers/iftop.core.tar.gz This coredump only occurs when the .iftoprc file is present in the /root/ directory. If I can do some more tests, I'll hear from you! HTH, Richard. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ --Multipart=_Tue__16_Mar_2004_23_04_26_+0100_odFP2AqNPv8kKWy3 Content-Type: application/pgp-signature; name="00000001.mimetmp" Content-Disposition: attachment; filename="00000001.mimetmp" Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi4xIChHTlUv TGludXgpCgppRDhEQlFGQVYzVi95Rzg1Ryt0ZVZzSVJBckhMQUo5REsyMWZhOW9NNVM3azEyaDAx U0ZOcjVtWVpRQ2doeG50Clhidk5ETkdDK2djQWszMm02NkFqamtzPQo9RTRSNwotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0KCg== --Multipart=_Tue__16_Mar_2004_23_04_26_+0100_odFP2AqNPv8kKWy3-- --Signature=_Tue__16_Mar_2004_23_04_26_+0100_kxwGbQD0sejmMtt6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAV3nqyG85G+teVsIRApRrAJ9op4j5HFnhJWO/WeKteHhAJgBtGgCfY+2E oQ9wv+wM5xQ1YUQAtqkFwMo= =m94d -----END PGP SIGNATURE----- --Signature=_Tue__16_Mar_2004_23_04_26_+0100_kxwGbQD0sejmMtt6-- From sjb@ambrielconsulting.com Wed Mar 17 13:22:41 2004 Received: from host81-130-143-175.in-addr.btopenworld.com ([81.130.143.175] helo=[192.168.2.2]) by sphinx.mythic-beasts.com with asmtp (Exim 3.33 #3) id 1B3b0K-000880-00 for iftop-users@lists.beasts.org; Wed, 17 Mar 2004 13:22:40 +0000 From: Steven J Baker To: iftop-users@lists.beasts.org Content-Type: text/plain Organization: Ambriel Consulting Message-Id: <1079529729.12816.31.camel@jupiter> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 17 Mar 2004 13:22:09 +0000 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] Segfault on Fedora Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Richard As root with .iftoprc in /root/ on a Dell laptop running Fedora, iftop works for me. Is your .iftoprc ok? Steve -- Steven J Baker Ambriel Consulting From mailinglists@lucassen.org Wed Mar 17 13:28:41 2004 Received: from lucassen.xs4all.nl ([194.109.194.174] helo=server2.utr.lucassen.org) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B3b68-0008Su-00 for iftop-users@lists.beasts.org; Wed, 17 Mar 2004 13:28:40 +0000 Received: (qmail 25960 invoked from network); 17 Mar 2004 13:28:40 -0000 Received: from kostunrix.utr.lucassen.org (HELO kostunrix.lucassen.org) (192.168.100.108) by server2.utr.lucassen.org with SMTP; 17 Mar 2004 13:28:40 -0000 Date: Wed, 17 Mar 2004 14:28:43 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Segfault on Fedora Message-Id: <20040317142843.59bdad0c.mailinglists@lucassen.org> In-Reply-To: <1079529729.12816.31.camel@jupiter> References: <1079529729.12816.31.camel@jupiter> Reply-To: iftop-users@lists.beasts.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, 17 Mar 2004 13:22:09 +0000 Steven J Baker wrote: > As root with .iftoprc in /root/ on a Dell laptop running Fedora, iftop > works for me. > > Is your .iftoprc ok? The iftoprc is included in the tarball. But even if there is rubbish in the file, iftop should not segfault IMHO ;-) Here is the .iftoprc (which works on other machines): interface: eth0 dns-resolution: no port-resolution: no filter-code: not udp port 53 show-bars: yes promiscuous: yes port-display: on hide-source: no hide-destination: no use-bytes: no #sort: 2s #sort: 10s sort: 40s #sort: source #sort: destination line-display: one-line-both #line-display: two-line #line-display: one-line-sent #line-display: one-line-received show-totals: yes log-scale: no max-bandwidth: 512k #net-filter: net/mask #screen-filter: regexp From pdw@sphinx.mythic-beasts.com Thu Mar 18 21:59:39 2004 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #3) id 1B45Y9-0001hD-00 for iftop-users@lists.beasts.org; Thu, 18 Mar 2004 21:59:37 +0000 Date: Thu, 18 Mar 2004 21:59:37 +0000 From: Paul Warren To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Segfault on Fedora Message-ID: <20040318215936.I23584@sphinx.mythic-beasts.com> References: <1079529729.12816.31.camel@jupiter> <20040317142843.59bdad0c.mailinglists@lucassen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040317142843.59bdad0c.mailinglists@lucassen.org>; from mailinglists@lucassen.org on Wed, Mar 17, 2004 at 02:28:43PM +0100 X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, Mar 17, 2004 at 02:28:43PM +0100, richard lucassen wrote: > On Wed, 17 Mar 2004 13:22:09 +0000 > Steven J Baker wrote: > > > As root with .iftoprc in /root/ on a Dell laptop running Fedora, iftop > > works for me. > > > > Is your .iftoprc ok? > > The iftoprc is included in the tarball. But even if there is rubbish in > the file, iftop should not segfault IMHO ;-) This is true. The iftop you're running doesn't appear to have debugging info in it, so I can't tell much from the bt. Can you recompile with debugging info. I think "CFLAGS=-g && make clean && make" should do the trick. Please just cut and paste the trace into the email - I'll respond quicker that way :-) thanks, Paul From jonabbey@greatland.ganymeta.org Thu Mar 18 22:21:17 2004 Received: from adsl-65-65-109-1.dsl.austtx.swbell.net ([65.65.109.1] helo=greatland.ganymeta.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B45t6-0003h7-00 for iftop-users@lists.beasts.org; Thu, 18 Mar 2004 22:21:16 +0000 Received: from greatland.ganymeta.org (localhost.localdomain [127.0.0.1]) by greatland.ganymeta.org (8.12.8/8.12.8) with ESMTP id i2IML34j006582; Thu, 18 Mar 2004 16:21:03 -0600 Received: (from jonabbey@localhost) by greatland.ganymeta.org (8.12.8/8.12.8/Submit) id i2IML2gP006580; Thu, 18 Mar 2004 16:21:02 -0600 Date: Thu, 18 Mar 2004 16:21:02 -0600 From: Jon Abbey To: Thomas Nguyen Cc: iftop-users@lists.beasts.org Message-ID: <20040318222102.GA6572@ganymeta.org> References: <20040318173442.GA790@nemo.corp.equinix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040318173442.GA790@nemo.corp.equinix.com> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Subject: [Iftop-users] Re: solaris 7 and 8 (64bits) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 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 -- ------------------------------------------------------------------------------- Jonathan Abbey jonabbey@ganymeta.org Austin, TX http://www.ganymeta.org/ GPG Key: 50D3B73B at keyserver pgp.mit.edu, http://www.ganymeta.org/homekey.gpg From chris@ex-parrot.com Fri Mar 19 02:40:09 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B49vd-0007jy-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 02:40:09 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2J38mT6005272; Fri, 19 Mar 2004 03:08:48 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B49vL-0002SM-00; Fri, 19 Mar 2004 02:39:51 +0000 Date: Fri, 19 Mar 2004 02:39:51 +0000 From: Chris Lightfoot To: Jon Abbey Cc: Thomas Nguyen , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Re: solaris 7 and 8 (64bits) Message-ID: <5qYrXTLNaFYb.VgnpNuwGGn6pbTuKxJHTEw@caesious.cold.local> References: <20040318173442.GA790@nemo.corp.equinix.com> <20040318222102.GA6572@ganymeta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040318222102.GA6572@ganymeta.org> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 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) From mailinglists@lucassen.org Fri Mar 19 09:16:18 2004 Received: from lucassen.xs4all.nl ([194.109.194.174]) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B4G70-00033Y-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 09:16:18 +0000 Received: (qmail 8638 invoked from network); 19 Mar 2004 09:16:17 -0000 Received: from kostunrix.utr.lucassen.org (HELO kostunrix.lucassen.org) (192.168.100.108) by server2.utr.lucassen.org with SMTP; 19 Mar 2004 09:16:17 -0000 Date: Fri, 19 Mar 2004 10:16:24 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Segfault on Fedora Message-Id: <20040319101624.1368813f.mailinglists@lucassen.org> In-Reply-To: <20040318215936.I23584@sphinx.mythic-beasts.com> References: <1079529729.12816.31.camel@jupiter> <20040317142843.59bdad0c.mailinglists@lucassen.org> <20040318215936.I23584@sphinx.mythic-beasts.com> Reply-To: iftop-users@lists.beasts.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, 18 Mar 2004 21:59:37 +0000 Paul Warren wrote: > > The iftoprc is included in the tarball. But even if there is rubbish > > in the file, iftop should not segfault IMHO ;-) > > This is true. > > The iftop you're running doesn't appear to have debugging info in it, > so I can't tell much from the bt. Can you recompile with debugging > info. I think "CFLAGS=-g && make clean && make" should do the trick. > > Please just cut and paste the trace into the email - I'll respond > quicker that way :-) Ok, here it is: GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/local/sbin/iftop'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libpcap.so.0.6.2...done. Loaded symbols for /usr/lib/libpcap.so.0.6.2 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /usr/lib/libncurses.so.5...done. Loaded symbols for /usr/lib/libncurses.so.5 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/libgpm.so.1...done. Loaded symbols for /usr/lib/libgpm.so.1 #0 0x00c39f4a in strcmp () from /lib/tls/libc.so.6 (gdb) where #0 0x00c39f4a in strcmp () from /lib/tls/libc.so.6 #1 0x0804e456 in is_cfgdirective_valid (s=0x96ce178 "port-resolution") at cfgfile.c:50 #2 0x0804e646 in read_config_file (f=0x96ce020 "/root/.iftoprc", #whinge=0) at cfgfile.c:119 #3 0x0804ac20 in main (argc=1, argv=0xbfefbbc4) at iftop.c:531 (gdb) q From chris@ex-parrot.com Fri Mar 19 09:39:03 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B4GT1-0005Tg-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 09:39:03 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2JA7xT6006708; Fri, 19 Mar 2004 10:07:59 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B4GT0-0003fo-00; Fri, 19 Mar 2004 09:39:02 +0000 Date: Fri, 19 Mar 2004 09:39:02 +0000 From: Chris Lightfoot To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Segfault on Fedora Message-ID: References: <1079529729.12816.31.camel@jupiter> <20040317142843.59bdad0c.mailinglists@lucassen.org> <20040318215936.I23584@sphinx.mythic-beasts.com> <20040319101624.1368813f.mailinglists@lucassen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040319101624.1368813f.mailinglists@lucassen.org> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Mar 19, 2004 at 10:16:24AM +0100, richard lucassen wrote: > On Thu, 18 Mar 2004 21:59:37 +0000 > Paul Warren wrote: > > > > The iftoprc is included in the tarball. But even if there is rubbish > > > in the file, iftop should not segfault IMHO ;-) > > > > This is true. > > > > The iftop you're running doesn't appear to have debugging info in it, > > so I can't tell much from the bt. Can you recompile with debugging > > info. I think "CFLAGS=-g && make clean && make" should do the trick. > > > > Please just cut and paste the trace into the email - I'll respond > > quicker that way :-) > > Ok, here it is: > > #1 0x0804e456 in is_cfgdirective_valid (s=0x96ce178 "port-resolution") > at cfgfile.c:50 -- could you try this patch? diff -u -r1.4 cfgfile.c --- cfgfile.c 4 Nov 2003 11:57:45 -0000 1.4 +++ cfgfile.c 19 Mar 2004 09:38:34 -0000 @@ -45,9 +45,9 @@ extern options_t options ; int is_cfgdirective_valid(const char *s) { - char* t; - for (t = config_directives[0]; t != NULL; ++t) - if (strcmp(s, t) == 0) return 1; + char **t; + for (t = config_directives; t != NULL; ++t) + if (strcmp(s, *t) == 0) return 1; return 0; } -- ``While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named `Manual'.'' (from `Dilbert') From mailinglists@lucassen.org Fri Mar 19 09:57:36 2004 Received: from lucassen.xs4all.nl ([194.109.194.174]) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #3) id 1B4Gky-0007D9-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 09:57:36 +0000 Received: (qmail 8892 invoked from network); 19 Mar 2004 09:57:36 -0000 Received: from kostunrix.utr.lucassen.org (HELO kostunrix.lucassen.org) (192.168.100.108) by server2.utr.lucassen.org with SMTP; 19 Mar 2004 09:57:36 -0000 Date: Fri, 19 Mar 2004 10:57:43 +0100 From: richard lucassen To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Segfault on Fedora Message-Id: <20040319105743.3d599b37.mailinglists@lucassen.org> In-Reply-To: References: <1079529729.12816.31.camel@jupiter> <20040317142843.59bdad0c.mailinglists@lucassen.org> <20040318215936.I23584@sphinx.mythic-beasts.com> <20040319101624.1368813f.mailinglists@lucassen.org> Reply-To: iftop-users@lists.beasts.org Organization: CAM S&C X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, 19 Mar 2004 09:39:02 +0000 Chris Lightfoot wrote: > diff -u -r1.4 cfgfile.c > --- cfgfile.c 4 Nov 2003 11:57:45 -0000 1.4 > +++ cfgfile.c 19 Mar 2004 09:38:34 -0000 > @@ -45,9 +45,9 @@ > extern options_t options ; > > int is_cfgdirective_valid(const char *s) { > - char* t; > - for (t = config_directives[0]; t != NULL; ++t) > - if (strcmp(s, t) == 0) return 1; > + char **t; > + for (t = config_directives; t != NULL; ++t) > + if (strcmp(s, *t) == 0) return 1; > return 0; > } Yep. This works fine! R. From tnguyen@equinix.com Fri Mar 19 16:37:31 2004 Received: from kiwi.equinix.com ([207.20.85.65]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B4Mzz-0005Ki-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 16:37:31 +0000 Received: from hanoi.corp.equinix.com (hanoi.corp.equinix.com [172.16.3.62]) by kiwi.equinix.com (8.12.10/8.12.10) with ESMTP id i2JGbNbh003339; Fri, 19 Mar 2004 08:37:23 -0800 (PST) From: thomas nguyen Reply-To: tnguyen@equinix.com Organization: Equinix, Inc To: Chris Lightfoot , Jon Abbey Subject: Re: [Iftop-users] Re: solaris 7 and 8 (64bits) Date: Fri, 19 Mar 2004 08:34:55 -0800 User-Agent: KMail/1.5.3 Cc: iftop-users@lists.beasts.org References: <20040318173442.GA790@nemo.corp.equinix.com> <20040318222102.GA6572@ganymeta.org> <5qYrXTLNaFYb.VgnpNuwGGn6pbTuKxJHTEw@caesious.cold.local> In-Reply-To: <5qYrXTLNaFYb.VgnpNuwGGn6pbTuKxJHTEw@caesious.cold.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403190834.56036.tnguyen@equinix.com> X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 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)) From chris@ex-parrot.com Fri Mar 19 16:38:18 2004 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #3) id 1B4N0j-0005O0-00 for iftop-users@lists.beasts.org; Fri, 19 Mar 2004 16:38:17 +0000 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id i2JH7BT6008278; Fri, 19 Mar 2004 17:07:11 GMT Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 1B4N0f-0005bz-00; Fri, 19 Mar 2004 16:38:13 +0000 Date: Fri, 19 Mar 2004 16:38:13 +0000 From: Chris Lightfoot To: thomas nguyen Cc: Jon Abbey , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Re: solaris 7 and 8 (64bits) Message-ID: <9MtkWD7/9vla.WxrexRDqnq3bwZGjBPLdeA@caesious.cold.local> References: <20040318173442.GA790@nemo.corp.equinix.com> <20040318222102.GA6572@ganymeta.org> <5qYrXTLNaFYb.VgnpNuwGGn6pbTuKxJHTEw@caesious.cold.local> <200403190834.56036.tnguyen@equinix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403190834.56036.tnguyen@equinix.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Sigs-Plug: vote on my signature quotes at http://ex-parrot.com/~chris/scripts/amisigornot X-Spam-Checker-Version: SpamAssassin 2.61-sa_mythic (1.212.2.1-2003-12-09-exp) on sphinx.mythic-beasts.com X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-sa_mythic X-Spam-Level: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 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