nrpe.2.5.2 and 2.7.1 solaris 8 compile errors
Kyle O'Donnell
kyle.odonnell at gmail.com
Fri Mar 30 16:40:01 CEST 2007
Hi,
Has anyone had problems compiling nrpe on solaris8:?
cd ./src/; make ; cd ..
make[1]: Entering directory `/opt/src/nrpe-2.7.1/src'
gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -lnsl -lsocket -liberty
utils.c: In function `randomize_buffer':
utils.c:106: error: `RAND_MAX' undeclared (first use in this function)
utils.c:106: error: (Each undeclared identifier is reported only once
utils.c:106: error: for each function it appears in.)
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/opt/src/nrpe-2.7.1/src'
The fix seems to be adding:
#define RAND_MAX 2048
(where 2048 is just a random number that looked pretty :)
in src/utils.c
--kyleo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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