Can't compile nrpe on Solaris 8

Chan Chee Seng gisccs at nus.edu.sg
Tue Jul 15 17:18:57 CEST 2003


Greetings,

I tried to compiled nrpe 2.0b4 on a Solaris 8 box but I got the following 2 errors:

gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -L/usr/local/ssl/lib  -lssl -lcrypto -o nrpe -lnsl -lsocket nrpe.c utils.c
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/include/sys/types.h:45,
                 from /usr/include/strings.h:11,
                 from ../common/config.h:74,
                 from ../common/common.h:24,
                 from nrpe.c:21:
/usr/include/sys/int_types.h:69: conflicting types for `int32_t'
../common/config.h:54: previous declaration of `int32_t'
In file included from nrpe.c:22:
../common/config.h:53: redefinition of `u_int32_t'
../common/config.h:53: `u_int32_t' previously declared here
../common/config.h:54: conflicting types for `int32_t'
/usr/include/sys/int_types.h:69: previous declaration of `int32_t'
In file included from utils.h:35,
                 from nrpe.c:24:
../common/config.h:53: redefinition of `u_int32_t'
../common/config.h:53: `u_int32_t' previously declared here
../common/config.h:54: redefinition of `int32_t'
../common/config.h:54: `int32_t' previously declared here
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/include/sys/types.h:45,
                 from /usr/include/strings.h:11,
                 from ../common/config.h:74,
                 from ../common/common.h:24,
                 from utils.c:32:
/usr/include/sys/int_types.h:69: conflicting types for `int32_t'
../common/config.h:54: previous declaration of `int32_t'
In file included from utils.h:35,
                 from utils.c:33:
../common/config.h:53: redefinition of `u_int32_t'
../common/config.h:53: `u_int32_t' previously declared here
../common/config.h:54: conflicting types for `int32_t'
/usr/include/sys/int_types.h:69: previous declaration of `int32_t'
make[1]: *** [nrpe] Error 1

Initially the compilation cannot find the ssl includes too.  I came across a posting about a similar problem from the nagios-devel archives which showed me how to solved the ssl include problem (Thanks Skip Montanaro ☺ ) But I can't make sense of how to solve the u_int32_t problem.  Can someone send me details of how to solve this?  Thanks.

Lastly, during the ./configure, it complained that I do not have Kerberos include files.  How can I disable Kerberos being detected by configure?  Will nrpe still run without Kerberos?

==== part of output from ./configure ====
checking for Kerberos include files... could not find include files
=========================================

Thanks for any help rendered.

Regards,
Chan Chee Seng
gisccs at nus.edu.sg


More information about the Users mailing list