-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Maser wrote:
> Am Montag, den 25.05.2009, 23:47 +0200 schrieb Hugo van der Kooij:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Christoph Maser wrote:
>>
>>> When i run check_ping with -6 and an IPv6 address i see this in strace:
>>>
>>> [pid 28750] execve("/bin/ping", ["/bin/ping", "-n", "-U", "-w", "10",
>>> "-c", "5", "::ffff:127.0.0.1"], [/* 1 var */] <unfinished ...>
>>>
>>> Since all the build logs say ipv6 is enabled (autodetected) I really
>>> think this is a problem to report upstream.
>> I found this bit of code inside:
>>
>> #ifdef PING6_COMMAND
>>                 if (address_family != AF_INET &&
>> is_inet6_addr(addresses[i]))
>>                         rawcmd = strdup(PING6_COMMAND);
>>                 else
>>                         rawcmd = strdup(PING_COMMAND);
>> #else
>>                 rawcmd = strdup(PING_COMMAND);
>> #endif
>>
>> It seems to me this must be defined at compile time. So shouldn't this
>> be done by the SPEC file?
>>
>> Hugo.
>
> Right, exactly what i expected. And the buildlogs shows autoconf finds
> ping6 _and_ it defines --with-ipv6. I think this should be sufficient.

Wel today I found time to test thi is a rather simple way.

I just took the nagios-plugin source RPM and just did a build myself on
one of my Centos 5 machines.
The resulting packages contained a working check_ping executable that
was aware of ping and ping6.

The relevant bits from my build log:

...
checking for mysql_init in -lmysqlclient... yes
checking for IPv6 support... yes
checking krb5.h usability... yes
...

...
checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu
comm args'
checking for ping... /bin/ping
checking for ping6... /usr/sbin/ping6
checking for ICMP ping syntax... /bin/ping -n -U -w %d -c %d %s
checking for ICMPv6 ping syntax... /usr/sbin/ping6 -n -U -w %d -c %d %s
checking for nslookup... /usr/bin/nslookup
...

...
config.status: creating po/POTFILES
config.status: creating po/Makefile
            --with-apt-get-command: /usr/bin/apt-get
              --with-ping6-command: /usr/sbin/ping6 -n -U -w %d -c %d %s
               --with-ping-command: /bin/ping -n -U -w %d -c %d %s
                       --with-ipv6: yes
                      --with-mysql: /usr/bin/mysql_config
                    --with-openssl: yes
                     --with-gnutls: no
               --enable-extra-opts: no
                       --with-perl: /usr/bin/perl
             --enable-perl-modules: no
                     --with-cgiurl: /nagios/cgi-bin
               --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
/usr/bin/make  all-recursive
...

So the key question becomes why the buildhost does not offer
/usr/sbin/ping6 so the package can be build correctly?

[hvdko...@balin SPECS]$ rpm -qf /usr/sbin/ping6
iputils-20020927-45.el5
[hvdko...@balin SPECS]$ rpm -qf /bin/ping
iputils-20020927-45.el5

So in this case iputils should be a required package during the build
and operation of the nagios plugins.

I did compile the source rpm as mere mortal user and not as root.

So I think this clearly indicates that the building host for the
nagios-plugins package has a problem that needs to be resolved.

Hugo.


- --
[email protected]               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

        A: Yes.
        >Q: Are you sure?
        >>A: Because it reverses the logical flow of conversation.
        >>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkpNA98ACgkQBvzDRVjxmYH67ACfU/qMtw9SCSNtpWVB1rLJczg7
Z1kAoJ9HTLZzi22HSJaTWZZRtrhTaoTZ
=Hu5v
-----END PGP SIGNATURE-----
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to