Can't compile plugins - undefined reference to `getloadavg'

David Gurr davidgu at yahoo.com
Wed Mar 5 16:03:54 CET 2003


I'm trying to install the plugins on an old Caldera
OpenLinux 2.3 system, with a view to also installing
nrpe.

I've unpacked the nagios-plugins-1.3.0-beta3 tarball,
and  successfully run configure. When I do "make all",
it fails on building check_load with the following
error:

gcc  -g -O2 -L. -o check_load  check_load.o utils.o
../lib/libnagiosplug.a popen.o -lutil
check_load.o: In function `main':
/tmp/nagios-plugins-1.3.0-beta3/plugins/check_load.c:80:
undefined reference to `getloadavg'
make[1]: *** [check_load] Error 1

Earlier, the libnagiosplug.a library seemed to get
built OK:

gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I../plugins
-I.    -g -O2 -c getopt.c
gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I../plugins
-I.    -g -O2 -c getopt1.c
gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I../plugins
-I.    -g -O2 -c getloadavg.c
rm -f libnagiosplug.a
ar cru libnagiosplug.a getopt.o getopt1.o getloadavg.o
ranlib libnagiosplug.a

Any suggestions?

Thx


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.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