From novosirj at umdnj.edu Thu Apr 19 15:37:22 2007 From: novosirj at umdnj.edu (Ryan Novosielski) Date: Thu, 19 Apr 2007 10:37:22 -0400 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i Message-ID: <46277EA2.8000300@umdnj.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey all, I've been using iftop on Solaris for some time now and love what it is able to do -- there are few programs that make things quite this easy to decipher. I'd like to use this also on an HP-UX box, but I can't get it built. It balks in the pthreads department, but AFAIK HP-UX now supports pthreads properly. Any assistance would be wonderful. config.log is as follows: configure:6294: checking POSIX threads compilation configure:6309: cc -o conftest -I/usr/local/include - -I/usr/local/include -L/u sr/local/lib conftest.c -lpcap -lm -lcurses >&5 configure:6312: $? = 0 configure:6315: test -s conftest configure:6318: $? = 0 configure:6347: result: CFLAGS= and LIBS= configure:6349: checking POSIX threads usability configure:6359: cc -o conftest -I/usr/local/include - -I/usr/local/include -L/u sr/local/lib conftest.c -lpcap -lm -lcurses >&5 configure:6362: $? = 0 configure:6364: ./conftest Function is not available configure:6367: $? = 255 configure: program exited with status 255 configure: failed program was: /* * pthread.c: * Tiny test program to see whether POSIX threads work. */ There's not a whole lot of info here -- Function not available could refer to quite a number of functions. Thanks for any time you spend on this, and for the great product that at least I can use elsewhere. - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGJ36imb+gadEcsb4RAvZNAJ4kgWCYA7yIeVrJH246sbDjQhJ84wCcCiJ4 ToCwA6EmAbxnAt0xzQmND+8= =rtTr -----END PGP SIGNATURE----- From jonabbey at arlut.utexas.edu Mon Apr 23 16:31:49 2007 From: jonabbey at arlut.utexas.edu (Jonathan Abbey) Date: Mon, 23 Apr 2007 10:31:49 -0500 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i In-Reply-To: <462CCE02.6070004@umdnj.edu> References: <46277EA2.8000300@umdnj.edu> <20070423144942.GA6055@arlut.utexas.edu> <462CCE02.6070004@umdnj.edu> Message-ID: <20070423153149.GA6479@arlut.utexas.edu> --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 23, 2007 at 11:17:22AM -0400, Ryan Novosielski wrote: | | I am using HP's AnsiC compilers. I don't have GCC on this particular | box, but I do have other HP-UX machines that do have it. I'm somewhat | skeptical that that would make a difference, as it seems the compilers | tend to bomb on syntactical errors when it's compiler related, not | libraries. Yes, but different compilers do have the potential for taking different command line arguments to specify where those libraries are found, and etc. I also asked because the error message you included in your first email wasn't familiar to me. I suppose the 'functions not found' message was actually generated from the configure shell script. There should be a file 'config.log' which actually includes the detritus from the builds performed by the configure script as it attempts to verify the environment. You may find a more informative message in that file, describing what function or functions could not be found at the link stage. | > I don't think we've had any users attempt to build iftop on HP-UX | > before. We'll probably need someone with access to an HP-UX box and | > some autoconf-fu to tweak the configure.in file so that it can cope | > with the way an HP-UX system is laid out. |=20 | Well, you have someone with root access on many HP-UX boxes, but I don't | really have any autoconf-fu. Autoconf doesn't really seem that difficult | to me, so I'd be willing to give it a shot if I knew the kind of stuff | I'd be trying... You'd be modifying the configure.in file, to specify new paths or new library names that should be searched for, and used in the configure tests. At least, that's my best guess. Knowing what that config.log file said would be very helpful. | > For example, I'd guess we'd need a -lthreads or some such there in | > order to pick up the threads library, but that will depend on just how | > HP-UX is laid out. |=20 | How can I be of best assistance in this particular instance? Are there any libraries in your system's standard library paths that reference the word 'thread' in any form? libpthreads, libposixthreads, etc.? 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 --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGLNFlGI9EwHF2dYYRAkI1AKCxyqt8wlJT6rzxtViTNsDD0TSBhACg5MmX qBFAnAtf0TzlXPOH9Wbpwwo= =d9o3 -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- From jonabbey at arlut.utexas.edu Mon Apr 23 16:34:42 2007 From: jonabbey at arlut.utexas.edu (Jonathan Abbey) Date: Mon, 23 Apr 2007 10:34:42 -0500 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i In-Reply-To: <20070423153149.GA6479@arlut.utexas.edu> References: <46277EA2.8000300@umdnj.edu> <20070423144942.GA6055@arlut.utexas.edu> <462CCE02.6070004@umdnj.edu> <20070423153149.GA6479@arlut.utexas.edu> Message-ID: <20070423153442.GA6538@arlut.utexas.edu> --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 23, 2007 at 10:31:49AM -0500, Jonathan Abbey wrote: |=20 | You'd be modifying the configure.in file, to specify new paths or new | library names that should be searched for, and used in the configure | tests. Note: once you've modified the configure.in file, you'd need to have the autoconf tools installed on your system, so that you could rebuild the configure script. If you don't have autoconf installed, about the best you could do would be to provide details to someone who did have autoconf, so that they could generate modifications to the configure definition for you to test. 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 --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGLNISGI9EwHF2dYYRAlkrAJoCLu4sN0zrvGp8ikfUhagqxtX2WACgqhNu pCscKu59wMtGq05XqSLbt4Q= =g139 -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt-- From novosirj at umdnj.edu Mon Apr 23 16:17:22 2007 From: novosirj at umdnj.edu (Ryan Novosielski) Date: Mon, 23 Apr 2007 11:17:22 -0400 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i In-Reply-To: <20070423144942.GA6055@arlut.utexas.edu> References: <46277EA2.8000300@umdnj.edu> <20070423144942.GA6055@arlut.utexas.edu> Message-ID: <462CCE02.6070004@umdnj.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Abbey wrote: > On Thu, Apr 19, 2007 at 10:37:22AM -0400, Ryan Novosielski wrote: > | > | Hey all, > | > | I've been using iftop on Solaris for some time now and love what it is > | able to do -- there are few programs that make things quite this easy to > | decipher. > | > | I'd like to use this also on an HP-UX box, but I can't get it built. It > | balks in the pthreads department, but AFAIK HP-UX now supports pthreads > | properly. Any assistance would be wonderful. config.log is as follows: > | > | configure:6294: checking POSIX threads compilation > | configure:6309: cc -o conftest -I/usr/local/include > | - -I/usr/local/include -L/u > | sr/local/lib conftest.c -lpcap -lm -lcurses >&5 > | configure:6312: $? = 0 > | configure:6315: test -s conftest > | configure:6318: $? = 0 > | configure:6347: result: CFLAGS= and LIBS= > | configure:6349: checking POSIX threads usability > | configure:6359: cc -o conftest -I/usr/local/include > | - -I/usr/local/include -L/u > | sr/local/lib conftest.c -lpcap -lm -lcurses >&5 > | configure:6362: $? = 0 > | configure:6364: ./conftest > | Function is not available > | configure:6367: $? = 255 > | configure: program exited with status 255 > | configure: failed program was: > | /* > | * pthread.c: > | * Tiny test program to see whether POSIX threads work. > | */ > | > | > | There's not a whole lot of info here -- Function not available could > | refer to quite a number of functions. > | > | Thanks for any time you spend on this, and for the great product that at > | least I can use elsewhere. > > Are you using gcc on HP-UX, or are you using a native HP-UX C/C++ > compiler? I am using HP's AnsiC compilers. I don't have GCC on this particular box, but I do have other HP-UX machines that do have it. I'm somewhat skeptical that that would make a difference, as it seems the compilers tend to bomb on syntactical errors when it's compiler related, not libraries. > I don't think we've had any users attempt to build iftop on HP-UX > before. We'll probably need someone with access to an HP-UX box and > some autoconf-fu to tweak the configure.in file so that it can cope > with the way an HP-UX system is laid out. Well, you have someone with root access on many HP-UX boxes, but I don't really have any autoconf-fu. Autoconf doesn't really seem that difficult to me, so I'd be willing to give it a shot if I knew the kind of stuff I'd be trying... > For example, I'd guess we'd need a -lthreads or some such there in > order to pick up the threads library, but that will depend on just how > HP-UX is laid out. How can I be of best assistance in this particular instance? - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGLM4Cmb+gadEcsb4RAhf5AJ9DDLYhQmkJc6uteyFjlzGD9qJfSQCeKxoc Q1IU/o0tfDrBYRYZ5ZzVTsU= =Z6Op -----END PGP SIGNATURE----- From jonabbey at arlut.utexas.edu Mon Apr 23 15:49:43 2007 From: jonabbey at arlut.utexas.edu (Jonathan Abbey) Date: Mon, 23 Apr 2007 09:49:43 -0500 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i In-Reply-To: <46277EA2.8000300@umdnj.edu> References: <46277EA2.8000300@umdnj.edu> Message-ID: <20070423144942.GA6055@arlut.utexas.edu> --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 19, 2007 at 10:37:22AM -0400, Ryan Novosielski wrote: | | Hey all, |=20 | I've been using iftop on Solaris for some time now and love what it is | able to do -- there are few programs that make things quite this easy to | decipher. |=20 | I'd like to use this also on an HP-UX box, but I can't get it built. It | balks in the pthreads department, but AFAIK HP-UX now supports pthreads | properly. Any assistance would be wonderful. config.log is as follows: |=20 | configure:6294: checking POSIX threads compilation | configure:6309: cc -o conftest -I/usr/local/include | - -I/usr/local/include -L/u | sr/local/lib conftest.c -lpcap -lm -lcurses >&5 | configure:6312: $? =3D 0 | configure:6315: test -s conftest | configure:6318: $? =3D 0 | configure:6347: result: CFLAGS=3D and LIBS=3D | configure:6349: checking POSIX threads usability | configure:6359: cc -o conftest -I/usr/local/include | - -I/usr/local/include -L/u | sr/local/lib conftest.c -lpcap -lm -lcurses >&5 | configure:6362: $? =3D 0 | configure:6364: ./conftest | Function is not available | configure:6367: $? =3D 255 | configure: program exited with status 255 | configure: failed program was: | /* | * pthread.c: | * Tiny test program to see whether POSIX threads work. | */ | |=20 | There's not a whole lot of info here -- Function not available could | refer to quite a number of functions. |=20 | Thanks for any time you spend on this, and for the great product that at | least I can use elsewhere. Are you using gcc on HP-UX, or are you using a native HP-UX C/C++ compiler? I don't think we've had any users attempt to build iftop on HP-UX before. We'll probably need someone with access to an HP-UX box and some autoconf-fu to tweak the configure.in file so that it can cope with the way an HP-UX system is laid out. For example, I'd guess we'd need a -lthreads or some such there in order to pick up the threads library, but that will depend on just how HP-UX is laid out. 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 --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGLMeGGI9EwHF2dYYRAp/fAJ9OAzwha4l1gua6txeNzHzJQDG0UQCgyZrP r29UHxBdabFIVAw/sHchRWE= =P5QL -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- From novosirj at umdnj.edu Mon Apr 23 16:48:34 2007 From: novosirj at umdnj.edu (Ryan Novosielski) Date: Mon, 23 Apr 2007 11:48:34 -0400 Subject: [Iftop-users] iftop 0.17 on HP-UX 11i In-Reply-To: <20070423153149.GA6479@arlut.utexas.edu> References: <46277EA2.8000300@umdnj.edu> <20070423144942.GA6055@arlut.utexas.edu> <462CCE02.6070004@umdnj.edu> <20070423153149.GA6479@arlut.utexas.edu> Message-ID: <462CD552.103@umdnj.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Abbey wrote: > On Mon, Apr 23, 2007 at 11:17:22AM -0400, Ryan Novosielski wrote: > | > | I am using HP's AnsiC compilers. I don't have GCC on this particular > | box, but I do have other HP-UX machines that do have it. I'm somewhat > | skeptical that that would make a difference, as it seems the compilers > | tend to bomb on syntactical errors when it's compiler related, not > | libraries. > > Yes, but different compilers do have the potential for taking > different command line arguments to specify where those libraries are > found, and etc. Yeah, I'm not really arguing with you, I just have a hunch on this one. I can try this on a gcc box also, though, but it seems like if the flags are defined properly, the compiler will usually go through the compile no problem or error out. > I also asked because the error message you included in your first > email wasn't familiar to me. I suppose the 'functions not found' > message was actually generated from the configure shell script. There > should be a file 'config.log' which actually includes the detritus > from the builds performed by the configure script as it attempts to > verify the environment. The output that is in this thread is from configure.log. > You may find a more informative message in that file, describing what > function or functions could not be found at the link stage. > > | > I don't think we've had any users attempt to build iftop on HP-UX > | > before. We'll probably need someone with access to an HP-UX box and > | > some autoconf-fu to tweak the configure.in file so that it can cope > | > with the way an HP-UX system is laid out. > | > | Well, you have someone with root access on many HP-UX boxes, but I don't > | really have any autoconf-fu. Autoconf doesn't really seem that difficult > | to me, so I'd be willing to give it a shot if I knew the kind of stuff > | I'd be trying... > > You'd be modifying the configure.in file, to specify new paths or new > library names that should be searched for, and used in the configure > tests. > > At least, that's my best guess. Knowing what that config.log file > said would be very helpful. Would you like the whole file attached to the list? I generally try to avoid that sort of thing as I feel like I'm being a pest, but if that would be the best course, I'm happy to do so. > | > For example, I'd guess we'd need a -lthreads or some such there in > | > order to pick up the threads library, but that will depend on just how > | > HP-UX is laid out. > | > | How can I be of best assistance in this particular instance? > > Are there any libraries in your system's standard library paths that > reference the word 'thread' in any form? libpthreads, > libposixthreads, etc.? Yup, from what I can see looks like everything that would be needed is here. That's actually why I didn't know how to proceed -- nothing is in a non-standard location, so there are no -L or -I flags that I figure I'd have needed to add. Note HP-UX uses .sl for .so files. /usr/lib/libpthread.1 /usr/lib/libp/libpthread.a /usr/lib/libpthread.a /usr/lib/libpthread.sl /usr/lib/libpthread_tr.1 /usr/lib/libpthread_tr.a - From my cursory browsing on the web, 11.11 definitely does have a reasonably good POSIX threads library set (wasn't the case in some of the older releases -- not so sure about 11.00). - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGLNVSmb+gadEcsb4RArmxAKDdvmBdSgg6aTaDU3hg61Lac1j0UgCeKHX5 IcwNFQkmsiv3wIXghMdQuJQ= =eKNG -----END PGP SIGNATURE-----