[Nagiosplug-devel] [ nagiosplug-Bugs-1476451 ] pst3 does not exist

SourceForge.net noreply at sourceforge.net
Thu May 11 22:46:04 CEST 2006


Bugs item #1476451, was opened at 2006-04-25 18:54
Message generated for change (Comment added) made by bubbafat
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1476451&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
>Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Jason Kau (bubbafat)
Assigned to: Ton Voon (tonvoon)
Summary: pst3 does not exist

Initial Comment:
On Solaris, check_procs on nagios-plugins-1.4.3 is 
trying to use pst3 instead of a 'ps'.  There is no 
pst3.c in the 1.4.3, 1.4.2, 1.4.2 tarballs and it's 
not in HEAD-200604251152 either but it's in CVS.  What 
is the deal with this file?

darlene:/home/gtri/nagios/nagios-plugins-1.4.2> grep 
PS_COMMAND config.h
#define PS_COMMAND "/usr/bin/ps -Ao 's uid pid ppid 
vsz rss pcpu comm args'"

darlene:/home/gtri/nagios/nagios-plugins-1.4.3> grep 
PS_COMMAND config.h
#define PS_COMMAND "/usr/local/nagios/libexec/pst3"

----------------------------------------------------------------------

>Comment By: Jason Kau (bubbafat)
Date: 2006-05-12 01:42

Message:
Logged In: YES 
user_id=1495257

Note quite:


gcc -g -O2 -o pst3 pst3.o  -L/home/gtri/nagios/nagios
plugins-HEAD-200605081152/plugins-
root ../intl/libintl.a /usr/local/lib/libiconv.so -
L/usr/lib -L/usr/openwin/lib -L/usr/local/lib -
L/usr/local/ssl/lib -lgen -lsocket -lssl -lcrypto -
R/usr/local/lib -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
kvm_getproc                         pst3.o
kvm_getu                            pst3.o
kvm_close                           pst3.o
kvm_getcmd                          pst3.o
kvm_open                            pst3.o
ld: fatal: Symbol referencing errors. No output written to 
pst3
collect2: ld returned 1 exit status
make[2]: *** [pst3] Error 1
make[2]: Leaving directory `/home/gtri/nagios/nagios-
plugins-HEAD-200605081152/plugins-root'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gtri/nagios/nagios-
plugins-HEAD-200605081152'
make: *** [all] Error 2

It would appear that a -lkvm is missing.  I added it to the 
LIBS= line in the Makefile and viola:

/bin/bash ../libtool --mode=link gcc  -g -O2  -L. -
R/usr/local/lib -o pst3  pst3.o  ../intl/libintl.a -liconv -
lgen -lsocket  -lssl -lcrypto -lkvm
gcc -g -O2 -o pst3 pst3.o  -L/home/gtri/nagios/nagios-
plugins-HEAD-200605081152/plugins-
root ../intl/libintl.a /usr/local/lib/libiconv.so -
L/usr/lib -L/usr/openwin/lib -L/usr/local/lib -
L/usr/local/ssl/lib -lgen -lsocket -lssl -lcrypto -lkvm -
R/usr/local/lib -R/usr/local/lib
darlene:/home/gtri/nagios/nagios-plugins-HEAD-
200605081152/plugins-root>


----------------------------------------------------------------------

Comment By: Ton Voon (tonvoon)
Date: 2006-04-28 04:46

Message:
Logged In: YES 
user_id=664364

Jason,

Thanks for the report. Just applied a fix to CVS. Please try the snapshot and let 
us know: http://nagiosplug.sf.net/snapshot.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1476451&group_id=29880




More information about the Devel mailing list