From owner-freebsd-ports Sat Feb 16 20:30:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E7BBC37B405 for ; Sat, 16 Feb 2002 20:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1H4U1r33040; Sat, 16 Feb 2002 20:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DA36A37B405 for ; Sat, 16 Feb 2002 20:21:33 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1H4LXJ29950; Sat, 16 Feb 2002 20:21:33 -0800 (PST) (envelope-from nobody) Message-Id: <200202170421.g1H4LXJ29950@freefall.freebsd.org> Date: Sat, 16 Feb 2002 20:21:33 -0800 (PST) From: Tatsuto Toyonaga To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/35021: graphics/graphviz build fails in certain circumstanses Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35021 >Category: ports >Synopsis: graphics/graphviz build fails in certain circumstanses >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 16 20:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tatsuto Toyonaga >Release: RELENG_4 >Organization: n/a >Environment: FreeBSD neon 4.5-STABLE FreeBSD 4.5-STABLE #2: Sat Feb 16 03:47:57 JST 2002 root@neon:/usr/obj/usr/src/sys/NEON i386 >Description: graphviz compilation fails when system has iconv installed. It's because top-level configure script of graphviz finds iconv and sets #define HAVE_ICONV 1. By this flag gd lib included with graphviz linked with libiconv. But this breaks the build as follows: cc -O -pipe -march=pentiumpro "-DDATE=\"Sun Feb 17 13:15:49 JST 2002\"" -L/usr/local/lib -o dot dot.o common/.libs/libdotneato.al dotgen/.libs/libdot.al common/.libs/libdotneato.al ../pathplan/.libs/libpathplan.al ../graph/.libs/libgraph.al ../cdt/.libs/libcdt.al ../gd/.libs/libgd.al -lm -lfreetype -lpng -ljpeg -lz ../gd/.libs/libgd.al(gdkanji.lo): In function `do_convert': gdkanji.lo(.text+0x50f): undefined reference to `iconv_open' gdkanji.lo(.text+0x584): undefined reference to `iconv' gdkanji.lo(.text+0x601): undefined reference to `iconv_close' gmake[3]: *** [dot] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-1.7.7/dotneato' >How-To-Repeat: install iconv before and try build graphviz >Fix: quick way to fix is add -liconv to dotneat/Makefile. It might be better to let this port depends gd ports instead of bundled gd source because we have japanese/gd variant and both graphics/gd and japanese/gd does not rely on libiconv(and I want japanse feature in gd). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message