Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2014 21:49:18 GMT
From:      Lukasz Wasikowski <lukasz@wasikowski.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187772: net-mgmt/nagios-plugins fails if net-mgmt/nagios-plugins is without EXTRAOPTS or NLS
Message-ID:  <201403192149.s2JLnIas088632@cgiserv.freebsd.org>
Resent-Message-ID: <201403192150.s2JLo0ht063593@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187772
>Category:       ports
>Synopsis:       net-mgmt/nagios-plugins fails if net-mgmt/nagios-plugins is without EXTRAOPTS or NLS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 21:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Lukasz Wasikowski
>Release:        FreeBSD 9.2-RELEASE-p3
>Organization:
>Environment:
FreeBSD ashnazg.cadera.com.pl 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #1 r263118: Thu Mar 13 23:07:02 CET 2014     root@ashnazg.cadera.com.pl:/usr/obj/usr/src/sys/ASHNAZG  amd64
>Description:
net-mgmt/nagios-check_memcached_paranoid fails to compile if EXTRAOPTS is not set in net-mgmt/nagios-plugins.

===>  Building for check_memcached_paranoid-0.20131004_1
cd
/wrkdirs/usr/ports/net-mgmt/nagios-check_memcached_paranoid/work/check_memcached_paranoid-0.20131004;
 NDIR=$(cd /usr/ports/net-mgmt/nagios-plugins && make -VWRKSRC);  cc -O2
-pipe -march=nocona -fno-strict-aliasing
-DLOCALEDIR=\"/usr/local/share/locale\" -D__need_getopt  -I${NDIR}
-I${NDIR}/plugins -I${NDIR}/gl -I${NDIR}/lib -I/usr/local/include  -o
check_memcached_paranoid  ${NDIR}/plugins/netutils.o
${NDIR}/plugins/utils.o  ${NDIR}/lib/utils_base.o
${NDIR}/lib/extra_opts.o ${NDIR}/lib/parse_ini.o  ${NDIR}/gl/getopt.o
${NDIR}/gl/getopt1.o  ${NDIR}/gl/sha1.o  -L/usr/local/lib -lintl
-lmemcached check_memcached_paranoid.c
cc:
/wrkdirs/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5/lib/extra_opts.o:
No such file or directory
cc:
/wrkdirs/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5/lib/parse_ini.o:
No such file or directory
*** [do-build] Error code 1

With EXTRAOPTS enabled still fails, but in different way:

cd
/wrkdirs/usr/ports/net-mgmt/nagios-check_memcached_paranoid/work/check_memcached_paranoid-0.20131004;
 NDIR=$(cd /usr/ports/net-mgmt/nagios-plugins && make -VWRKSRC);  cc -O2
-pipe -march=nocona -fno-strict-aliasing
-DLOCALEDIR=\"/usr/local/share/locale\" -D__need_getopt  -I${NDIR}
-I${NDIR}/plugins -I${NDIR}/gl -I${NDIR}/lib -I/usr/local/include  -o
check_memcached_paranoid  ${NDIR}/plugins/netutils.o
${NDIR}/plugins/utils.o  ${NDIR}/lib/utils_base.o
${NDIR}/lib/extra_opts.o ${NDIR}/lib/parse_ini.o  ${NDIR}/gl/getopt.o
${NDIR}/gl/getopt1.o  ${NDIR}/gl/sha1.o  -L/usr/local/lib -lintl
-lmemcached check_memcached_paranoid.c
/usr/bin/ld: cannot find -lintl

With EXTRAOPTS and NLS enabled it finally works.
>How-To-Repeat:
Install net-mgmt/nagios-plugins without NLS and EXTRAOPTS, then try to install net-mgmt/nagios-check_memcached_paranoid.
>Fix:
I don't know if there is a sane way to check for EXTRAOPTS and NLS
flags, but if it could be checked then nagios-check_memcached_paranoid
should yell about it.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403192149.s2JLnIas088632>