From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 17:44:03 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 217A7BCA for ; Thu, 12 Feb 2015 17:44:03 +0000 (UTC) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FD15254 for ; Thu, 12 Feb 2015 17:44:02 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id bs8so6272001wib.4 for ; Thu, 12 Feb 2015 09:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=BwztgZc309qp8tMWRVNqZyasHGIEcFrq/EWtL09red8=; b=It2iUmi00JrMb58sXsebafpDnCx/HHpkSiGx4e9AUncxFAR8R2nlXAvz4Yxf9wzxKF q9nlv0PVoID5pbVVBb3pO1FVsa+DAQ2DsGv5LygYyIvhR4w+yAl3ToLxklMz0OVVdye2 +T/QsRzpkNPhSqPyIKrStx4gjhOxsBtwW6x2uUFEXZOyk1GeOFG5PXFY690goVcRAKp/ 62foiPIrVZXKox96TKNzx9Vt4JMWMygEq9XvA8BlbZjb8VGxCzerQqzi2O6PBV1/Z1J5 3AczBsNgdvfcAs5uxCV34e36Gj4NpokOTkOlIZ3ROvTtzCA7nc+CfsDVJ7N5A9EvEq0+ i6Eg== X-Received: by 10.194.61.100 with SMTP id o4mr10413761wjr.28.1423763041001; Thu, 12 Feb 2015 09:44:01 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id j9sm6584536wjy.18.2015.02.12.09.43.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 09:43:59 -0800 (PST) Sender: Baptiste Daroussin Date: Thu, 12 Feb 2015 18:43:57 +0100 From: Baptiste Daroussin To: Benjamin Kaduk Subject: Re: /usr/lib/private and static linking? Message-ID: <20150212174357.GI29891@ivaldir.etoilebsd.net> References: <20150212173344.GH29891@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="U7PH6YjyT5379uVx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 17:44:03 -0000 --U7PH6YjyT5379uVx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 12, 2015 at 12:37:30PM -0500, Benjamin Kaduk wrote: > On Thu, 12 Feb 2015, Baptiste Daroussin wrote: >=20 > > On Thu, Feb 12, 2015 at 12:01:41PM -0500, Benjamin Kaduk wrote: > > > I have a machine running -current from December (r276480), and trying= to > > > link with "cc -static [...] $(krb5-config --libs)" yields a linker er= ror: > > > > > > /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': > > > /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/k= cm.c:(.text+0x10e): > > > undefined reference to `heim_ipc_init_context' > > > /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/k= cm.c:(.text+0x162): > > > undefined reference to `heim_ipc_call' > > > > > > Should I update my system? Is static linking against libraries which > > > consume libraries in /usr/lib/private no longer supported? > > > > > > Thanks, > > > > > In the last modification of the private libraries we removed everything= which is > > development related, maybe the .a files should be kept to allow linking= to a > > public library which consumes a private one. >=20 > Will you be able to look at doing so, or should I try to get up to speed > and do it myself? I am really deeply stuck into the projects/release-pkg so I would prefer limiting distraction for now. That is basically one check for !defined(PRIVATELIB) in bsd.lib.mk to remove Best regards, Bapt --U7PH6YjyT5379uVx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTc5l0ACgkQ8kTtMUmk6ExpYwCfTAwLLL2tWfQklaVrfSDTeWe+ fP0AoJUAH3PrHzobFdtqE3z6Fo4RoH5L =YWyS -----END PGP SIGNATURE----- --U7PH6YjyT5379uVx--