From nobody@FreeBSD.org  Wed Mar 19 21:49:19 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 827DF6C6
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 21:49:19 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 54D041CC
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 21:49:19 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2JLnI1q088633
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 21:49:18 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2JLnIas088632;
	Wed, 19 Mar 2014 21:49:18 GMT
	(envelope-from nobody)
Message-Id: <201403192149.s2JLnIas088632@cgiserv.freebsd.org>
Date: Wed, 19 Mar 2014 21:49:18 GMT
From: Lukasz Wasikowski <lukasz@wasikowski.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net-mgmt/nagios-plugins fails if net-mgmt/nagios-plugins is without EXTRAOPTS or NLS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    kuriyama
>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:  Mon May 05 13:14:39 UTC 2014
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->demon 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 19 21:50:03 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187772 
Responsible-Changed-From-To: demon->mat 
Responsible-Changed-By: mat 
Responsible-Changed-When: Sat Apr 12 20:56:29 UTC 2014 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187772 
Responsible-Changed-From-To: mat->kuriyama 
Responsible-Changed-By: mat 
Responsible-Changed-When: Mon May 5 13:12:47 UTC 2014 
Responsible-Changed-Why:  
The problem is in net-mgmt/nagios-check_memcached_paranoid, it is certainly 
missing USES=gettext, as it needs it, and it should do something about 
extraopts if not there. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187772 
>Unformatted:
