[Nagiosplug-help] help to compile nrpe 2.0 b 4 on linux

Iberê Luiz Di Tizio Junior ibere.tizio at supportcomm.com.br
Mon Jul 21 15:57:29 CEST 2003


Hi,
My name is Ibere, I am a brasilian network administrator, and I ´m trying to implement nagios in my office.

I had compile without problems nrpe in 6 linux boxes, but in 3 boxes I had this problem when I try to "make all" :
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/kerberos/include -DHAVE_CONFIG_H -L/usr/local/ssl/lib -lssl -lcrypto -o nrpe -lnsl nrpe.c utils.c 
In file included from ../common/config.h:190, 
                       from ../common/common.h:24, 
                       from nrpe.c:21:
/usr/local/ssl/include/openssl/rsa.h:62: openssl/asn1.h: No such file or directory 
/usr/local/ssl/include/openssl/rsa.h:65: openssl/bio.h: No such file or directory 
/usr/local/ssl/include/openssl/rsa.h:67: openssl/bn.h: No such file or directory 
/usr/local/ssl/include/openssl/rsa.h:68: openssl/crypto.h: No such file or directory 
/usr/local/ssl/include/openssl/rsa.h:69: openssl/ossl_typ.h: No such file or directory 
In file included from ../common/config.h:191,
                      from ../common/common.h:24, 
                      from nrpe.c:21: 
/usr/local/ssl/include/openssl/crypto.h:68: openssl/stack.h: No such file or directory
<------------------------------------------------------------------------------------>

I try to copy all include files to a directory bellow
mkdir /usr/local/ssl/include/openssl/openssl
cp /usr/local/ssl/include/openssl  /usr/local/ssl/include/openssl/openssl

and tried to compile again, and the error change to:

[root at wa07 nrpe-2.0b4]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/home/jose.santos/nrpe-2.0b4/src'
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/kerberos/include -DHAVE_CONFIG_H -L/usr/local/ssl/lib  -lssl -lcrypto -o nrpe -lnsl nrpe.c utils.c
/tmp/ccTEbUBC.o: In function `get_dh512':
/home/jose.santos/nrpe-2.0b4/src/dh.h:19: undefined reference to `DH_new'
/home/jose.santos/nrpe-2.0b4/src/dh.h:20: undefined reference to `BN_bin2bn'
/home/jose.santos/nrpe-2.0b4/src/dh.h:21: undefined reference to `BN_bin2bn'
/home/jose.santos/nrpe-2.0b4/src/dh.h:23: undefined reference to `DH_free'
/tmp/ccTEbUBC.o: In function `main':
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:188: undefined reference to `SSL_library_init'
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:189: undefined reference to `SSL_library_init'
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:190: undefined reference to `SSLv23_server_method'
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:191: undefined reference to `SSL_load_error_strings'
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:192: undefined reference to `SSL_CTX_new'
/home/jose.santos/nrpe-2.0b4/src/nrpe.c:197: undefined reference to `SSL_CTX_set_cipher_list'
<------------------------------------------------------------------------------------>

Please, what I am doing wrong ??
Thanks a lot.

Iberê Luiz Di Tizio Jr.
ibere.tizio at supportcomm.com.br




More information about the Help mailing list