Date: Sun, 12 Aug 2007 12:13:03 GMT From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/115443: incorrect library path in perl based nagios-plugins Message-ID: <200708121213.l7CCD36F050027@www.freebsd.org> Resent-Message-ID: <200708121220.l7CCK1wf083442@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115443 >Category: ports >Synopsis: incorrect library path in perl based nagios-plugins >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 12 12:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Stefan Kaltenbrunner >Release: 6.2 >Organization: >Environment: FreeBSD borg.postgresql.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:55:55 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386 >Description: installing the net-mgmt/netsaint-plugins results in all the perl based plugins to be broken in the same way: # /usr/local/libexec/nagios/check_mailq -h Can't locate utils.pm in @INC (@INC contains: nagios /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/libexec/nagios/check_mailq line 36. BEGIN failed--compilation aborted at /usr/local/libexec/nagios/check_mailq line 36. >How-To-Repeat: simply install the net-mgmt/nagios-plugins and try to use one of the perl (not C) based plugins >Fix: the problem is caused by incorrect/missing substitution of the path to the perl module utils.pm at build time. simply changing: use lib "nagios"; to use lib "/usr/local/libexec/nagios"; in each of the affected plugins solves the problem. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708121213.l7CCD36F050027>