From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 17:33:49 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 CAD2767B for ; Thu, 12 Feb 2015 17:33:49 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (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 5896A12B for ; Thu, 12 Feb 2015 17:33:49 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id l18so8538708wgh.7 for ; Thu, 12 Feb 2015 09:33:47 -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=T+J6qluQDBXr2Y2uY2uX0yLmVFt6XXx7x5J/tjZ26Ek=; b=huIaeteIHFXPFmPkfoixaTrvbhFcOgSplKmNrhvnCAQcO9cJchqUUsdIrWaNsvqiRU 6CeJG37ZtZqyMaSUKFscBnqoG1A7i7fRCkdtTs8FnQ4DzGiokKxQQQvC3q07ZuiQZxTU QwpbEG3g9qALZPcQyVV7kJc7o9ozvgT3dNupghzaMYdOmQXccJ9wjtPWqGvZOFBHu0Go T0ClAZLamMQBRz545tchca10BsTIHOOU4LXSDNZD6F576E/VBldsznCyHU0gkwHnK4Ij INCkUw1sR8iFOkSExAM7zwKs/8FLeap8jIgzANJclnrrSMhx7944zZlDNEScjwFB111o 2pvQ== X-Received: by 10.180.74.52 with SMTP id q20mr9280663wiv.0.1423762427792; Thu, 12 Feb 2015 09:33:47 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id n1sm3400609wib.11.2015.02.12.09.33.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 09:33:46 -0800 (PST) Sender: Baptiste Daroussin Date: Thu, 12 Feb 2015 18:33:44 +0100 From: Baptiste Daroussin To: Benjamin Kaduk Subject: Re: /usr/lib/private and static linking? Message-ID: <20150212173344.GH29891@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cTOVv4IlZiYEQ88H" 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:33:49 -0000 --cTOVv4IlZiYEQ88H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 error: >=20 > /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': > /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c= :(.text+0x10e): > undefined reference to `heim_ipc_init_context' > /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c= :(.text+0x162): > undefined reference to `heim_ipc_call' >=20 > Should I update my system? Is static linking against libraries which > consume libraries in /usr/lib/private no longer supported? >=20 > Thanks, >=20 In the last modification of the private libraries we removed everything whi= ch is development related, maybe the .a files should be kept to allow linking to a public library which consumes a private one. Best regards, Bapt --cTOVv4IlZiYEQ88H Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTc4/gACgkQ8kTtMUmk6EyTqgCgqyr3DR2dZkQgBCLtD8o2VFBV jLUAn3JtNQLejbBCyJkkPNcdOkauvo/M =AONJ -----END PGP SIGNATURE----- --cTOVv4IlZiYEQ88H--