configure fails with error: cc: error: -R/usr/local/lib: unknown option -R The workaround is: --- work/idnkit-1.0-src/configure.old 2015-01-01 05:30:23.219909407 +0300 +++ work/idnkit-1.0-src/configure 2015-01-01 05:30:38.003908775 +0300 @@ -762,14 +762,14 @@ libiconv=$prefix fi ICONVINC="-I$libiconv/include" - ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" + ICONVLIB="-L$libiconv/lib -liconv" ;; *) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi ICONVINC="-I$libiconv/include" - ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" + ICONVLIB="-L$libiconv/lib -liconv" ;; esac My version of ports: Path: . Working Copy Root Path: /usr/ports URL: svn://svn.freebsd.org/ports/head/dns/idnkit Relative URL: ^/head/dns/idnkit Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 375911
Emm, dns/bind910 fails too with the same reason: cc -pthread -I/usr/ports/dns/bind910/work/bind-9.10.1-P1 -I../.. -I./include -I/usr/ports/dns/bind910/work/bind-9.10.1-P1/lib/dns/include -I../../lib/dns/include -I/usr/ports/dns/bind910/work/bind-9.10.1-P1/lib/bind9/include -I../../lib/bind9/include -I/usr/ports/dns/bind910/work/bind-9.10.1-P1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include -I/usr/ports/dns/bind910/work/bind-9.10.1-P1/lib/lwres/include -I../../lib/lwres/unix/include -I../../lib/lwres/include -I/usr/ports/dns/bind910/work/bind-9.10.1-P1/lib/isccfg/include -I../../lib/isccfg/include -I/usr/local/include -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"9.10.1-P1\" -DOPENSSL -DDIG_SIGCHASE=1 -D_THREAD_SAFE -O2 -pipe -march=k8-sse3 -fstack-protector -fno-strict-aliasing -I/usr/local/include/libxml2 -I/usr/local/include -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -Wl,-rpath,/usr/lib:/usr/local/lib -fstack-protector -o digtmp2 ${BASEOBJS} dig-symtbl.o ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isc/libisc-nosymtbl.a -L/usr/local/lib -lidnkit -L/usr/local/lib -R/usr/local/lib -liconv -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm; ../../util/mksymtbl.pl -o dig-symtbl2.c digtmp2; done ; mv digtmp2 dig; rm -f digtmp0 digtmp1 digtmp2 dig-symtbl2.c; fi cc: error: unknown argument: '-R/usr/local/lib' *** Error code 1 Stop. make[4]: stopped in /usr/ports/dns/bind910/work/bind-9.10.1-P1/bin/dig *** Error code 1 Stop. make[3]: stopped in /usr/ports/dns/bind910/work/bind-9.10.1-P1/bin *** Error code 1 Stop. make[2]: stopped in /usr/ports/dns/bind910/work/bind-9.10.1-P1 *** Error code 1 Stop. make[1]: stopped in /usr/ports/dns/bind910 *** Error code 1 Stop. make: stopped in /usr/ports/dns/bind910 The workaround is the same.
"Emm, dns/bind910 fails too with the same reason:" you need to open a separate PR for that.
This port is unmaintained. You need to provide this as an attachment, a patch to the port itself (a patch that adds the patch and also bumps the port revision in the makefile)
Sergey, I was not able to replicate this error on both supported releases as well as VMs with legacy 4.11, 6.4, 7.4, and 8.3 releases. cc: error: -R/usr/local/lib: unknown option -R In all cases, the -R flag is recognized as valid options on all these supported (and unsupported) releases. Portsmon is also showing no build issues (http://portsmon.FreeBSD.org/portoverview.py?category=dns&portname=idnkit). I'm taking this PR for now but will close it in two weeks as unable to replicate if there's no feedback on how to do so.
Unable to replicate/feedback timeout