Bug 196410 - dns/idnkit: Fails to compile with integrated libiconv
Summary: dns/idnkit: Fails to compile with integrated libiconv
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason Unovitch
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2015-01-01 02:37 UTC by Sergey Zhmylove
Modified: 2015-09-19 20:15 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Zhmylove 2015-01-01 02:37:38 UTC
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
Comment 1 Sergey Zhmylove 2015-01-01 02:43:42 UTC
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.
Comment 2 John Marino freebsd_committer freebsd_triage 2015-02-06 17:47:26 UTC
"Emm, dns/bind910 fails too with the same reason:"

you need to open a separate PR for that.
Comment 3 John Marino freebsd_committer freebsd_triage 2015-02-06 17:49:01 UTC
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)
Comment 4 Jason Unovitch freebsd_committer freebsd_triage 2015-09-06 14:07:04 UTC
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.
Comment 5 Jason Unovitch freebsd_committer freebsd_triage 2015-09-19 20:15:02 UTC
Unable to replicate/feedback timeout