Vedr.: Recompiling plugins

Christian Kammer Have CKH99 at bbh.hosp.dk
Tue Apr 18 13:22:29 CEST 2006


The error indicates that you need to have some more files present before 
starting to compile.
Download the entire plugins tar from the website, extract, copy your 
changed sourcefile and issue the make command.


Med venlig hilsen

Ekstern konsulent
Christian Kammer Have

Bispebjerg Hospital
MIT (Mediko, Informatik & Tele) 
Bispebjerg Bakke 23
2400 København NV

mobil: 2044 0125
E-mail: ckh99 at bbh.hosp.dk





"ThomasC." <shoktai at gmail.com>
Sendt af: nagios-users-admin at lists.sourceforge.net
18-04-2006 13:18
Besvar venligst til shoktai-nospam
 
        Til:    nagios-users at lists.sourceforge.net
        cc: 
        Vedr.:  [Nagios-users] Recompiling plugins


Hi,


I made a change in the source code of the check_snmp plugin. I would 
like now to recompile it.

When i run
gcc -o check_snmp check_snmp.c i get a lot of errors.

I know this is a question about compiling but can you help me please to 
learn how to recompile transformed code in Nagios plugs.


Thanks a lot.

The errors are :
In file included from check_snmp.c:26:
common.h:35:20: error: config.h: No such file or directory
In file included from check_snmp.c:26:
common.h:146: error: syntax error before 'va_list'
common.h:187:21: error: gettext.h: No such file or directory
In file included from check_snmp.c:27:
utils.h:30: error: syntax error before 'timeout_alarm_handler'
utils.h:30: warning: data definition has no type or storage class
utils.h:53: error: redefinition of 'struct timeval'
utils.h:60: warning: 'struct timezone' declared inside parameter list
utils.h:60: warning: its scope is only this definition or declaration, 
which is probably not what you want
In file included from check_snmp.c:28:
popen.h:9: error: syntax error before 'popen_timeout_alarm_handler'
popen.h:9: warning: data definition has no type or storage class
check_snmp.c: In function 'main':
check_snmp.c:145: error: 'LC_ALL' undeclared (first use in this function)
check_snmp.c:145: error: (Each undeclared identifier is reported only once
check_snmp.c:145: error: for each function it appears in.)
check_snmp.c:146: error: 'PACKAGE' undeclared (first use in this function)
check_snmp.c:146: error: 'LOCALEDIR' undeclared (first use in this 
function)
check_snmp.c:155: warning: incompatible implicit declaration of built-in 
function 'strdup'
check_snmp.c:168: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c:173: error: 'PATH_TO_SNMPGETNEXT' undeclared (first use in 
this function)
check_snmp.c:178: error: 'PATH_TO_SNMPGET' undeclared (first use in this 
function)
check_snmp.c:206: warning: incompatible implicit declaration of built-in 
function 'strcat'
check_snmp.c:206: error: 'perfstr' undeclared (first use in this function)
check_snmp.c:210: warning: incompatible implicit declaration of built-in 
function 'strstr'
check_snmp.c:211: warning: incompatible implicit declaration of built-in 
function 'strncat'
check_snmp.c:217: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c:218: warning: incompatible implicit declaration of built-in 
function 'strspn'
check_snmp.c:225: warning: incompatible implicit declaration of built-in 
function 'strpbrk'
check_snmp.c:230: warning: incompatible implicit declaration of built-in 
function 'strpbrk'
check_snmp.c:251: warning: incompatible implicit declaration of built-in 
function 'strcpy'
check_snmp.c:276: warning: incompatible implicit declaration of built-in 
function 'strpbrk'
check_snmp.c: In function 'process_arguments':
check_snmp.c:416: warning: incompatible implicit declaration of built-in 
function 'strcpy'
check_snmp.c:432: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c:486: warning: incompatible implicit declaration of built-in 
function 'strspn'
check_snmp.c:486: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c:493: warning: incompatible implicit declaration of built-in 
function 'index'
check_snmp.c:504: warning: incompatible implicit declaration of built-in 
function 'index'
check_snmp.c:524: warning: incompatible implicit declaration of built-in 
function 'index'
check_snmp.c:539: warning: incompatible implicit declaration of built-in 
function 'strncpy'
check_snmp.c:586: warning: incompatible implicit declaration of built-in 
function 'strstr'
check_snmp.c:640: warning: incompatible implicit declaration of built-in 
function 'strdup'
check_snmp.c: In function 'validate_arguments':
check_snmp.c:674: warning: incompatible implicit declaration of built-in 
function 'strdup'
check_snmp.c:707: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c:715: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c:724: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c: In function 'clarify_message':
check_snmp.c:739: warning: incompatible implicit declaration of built-in 
function 'strcpy'
check_snmp.c:741: warning: assignment makes pointer from integer without 
a cast
check_snmp.c:742: warning: assignment makes pointer from integer without 
a cast
check_snmp.c: In function 'lu_getll':
check_snmp.c:817: warning: incompatible implicit declaration of built-in 
function 'strchr'
check_snmp.c: In function 'thisarg':
check_snmp.c:849: warning: incompatible implicit declaration of built-in 
function 'strspn'
check_snmp.c:850: warning: incompatible implicit declaration of built-in 
function 'strstr'
check_snmp.c:851: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c:852: warning: incompatible implicit declaration of built-in 
function 'gettext'
check_snmp.c: In function 'nextarg':
check_snmp.c:866: warning: incompatible implicit declaration of built-in 
function 'strstr'
check_snmp.c:868: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c:878: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c:885: warning: incompatible implicit declaration of built-in 
function 'strlen'
check_snmp.c: In function 'print_help':
check_snmp.c:901: warning: incompatible implicit declaration of built-in 
function 'gettext'


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060418/8747518d/attachment.html>


More information about the Users mailing list