Fix: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] error: implicit declaration of function 'snmp_sess_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration] error: too few arguments to function call, expected 1, have 0 error: unknown type name 'netsnmp_transport' --- configure.orig 2004-01-01 13:18:14.000000000 -0600 +++ configure 2021-06-26 02:22:13.000000000 -0500 @@ -1059,6 +1059,7 @@ #line 1060 "configure" #include "confdefs.h" #include +#include #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) @@ -2917,6 +2918,8 @@ #line 2918 "configure" #include "confdefs.h" #include +#include +#include int main() { snmp_sess_init((void *) 0); ; return 0; } @@ -3046,9 +3049,12 @@ cat > conftest.$ac_ext < +#include +#include int main() { -snmp_sess_init(); +snmp_sess_init((void *) 0); ; return 0; } EOF if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then