Can't compile nrpe on Solaris 8

Chan Chee Seng gisccs at nus.edu.sg
Fri Jul 18 04:15:56 CEST 2003


Greeting!

Thanks for the responses that I got from Jordi Vidal and Skip Montanro.

I was directed to download the latest tar tarball from

http://nagios.sourceforge.net/download/cvs/nrpe-cvs.tar.gz

However the latest tarball (I got version 2.0b5) still have a problem with finding the ssl include path.  I have to tweak the configure script (As previously suggested from Skip) like this

==== part of configure script ====
if test -f "$dir/include/openssl/ssl.h"; then
                        found_ssl=yes
                        CFLAGS="$CFLAGS -I$ssldir/include/openssl -I$ssldir/include"
==================================

It seems like common/config.h has a difference in the #include directive statements.  Incidentally I got openssl from sunfreeware and the include files are installed in /usr/local/ssl/include/openssl.

But the good thing is that the u_int32_t problem is gone!  :)

I am now trying to set up nrpe to do remote monitoring.  Thanks again guys.

Regards,
Chan Chee Seng

-----Original Message-----
From: Chan Chee Seng 
Sent: Tuesday, July 15, 2003 11:19 PM
To: 'nagios-users at lists.sourceforge.net'
Subject: Can't compile nrpe on Solaris 8

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