From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 17:37:35 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85EDC91A; Thu, 12 Feb 2015 17:37:35 +0000 (UTC) Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu [18.9.25.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2826165; Thu, 12 Feb 2015 17:37:34 +0000 (UTC) X-AuditID: 1209190c-f79696d000005933-02-54dce4ddd59d Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id 5B.83.22835.DD4ECD45; Thu, 12 Feb 2015 12:37:33 -0500 (EST) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id t1CHbWBd017188; Thu, 12 Feb 2015 12:37:32 -0500 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t1CHbUPa012320 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 12 Feb 2015 12:37:32 -0500 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t1CHbUBl019064; Thu, 12 Feb 2015 12:37:30 -0500 (EST) Date: Thu, 12 Feb 2015 12:37:30 -0500 (EST) From: Benjamin Kaduk To: Baptiste Daroussin Subject: Re: /usr/lib/private and static linking? In-Reply-To: <20150212173344.GH29891@ivaldir.etoilebsd.net> Message-ID: References: <20150212173344.GH29891@ivaldir.etoilebsd.net> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCIsWRmVeSWpSXmKPExsUixG6nrnv3yZ0Qgw3nuS1+/7rIajHhyg8m ByaPGZ/mswQwRnHZpKTmZJalFunbJXBlHHizkb3gEkfFub2PWRsYJ7J3MXJySAiYSDyY+QvK FpO4cG89G4gtJLCYSeLrWf0uRi4geyOjxJJ/j5ghEoeYJHbulodINDBK7N65DKybRUBbYtnC C2A2m4CKxMw3G8EmiQhoStxd2szUxcjBwSwgLvGyXwkkLCxgKLHj9zp2kDCngLVE05Y6EJNX wEFi388wiE35EtduTgIbIiqgI7F6/xQWEJtXQFDi5MwnYDazgJbE8unbWCYwCs5CkpqFJLWA kWkVo2xKbpVubmJmTnFqsm5xcmJeXmqRrqFebmaJXmpK6SZGUGBySvLsYHxzUOkQowAHoxIP b4DxnRAh1sSy4srcQ4ySHExKorwld4BCfEn5KZUZicUZ8UWlOanFhxglOJiVRHijlgHleFMS K6tSi/JhUtIcLErivJt+8IUICaQnlqRmp6YWpBbBZGU4OJQkeMsfAzUKFqWmp1akZeaUIKSZ ODhBhvMADd8AUsNbXJCYW5yZDpE/xagoJc6bCZIQAElklObB9cISxytGcaBXhHmvg1TxAJMO XPcroMFMQIMnzrgNMrgkESEl1cDon3K0oL5Y5NorzSWJjy226Ny1jXuivCLgqttPyR8N8TMq NsdKrHtacmzyrRPHCyN+HP3JozRxV6blkls8hr53g1PmNnw5mtKysTjcSinS+n/Mq4BlXzfu CTrtt+VswNGX740u8r24IvTz+54djrEv11UfVFQzMYjn/C783EDjm54O85nzmwzclViKMxIN tZiLihMBADIEKvcCAAA= 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:37:35 -0000 On Thu, 12 Feb 2015, Baptiste Daroussin wrote: > 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: > > > > /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' > > > > 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. Will you be able to look at doing so, or should I try to get up to speed and do it myself? -Ben