Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 640734 Details for
Bug 707454
net-analyzer/nagios-plugins-snmp-0.6.0-r2 : fails to build with -fno-common or gcc-10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nagios-plugins-snmp-0.6.0-fno-common.patch
nagios-plugins-snmp-0.6.0-fno-common.patch (text/plain), 2.42 KB, created by
Jeroen Roovers (RETIRED)
on 2020-05-21 11:37:49 UTC
(
hide
)
Description:
nagios-plugins-snmp-0.6.0-fno-common.patch
Filename:
MIME Type:
Creator:
Jeroen Roovers (RETIRED)
Created:
2020-05-21 11:37:49 UTC
Size:
2.42 KB
patch
obsolete
>--- a/src/nagios_common_snmp.h >+++ b/src/nagios_common_snmp.h >@@ -56,8 +56,8 @@ > /*********************************** Utilities ****************************************/ > /* cache utilities */ > >-char plugin_name[30]; /* plugin name */ >-char plugin_tmp_prefix[50]; >+extern char plugin_name[30]; /* plugin name */ >+extern char plugin_tmp_prefix[50]; > > /* defined in configure script */ > /*#define BASE_CACHE "/tmp/cache"*/ >@@ -71,12 +71,12 @@ > > /* maximum caracters in ouput */ > #define MAX_OUTPUT 500 >-char output[MAX_OUTPUT]; >-int output_overflow; >+extern char output[MAX_OUTPUT]; >+extern int output_overflow; > > /* maximum caracters for performance output label*/ > #define MAX_LABEL_SIZE 50 >-char *p_output; >+extern char *p_output; > > /* Put data in output */ > void strcat_output(const char *string); >@@ -143,18 +143,18 @@ > #define TIMEOUT_DEFAULT 3 > > /* standard options */ >-char *o_host; >-int o_verb; >-char* error; >+extern char *o_host; >+extern int o_verb; >+extern char* error; > /* snmp options */ >-int o_port,o_timeout; >-int o_help, o_verbose,o_version,o_v2c; >-int retries; >-int o_snmpver,snmp_bulk; >-char *o_community,*o_login,*o_passwd,*o_privpasswd; >-char *o_protocols[2],*o_authproto,*o_privproto; >+extern int o_port,o_timeout; >+extern int o_help, o_verbose,o_version,o_v2c; >+extern int retries; >+extern int o_snmpver,snmp_bulk; >+extern char *o_community,*o_login,*o_passwd,*o_privpasswd; >+extern char *o_protocols[2],*o_authproto,*o_privproto; > /* snmp sessions */ >-struct snmp_session session, *ss; >+extern struct snmp_session session, *ss; > > /* Common options definition and check */ > #define common_usage "[-v -V] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>) [-p <port>] [-t <timeout>]" >--- a/src/nagios_common_snmp.c >+++ b/src/nagios_common_snmp.c >@@ -1,5 +1,21 @@ > #include "nagios_common_snmp.h" > >+char plugin_name[30]; /* plugin name */ >+char plugin_tmp_prefix[50]; >+char output[MAX_OUTPUT]; >+int output_overflow; >+char *p_output; >+char *o_host; >+int o_verb; >+char* error; >+int o_port,o_timeout; >+int o_help, o_verbose,o_version,o_v2c; >+int retries; >+int o_snmpver,snmp_bulk; >+char *o_community,*o_login,*o_passwd,*o_privpasswd; >+char *o_protocols[2],*o_authproto,*o_privproto; >+struct snmp_session session, *ss; >+ > int init_plugins_gettext(){ > if (setlocale( LC_ALL, "" )==NULL) return 1; > bindtextdomain( PACKAGE, LOCALEDIR );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 707454
:
609026
|
609028
|
609030
|
609032
|
609034
|
609036
|
609038
| 640734