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. 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. How-To-Repeat: Install net-mgmt/nagios-plugins without NLS and EXTRAOPTS, then try to install net-mgmt/nagios-check_memcached_paranoid.
Responsible Changed From-To: freebsd-ports-bugs->demon Over to maintainer (via the GNATS Auto Assign Tool)
Responsible Changed From-To: demon->mat Take
Responsible Changed From-To: mat->kuriyama 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.
A commit references this bug: Author: kuriyama Date: Sat Nov 22 22:40:38 UTC 2014 New revision: 373112 URL: https://svnweb.freebsd.org/changeset/ports/373112 Log: Add a hack to change linking objects which should be changed by net-mgmt/nagios-plugins OPTIONS setting. PR: ports/187772 Reported by: Lukasz Wasikowski <lukasz@wasikowski.net> Changes: head/net-mgmt/nagios-check_memcached_paranoid/Makefile
Fix committed, thanks!