Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-15-2008, 04:59 PM   #1
Registered: Feb 2004
Location: SoCal
Distribution: OpenBSD, Ubuntu, RedHat, Fedora Core, OpenSuse
Posts: 57

Rep: Reputation: 15
Nagios nrpe undefined reference to `get_dh512'


I'm trying to install the nrpe version 2.11 on a remote client host Centos 5.1 and I'm getting this error below. Can anyone help? Thanks

[root@test1 nrpe-2.11]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/usr/local/src/nagios/nrpe-2.11/src'
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -ldl -L/usr/lib64  -lssl -lcrypto -lnsl -lwrap
nrpe.c: In function āmainā:
nrpe.c:244: warning: assignment makes pointer from integer without a cast
/tmp/cc3msxw1.o: In function `main':
/usr/local/src/nagios/nrpe-2.11/src/nrpe.c:244: undefined reference to `get_dh512'
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/usr/local/src/nagios/nrpe-2.11/src'
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-17-2008, 04:02 AM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Originally Posted by HiOctane21 View Post
/usr/local/src/nagios/nrpe-2.11/src/nrpe.c:244: undefined reference to `get_dh512'
From the code it seems to have to do with (incompatible?) version of OpenSSL. Since you're using CentOS, is there any compelling reason not to use the DAG repo Nrpe?
Old 03-19-2009, 06:11 PM   #3
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 2
invalid dh.h

After looking at alternate solutions, the source of the get_dh512 is an invalid generation of dh.h.

The generation of dh.h occurs when the command:

openssl dhcparam -C 512

Is run as part of the configure script.

If you'll look at README.SSL, it discusses this process.

If you create your own dh.h, the code will compile properly. To do this, use 'openssl dhparam -C 512', and capture the C-code output of the command. Place this code into include/dh.h and voila, the code will compile.
2 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios + nrpe configuration aeby Linux - Server 6 05-29-2012 11:52 AM
Nagios/nrpe: SSL Issues Killbot_5000 Linux - Security 18 09-21-2010 05:27 PM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM
Nagios/NRPE issue JF1980 Linux - Security 1 05-18-2006 02:59 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration