net-smp i ipv6

Jan Rękorajski baggins at pld-linux.org
Sat Feb 22 09:39:55 CET 2020


On Fri, 21 Feb 2020, stacho wrote:

> Witam!
> 
> Chciałem sobie przebudować net-snmp z przyblokowanym komunikatem o braku 
> ipv6.
> =========================
> --- a/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
> +++ b/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
> @@ -234,7 +234,7 @@
> 
>   #define PROCFILE "/proc/net/if_inet6"
>       if (!(in = fopen(PROCFILE, "r"))) {
> -        snmp_log_perror("ipaddress_linux: could not open " PROCFILE);
> +        NETSNMP_LOGONCE((LOG_ERR, "ipaddress_linux: could not open " 
> PROCFILE));
>           return -2;
>       }
> =========================
> 
> Ale nawet testowe budowanie pakietu z gita się wywala tak:
> 
> Checking script shebangs...
> /usr/src/examples/perl-SNMP-5.8/pingmib.pl starts with '#!/usr/bin/env 
> perl', should be explicit interpreter path
>   DONE
> error: Błędny status wyjścia z /home/users/4/builder/tmp/rpm-tmp.28902 
> (%install)
> 
> Pomożecie?? :)

Skrypt check-shebang.py z rpm-build-tools w git może ci pomóc.

-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-pl mailing list