From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 25 02:50:02 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 43453F8B for ; Tue, 25 Feb 2014 02:50:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 182C314F8 for ; Tue, 25 Feb 2014 02:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1P2o1jl042303 for ; Tue, 25 Feb 2014 02:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1P2o11c042302; Tue, 25 Feb 2014 02:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 25 Feb 2014 02:50:01 GMT Resent-Message-Id: <201402250250.s1P2o11c042302@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis 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 A0E19F7C for ; Tue, 25 Feb 2014 02:49:47 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 757F614EE for ; Tue, 25 Feb 2014 02:49:47 +0000 (UTC) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s1P2nkva075790 for ; Mon, 24 Feb 2014 18:49:46 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost.catspoiler.org [127.0.0.1]) by mousie.catspoiler.org (8.14.7/8.14.7) with ESMTP id s1P2nkaK068421 for ; Mon, 24 Feb 2014 18:49:46 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.7/8.14.7/Submit) id s1P2nk1e068420; Mon, 24 Feb 2014 18:49:46 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201402250249.s1P2nk1e068420@mousie.catspoiler.org> Date: Mon, 24 Feb 2014 18:49:46 -0800 (PST) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/187014: print/xdvik fails with iconv linker errors X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 02:50:02 -0000 >Number: 187014 >Category: ports >Synopsis: print/xdvik fails with iconv linker errors >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 25 02:50:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 11.0-CURRENT i386 >Organization: FreeBSD project >Environment: System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #70 r262340M: Sat Feb 22 15:58:39 PST 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB i386 Ports revision r345674 >Description: The build phase for print/xdvik fails at this point: cc -o xdvi-motif browser.o dl_list.o dvi-draw.o dvi-init.o dvisel.o encodings.o events.o exit-handlers.o filehist.o font-open.o gf.o string_list.o hypertex.o image-magick.o main.o mime.o my-snprintf.o my-vsnprintf.o pagehist.o pk.o print-internal.o psdps.o psgs.o psheader.o psnews.o read-mapfile.o search-internal.o special.o string-utils.o tfmload.o util.o vf.o xdvi.o xserver-info.o x_util.o -Wl,--allow-multiple-definition ./gui/libgui.a -L/usr/local/lib /usr/local/lib/libt1.so ../kpathsea/.libs/libkpathsea.a /usr/local/lib/libXm.so /usr/local/lib/libXft.so /usr/local/lib/libfontconfig.so /usr/local/lib/libexpat.so /usr/local/lib/libfreetype.so -lz -lbz2 -lpng15 /usr/local/lib/libXrender.so /usr/local/lib/libjpeg.so -lpng /usr/local/lib/libXmu.so /usr/local/lib/libXt.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libXp.so /usr/local/lib/libXext.so /usr/local/lib/libXpm.so /usr/local/lib/libX11.so /usr/local/lib/libxcb.so /usr/local/lib/libXau.so /usr/loc! al/lib/libXdmcp.so /usr/local/lib/libpthread-stubs.so -lrpcsvc -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib encodings.o: In function `cjk2unicode': encodings.c:(.text+0x12f): undefined reference to `libiconv_open' encodings.c:(.text+0x17a): undefined reference to `libiconv' encodings.o: In function `close_iconv': encodings.c:(.text+0x33d2): undefined reference to `libiconv_close' util.o: In function `iconv_convert_string': util.c:(.text+0x2950): undefined reference to `libiconv_open' util.c:(.text+0x29e5): undefined reference to `libiconv' util.c:(.text+0x29f9): undefined reference to `libiconv_close' util.c:(.text+0x2b23): undefined reference to `libiconv_close' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [xdvi-motif] Error 1 gmake[3]: Leaving directory `/usr/ports/print/xdvik/work/xdvik-22.84.16/texk/xdvik' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/print/xdvik/work/xdvik-22.84.16/texk' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/print/xdvik/work/xdvik-22.84.16' *** Error code 1 Stop. make: stopped in /usr/ports/print/xdvik The problem seems to be that the build picks up /usr/local/include/iconv.h instead of /usr/include/iconv.h. The former include file has #define statements that rename iconv_open to libiconv_open, etc. This would probably work if the port also listed libiconv as a dependency and linked against /usr/local/lib/libiconv*, but neither of these is true. The configure script doesn't add -L/usr/local/lib to the command line when it is checked to see if it should link with -liconv. This probably used to work before iconv was added to the libc because configure would not have found iconv support. >How-To-Repeat: Attempt to build the port on a version of FreeBSD that includes iconv in libc. >Fix: >Release-Note: >Audit-Trail: >Unformatted: