From owner-freebsd-stable@FreeBSD.ORG Tue Dec 27 01:58:23 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA039106566B for ; Tue, 27 Dec 2011 01:58:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id A676E8FC12 for ; Tue, 27 Dec 2011 01:58:23 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:7062:3674:b8da:c969] (unknown [IPv6:2001:7b8:3a7:0:7062:3674:b8da:c969]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C38125C37; Tue, 27 Dec 2011 02:58:21 +0100 (CET) Message-ID: <4EF92639.8070903@FreeBSD.org> Date: Tue, 27 Dec 2011 02:58:17 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <4EF88D7B.4040600@gmail.com> <4EF8E21E.10401@gmail.com> In-Reply-To: <4EF8E21E.10401@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Sergey Kandaurov , freebsd-stable@freebsd.org Subject: Re: minor regression after patching X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 01:58:24 -0000 On 2011-12-26 22:07, Volodymyr Kostyrko wrote: > 26.12.2011 17:57, Sergey Kandaurov wrote: ... >>> ftpd.o: In function `pass': >>> /usr/src/libexec/ftpd/ftpd.c:(.text+0x2676): undefined reference to >>> `__FreeBSD_libc_enter_restricted_mode' >>> clang: error: linker command failed with exit code 1 (use -v to see >>> invocation) >>> *** Error code 1 >> >> This means that linker has not found a mentioned symbol, i.e. likely >> you haven't updated your libc before trying to build ftpd. >> In this case you need to act the next order: >> 1) rebuild&& reinstall libc >> 2) rebuild&& reinstall ftpd > > Oh yes, I just remembered those sweet days I was sitting on HEAD. Each > build was a trial/error process. > > And I'm not seeing this when compiling world with stock gcc or on i386. > It looks like rather nasty clang regression. For me, stable/9 builds just fine with clang (or gcc), and the tinderbox isn't complaining either. Are you sure you are running buildworld, which is definitely necessary for this kind of upgrade?