From owner-freebsd-ports@FreeBSD.ORG Mon Aug 26 16:02:46 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 038D4399; Mon, 26 Aug 2013 16:02:46 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 881852D7A; Mon, 26 Aug 2013 16:02:45 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1VDzFb-000Ylb-Rw>; Mon, 26 Aug 2013 18:02:43 +0200 Received: from f052085051.adsl.alicedsl.de ([78.52.85.51] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1VDzFb-003jks-N3>; Mon, 26 Aug 2013 18:02:43 +0200 Date: Mon, 26 Aug 2013 18:02:43 +0200 From: "O. Hartmann" To: Dimitry Andric Subject: Re: print/cups: 10.0-CURRENT renders cups unusable / recompilation fails due to missing libiconv Message-ID: <20130826180243.67d1a9ca@thor.walstatt.dyndns.org> In-Reply-To: References: <20130826155412.3f92b44a@telesto> Organization: FU Berlin X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ZLgPI4ARdkNHoch957b7gSY"; protocol="application/pgp-signature" X-Originating-IP: 78.52.85.51 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 16:02:46 -0000 --Sig_/ZLgPI4ARdkNHoch957b7gSY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 26 Aug 2013 16:24:26 +0200 Dimitry Andric wrote: [...] > > 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"=20 > >=20 > > [...] > > cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler > > -L/usr/local/lib -Wl,-rpath=3D/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' >=20 > ... but maybe I can help here. This is due to iconv being enabled in > the base system, as I pointed out here: >=20 > http://lists.freebsd.org/pipermail/freebsd-ports/2013-August/085459.html >=20 > The easiest workaround for now is to force LDFLAGS to contain -liconv > in the port's Makefile, e.g.: >=20 > Index: print/cups-base/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- print/cups-base/Makefile (revision 324846) > +++ print/cups-base/Makefile (working copy) > @@ -23,7 +23,7 @@ > GNU_CONFIGURE=3D yes > CFLAGS+=3D ${PTHREAD_CFLAGS} > CPPFLAGS+=3D -I${LOCALBASE}/include > -LDFLAGS+=3D -L${LOCALBASE}/lib > +LDFLAGS+=3D -L${LOCALBASE}/lib -liconv > DSOFLAGS=3D -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib ${LDFLAGS} > CONFIGURE_ENV=3D DSOFLAGS=3D"${DSOFLAGS}" > CONFIGURE_ARGS+=3D --localstatedir=3D/var \ >=20 > -Dimitry >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" Sorry, I missed the detailed explanation and how-to. Applying the add on th LDCONFIG solves the problem. Thank you very much Oliver --Sig_/ZLgPI4ARdkNHoch957b7gSY Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSG3wjAAoJEOgBcD7A/5N8+BYH/iToGqRU9yIkCPiftO1KNLfJ 1dgs8cGu85QujxtN4pfKNDCtQQb0zV3OcR903iVqD5Y8HyNXbKFVvIzCDM39UZpz kT+BJRr2wLQPunGR5TTRc7x38PB+xRl4YamGDJPlPRqyQTzw3LJWuyl8uZ2e6Z68 sViSk30THz5mYJ3iml5sNWf1hS/5IjAhwaXu3btFkWh1ag00YQJHU5kwGrHikxYD 8SfUMz6Jee3FxEFACOGt1GnsTcAbI1IuwbNrpxo6JYeqr99k5C4NLmboF1/GOjPE /RJxKAbNI3qFqabeAVt+cjrUEa8cAcuABow5pOclS5F7bQM15B/SvT4z2OWQrC8= =npls -----END PGP SIGNATURE----- --Sig_/ZLgPI4ARdkNHoch957b7gSY--