nrpe compile on solaris 8

Alex Kuehne kuehne at sietec.de
Tue May 13 15:11:09 CEST 2003


 > -----Original Message-----
 > From: Phil Costelloe [mailto:philc at foundation-it.com]
 > Sent: Tuesday, May 13, 2003 1:33 PM
 > To: Nagios-Users (E-mail)
 > Subject: RE: [Nagios-users] nrpe compile on solaris 8
 >
 > Just tried to compile nrpe 2.0b3 on a Solaris 8 system that
 > happily compiled nrpe 1.8 and it failed big time on not
 > being able to find Openssl header files (which are there,
 > where you'd expect):
 >
[...]
 > /usr/local/ssl/include/openssl/rsa.h:63: openssl/bio.h: No
 > such file or
 > directory
 > /usr/local/ssl/include/openssl/rsa.h:65: openssl/bn.h: No such file or
 > directory
 > /usr/local/ssl/include/openssl/rsa.h:66: openssl/crypto.h: No
 > such file

I tried to compile nrpe-2.0b3 on Solaris 8, too. I solved that issue
with the openssl include files. Just add another -I to CFLAGS in
./src/Makefile, if you have i.e. -I/usr/local/ssl/include/openssl, then
add -I/usr/local/ssl/include, because the openssl header files contain
#include <openssl/rsa.h>.

But, running gmake ends in several other errors (attn very long):

cd ./src/; make ; cd ..
gcc -g -O2 -I/opt/openssl/include -I/opt/openssl/include/openssl 
-DHAVE_CONFIG_H -L/opt/openssl/lib  -lssl -lcrypto -o nrpe -lnsl 
-lsocket nrpe.c utils.c
In file included from ../common/common.h:24,
                  from nrpe.c:21:
../common/config.h:54: syntax error before `typedef'
In file included from /usr/include/sys/types.h:24,
                  from /usr/include/strings.h:11,
                  from ../common/config.h:74,
                  from ../common/common.h:24,
                  from nrpe.c:21:
/usr/include/sys/machtypes.h:33: syntax error before `typedef'
In file included from nrpe.c:21:
../common/common.h:66: parse error before `u_int32_t'
../common/common.h:66: warning: no semicolon at end of struct or union
../common/common.h:69: parse error before `}'
../common/common.h:69: warning: data definition has no type or storage class
In file included from nrpe.c:22:
../common/config.h:54: syntax error before `typedef'
In file included from nrpe.c:23:
nrpe.h:31: syntax error before `typedef'
In file included from utils.h:35,
                  from nrpe.c:24:
../common/config.h:54: syntax error before `typedef'
In file included from nrpe.c:24:
utils.h:38: syntax error before `void'
nrpe.c:47: parse error before `*'
nrpe.c: In function `handle_connection':
nrpe.c:692: `u_int32_t' undeclared (first use in this function)
nrpe.c:692: (Each undeclared identifier is reported only once
nrpe.c:692: for each function it appears in.)
nrpe.c:692: parse error before `calculated_crc32'
nrpe.c:694: `packet' undeclared (first use in this function)
nrpe.c:694: parse error before `receive_packet'
nrpe.c:749: `receive_packet' undeclared (first use in this function)
nrpe.c:899: `send_packet' undeclared (first use in this function)
nrpe.c:912: parse error before `0L'
nrpe.c:913: `calculated_crc32' undeclared (first use in this function)
nrpe.c: At top level:
nrpe.c:1258: parse error before `*'
nrpe.c: In function `validate_request':
nrpe.c:1259: `u_int32_t' undeclared (first use in this function)
nrpe.c:1259: parse error before `packet_crc32'
nrpe.c:1271: `packet_crc32' undeclared (first use in this function)
nrpe.c:1271: `pkt' undeclared (first use in this function)
nrpe.c:1273: `calculated_crc32' undeclared (first use in this function)
nrpe.c:1273: `packet' undeclared (first use in this function)
nrpe.c: In function `process_macros':
nrpe.c:1378: warning: assignment makes pointer from integer without a cast
nrpe.c:1378: warning: assignment makes pointer from integer without a cast
In file included from ../common/common.h:24,
                  from utils.c:32:
../common/config.h:54: syntax error before `typedef'
In file included from /usr/include/sys/types.h:24,
                  from /usr/include/strings.h:11,
                  from ../common/config.h:74,
                  from ../common/common.h:24,
                  from utils.c:32:
/usr/include/sys/machtypes.h:33: syntax error before `typedef'
In file included from utils.c:32:
../common/common.h:66: parse error before `u_int32_t'
../common/common.h:66: warning: no semicolon at end of struct or union
../common/common.h:69: parse error before `}'
../common/common.h:69: warning: data definition has no type or storage class
In file included from utils.h:35,
                  from utils.c:33:
../common/config.h:54: syntax error before `typedef'
In file included from utils.c:33:
utils.h:38: syntax error before `void'
*** Error code 1
make: Fatal error: Command failed for target `nrpe'
Current working directory /export/src/nrpe-2.0b3/src
*** Error code 1
make: Fatal error: Command failed for target `all'


I have gcc 2.95.3, GNU make 3.79.1. My guess is that the errors occur
because there are typedefs and other stuff from the Linux world, and
therefor not working on Solaris.

Best regards,
Alex Kuehne



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
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





More information about the Users mailing list