From owner-freebsd-current@FreeBSD.ORG Sun Feb 1 20:23:04 2015 Return-Path: Delivered-To: freebsd-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 804568D6 for ; Sun, 1 Feb 2015 20:23:04 +0000 (UTC) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D9A5F6F for ; Sun, 1 Feb 2015 20:23:04 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id fb1so73774244pad.10 for ; Sun, 01 Feb 2015 12:23:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to :mime-version:content-type:content-disposition:user-agent; bh=8d1eu1GQtmCTBXw2p1cIkB+/Y4DsFwsudoQ+vss2oSI=; b=Rxc+g7M5F0pko9VAhauTuqN4M5cPxGF3NJqNEMqB1kwwJ2BluPlYo5L6DRdmf4HDUS Px5j4Q9tTu494rC+dK+0+tMjEjeKx3yAl2+lKLbXBIr26bvkM/tbs6ApsJLNWHgMLmk2 XpHGo8uBpj1Hp65ZH4xE7mTEx93BIM3xGqfH63UbYeMQmNuKsPfdx1Xo/0A1akCDR8Zh WwUi3lfJi0p8yG2NqhDh3+yEWUPBvrplZVA5a101aCmjSdRutsPFMyMHTvKz/g6+p81X S5wRVaVYBxrr+N1qFEo7gof/lLZt2TYa6MOVbo9X9S72tayuvqrkrdO5pu02Ii98vElj K5ig== X-Received: by 10.70.10.100 with SMTP id h4mr24742450pdb.10.1422822183423; Sun, 01 Feb 2015 12:23:03 -0800 (PST) Received: from localhost (c-76-21-76-83.hsd1.ca.comcast.net. [76.21.76.83]) by mx.google.com with ESMTPSA id om9sm16717085pbb.34.2015.02.01.12.23.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Feb 2015 12:23:02 -0800 (PST) Sender: Gleb Kurtsou Date: Sun, 1 Feb 2015 12:24:13 -0800 From: Gleb Kurtsou To: freebsd-current@freebsd.org Subject: libc.so dependency on libssp_nonshared.a Message-ID: <20150201202413.GA2132@reks> Mail-Followup-To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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: Sun, 01 Feb 2015 20:23:04 -0000 I came across some build issues in libc.so and SSP. libc.ldscript (aka libc.so) unconditionally includes @@LIBDIR@@/libssp_nonshared.a libssp* are not built if WITHOUT_SSP defined. ObsoleteFiles.inc doesn't mention libssp*. Consider WITHOUT_SSP=yes case. As soon as one does clean installworld and/or removes stale libssp_nonshared.a ld fails to link anything because of missing libssp_nonshared.a libc.so during buildworld (as found under /usr/obj) is symlink to the actual shared library, but not ldscript. Is it intentional? I wouldn't expect make -C /usr/src/bin/cat to match buildworld result closely assuming src and world are in sync, but they seem to have different idea of what libc is..