[Nagiosplug-help] problem on nrpe 2 over tru64

Alejandro Feijoo alfeijoo at cesga.es
Wed Jun 15 23:52:33 CEST 2005


Hi, i have a tru64 (OSF1 V5.1 1885 alpha) and i need to compile nrpe v2 for
use with nagios 2.0b2 but when i do "make all" i have that problem:

cc: Warning: nrpe.c, line 198: In this statement, "get_dh512(...)" of type
"int", is being converted to "pointer to struct dh_st". (cvtdiftypes)
                dh=get_dh512();
----------------^
cc: Warning: nrpe.c, line 620: In this statement, the referenced type of the
pointer value "&addrlen" is "unsigned long", which is not compatible with
"int". (ptrmismatch)
                                rc=getpeername(new_sd,&addr,&addrlen);
------------------------------------------------------------^
cc: Error: nrpe.c, line 1443: In the initializer for long_options, an
array's element type is incomplete, which precludes its initialization.
(incompelinit)
                {"config", required_argument, 0, 'c'},
----------------^


at line 1443 i found that.
#ifdef HAVE_GETOPT_H
        int option_index=0;
        static struct option long_options[]={
                {"config", required_argument, 0, 'c'},
                {"inetd", no_argument, 0, 'i'},
                {"daemon", no_argument, 0, 'd'},
                {"no-ssl", no_argument, 0, 'n'},
                {"help", no_argument, 0, 'h'},
                {"license", no_argument, 0, 'l'},
                {0, 0, 0, 0}
                };
#endif


Any have some idea or have a nrpe for tru64 compiled???

Tanks!




++-------------------------++
Alejandro Feijóo Fraga
Tecnico de Sistemas.
Centro de supercomputación de Galicia
Avda. de Vigo s/n. Campus Sur.
15705 - Santiago de Compostela. Spain
Tlfn.: 981 56 98 10 Extension: 274
Fax: 981 59 46 16






More information about the Help mailing list