On Thu, 2004-07-15 at 10:29, Brooks Davis wrote: > Partial success on FreeBSD 5-CURRENT, unless this is supposed to be a v6 > only test. It's only binding to :: not 127.0.0.1. See below for my tests. > > Some thoughts on using apr. In general, I like the idea. The > config.layout feature looks really nice! However, apr is big so it > would be nice it we could have an option to use an external verion of > apr, for instance when built in the FreeBSD ports collection. The > tarball is also rather gigantic with apr. Perhaps two distrubtions > would be in order, one with all the deps for lazy people/broken package > systems, and one with just the core for people who already have the deps > are can get them easily.
that is already in the design of this framework. this is a request that preston smith (the other freebsd guru) asked for quiet a while back and it makes a lot of sense. % ./configure --help ... --with-apr=DIR|FILE prefix for installed APR, path to APR build tree, or the full path to apr-config --with-apr-util=DIR prefix for installed APU, or path to APU build tree this allows package maintainers to decide if they want to use the packaged apr/apr-util or instead create a dependency in their package on the external library. if you are worried about the size of the package... i guess we could have a (with srclib and without srclib setup). i don't think a couple meg download should be much of a problem though... even 5 megs. > [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): > sockstat| grep gmon > brooks gmond 23960 3 tcp6 *:8021 *:* > [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet > localhost 8021 > Trying ::1... > Connected to localhost. > Escape character is '^]'. > Server socket: ::1:8021 -> ::1:49506 > Connection closed by foreign host. it looks like localhost is resolving to an IPv6 address. > [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet > :: 8021 Trying ::... > Connected to ::. > Escape character is '^]'. > Server socket: ::1:8021 -> ::1:49507 > Connection closed by foreign host. good. > [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet 0 > 8021 > Trying 0.0.0.0... > telnet: connect to address 0.0.0.0: Connection refused > telnet: Unable to connect to remote host expected. > [10:23am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet > 127.0.0.1 8021 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refused > telnet: Unable to connect to remote host this is strange and not what i would expect (or found on other operating systems). hmmmm. are you running any ip filters on the box? looking at the sockstat output... i looks like it is binding to the ipv6 only. i don't know about freebsd but with linux you can get a "sit0" interface to bridge ipv6-ipv4 requests. one thing to try.... look at the gmond.c source. in main() there is a create_server_socket() call... the first parameter is the IP address to bind to locally. it's set to NULL (let the os decide)... try to explicitly set it to "127.0.0.1" and see what happens. i suspect it will bind to ipv4 and not answer ipv6 requests. if so.. i think you'll need to find out how to bridge the two on freebsd... IPv6-in-IPv4 or 6 to 4. http://subwiki.honeypot.net/cgi-bin/view/Freebsd/IpV6Howto might get you started in the right direction. > [10:23am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): grep > localhost /etc/hosts > ::1 localhost localhost.my.domain > 127.0.0.1 localhost localhost.my.domain that explains why localhost was resolving to ipv6. -matt -- PGP fingerprint 'A7C2 3C2F 8445 AD3C 135E F40B 242A 5984 ACBC 91D3' They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. --Benjamin Franklin, Historical Review of Pennsylvania, 1759
signature.asc
Description: This is a digitally signed message part