From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 23 16:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B5B59AFB for ; Fri, 23 Aug 2013 16:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) 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 95C7A22F7 for ; Fri, 23 Aug 2013 16:40:00 +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 r7NGe0DG099001 for ; Fri, 23 Aug 2013 16:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7NGe04k099000; Fri, 23 Aug 2013 16:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 23 Aug 2013 16:40:00 GMT Resent-Message-Id: <201308231640.r7NGe04k099000@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, Norikatsu Shigemura Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 17872AE5 for ; Fri, 23 Aug 2013 16:37:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DF76C22ED for ; Fri, 23 Aug 2013 16:37:50 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7NGboIf028304 for ; Fri, 23 Aug 2013 16:37:50 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7NGborF028300; Fri, 23 Aug 2013 16:37:50 GMT (envelope-from nobody) Message-Id: <201308231637.r7NGborF028300@oldred.freebsd.org> Date: Fri, 23 Aug 2013 16:37:50 GMT From: Norikatsu Shigemura To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181489: [ports/graphics/djvulibre] Fix build error on 10-current X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 16:40:00 -0000 >Number: 181489 >Category: ports >Synopsis: [ports/graphics/djvulibre] Fix build error on 10-current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 23 16:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Norikatsu Shigemura >Release: FreeBSD/amd64 on 10-current >Organization: Personal >Environment: FreeBSD pelsia.ninth-nine.com 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r254598M: Thu Aug 22 05:18:15 JST 2013 nork@pelsia.ninth-nine.com:/usr/obj/usr/src/sys/PELSIA amd64 >Description: djvulibre is depends on converters/iconv, but no use. In 10-current, unfortunatly, djvulibre can find iconv functions. As a result, djvulibre has build error like following. --- bzz --- libtool: link: clang++ -o .libs/bzz -DHAVE_CONFIG_H -I.. -I.. -I../libdjvu -I. -DNDEBUG -Wall -Wno-non-virtual-dtor -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -DTHREADMODEL=POSIXTHREADS -O2 -pipe -fvectorize -march=corei7 -fno-strict-aliasing bzz.o -pthread ../libdjvu/.libs/libdjvulibre.so -L/usr/local/lib /usr/local/lib/libjpeg.so -lm -pthread -Wl,-rpath -Wl,/usr/local/lib ./libdjvu/.libs/libdjvulibre.so: undefined reference to `libiconv' ./libdjvu/.libs/libdjvulibre.so: undefined reference to `libiconv_close' ./libdjvu/.libs/libdjvulibre.so: undefined reference to `libiconv_open' clang++: error: linker command failed with exit code 1 (use -v to see invocation) *** [bzz] Error code 1 >How-To-Repeat: On 10-current, /usr/include/iconv.h is exists, and undef __LIBICONV_COMPAT on /usr/include/_libiconv_compat.h. $ cd /usr/ports/graphics/djvulibre/ $ make : checking iconv.h usability... yes checking iconv.h presence... yes : checking for iconv... yes : >Fix: At least, in this time, no longer use iconv. So disable dependency on iconv. And preserve effect of stock iconv. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 325271) +++ Makefile (working copy) @@ -15,7 +15,7 @@ LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \ tiff:${PORTSDIR}/graphics/tiff -USES= pathfix iconv +USES= pathfix GNU_CONFIGURE= yes CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \ JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \ @@ -22,7 +22,8 @@ TIFF_CFLAGS="-I${LOCALBASE}/include" \ TIFF_LIBS="-L${LOCALBASE}/lib -ltiff" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" CONFIGURE_ARGS= --enable-threads=pthread --enable-shared USE_LDCONFIG= yes CONFLICTS= djvulibre-nox11-3* >Release-Note: >Audit-Trail: >Unformatted: