Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problems #121

Closed
Blai01 opened this issue May 16, 2017 · 2 comments
Closed

Installation problems #121

Blai01 opened this issue May 16, 2017 · 2 comments

Comments

@Blai01
Copy link

Blai01 commented May 16, 2017

I have a problem installing NRPE 3.1.0 in a SUSE Linuxe Enterprise 12 machine.

First I download the nrpe 3.1.0 tar

I decompress it

I cd into its directory

I run:

./configure --disable-ssl --enable-command-args

Then I run:

make all

Response is:

cd ./src/; make
make[1]: Entering directory '/tmp/nrpe-3.1.0/src'
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lnsl
/tmp/cckjPq8N.o: In function logit': /tmp/nrpe-3.1.0/src/./utils.c:518: undefined reference to va_start'
/tmp/nrpe-3.1.0/src/./utils.c:534: undefined reference to `va_end'
collect2: error: ld returned 1 exit status
Makefile:48: recipe for target 'nrpe' failed
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory '/tmp/nrpe-3.1.0/src'
Makefile:66: recipe for target 'all' failed
make: *** [all] Error 2

NRPE version 3.0.1 installs fine when typing these commands

@box293
Copy link
Contributor

box293 commented May 17, 2017

I cannot reproduce your issue. I followed these steps https://support.nagios.com/kb/article.php?id=515#SUSE and downloaded 3.1.0 (https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.1.0.tar.gz) and ./configure --disable-ssl --enable-command-args completes fine.

I then ran sudo zypper update to be sure I had the latest version of everything. Even after that I could not reproduce your issue.

cat /etc/*elease
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp2"
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2

@jfrickson
Copy link
Contributor

A fix has been in the maint branch for a few weeks, and will be released with version 3.1.1 fairly soon.

The fix is to add #include <stdvar.h> to the top of utils.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants