From owner-freebsd-ports@FreeBSD.ORG Mon Aug 26 14:24:40 2013 Return-Path: Delivered-To: freebsd-ports@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 ESMTP id 4AADF94A; Mon, 26 Aug 2013 14:24:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0C84627A3; Mon, 26 Aug 2013 14:24:39 +0000 (UTC) Received: from coleburn.avinity.tv (host-229-161-243.77.avinity.tv [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3A0055C43; Mon, 26 Aug 2013 16:24:29 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: print/cups: 10.0-CURRENT renders cups unusable / recompilation fails due to missing libiconv From: Dimitry Andric In-Reply-To: <20130826155412.3f92b44a@telesto> Date: Mon, 26 Aug 2013 16:24:26 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <20130826155412.3f92b44a@telesto> To: O. Hartmann X-Mailer: Apple Mail (2.1508) Cc: FreeBSD CURRENT , FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 14:24:40 -0000 On Aug 26, 2013, at 15:54, O. Hartmann wrote: > Today I update a box to 10.0-CURRENT #0 r254896: Mon Aug 26 09:42:48 > CEST 2013 amd64. Bevor the update this morning, I ran a box with the > sources from around last Friday and port print/cups was working fine > so far. > > After building/installation of world/kernel today as of r254896 the > cups daemon didn't respond when accessd locally via port 631, printing > is rejected with messages like "reset by peer" I can't help you with this... > and furthermore, when I > thought the cups binary might be out of sync with the environment, I > tried to recompile the whole preint/cups installation, but this fails > now in a close to EPICAL way not finding "libiconv" > > [...] > cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler > -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib > -Wl,-R/usr/local/lib -Wall -Wno-format-y2k -Wunused -fPIC -Os -g > -fstack-protector -Wno-tautological-compare -o bannertops bannertops.o > pstext.o common.o -lcupsimage \ -lcups -lssl -lcrypto -lz -pthread > -lcrypt -lm -lssp_nonshared ../cups/libcups.so: undefined reference to > `libiconv' ../cups/libcups.so: undefined reference to > `libiconv_close' ../cups/libcups.so: undefined reference to > `libiconv_open' ... but maybe I can help here. This is due to iconv being enabled in the base system, as I pointed out here: http://lists.freebsd.org/pipermail/freebsd-ports/2013-August/085459.html The easiest workaround for now is to force LDFLAGS to contain -liconv in the port's Makefile, e.g.: Index: print/cups-base/Makefile =================================================================== --- print/cups-base/Makefile (revision 324846) +++ print/cups-base/Makefile (working copy) @@ -23,7 +23,7 @@ GNU_CONFIGURE= yes CFLAGS+= ${PTHREAD_CFLAGS} CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib -liconv DSOFLAGS= -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib ${LDFLAGS} CONFIGURE_ENV= DSOFLAGS="${DSOFLAGS}" CONFIGURE_ARGS+= --localstatedir=/var \ -Dimitry