From owner-freebsd-stable@FreeBSD.ORG Mon Dec 26 21:07:47 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 CF3BA1065670 for ; Mon, 26 Dec 2011 21:07:47 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5E81F8FC16 for ; Mon, 26 Dec 2011 21:07:47 +0000 (UTC) Received: by eaaf13 with SMTP id f13so14440963eaa.13 for ; Mon, 26 Dec 2011 13:07:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=7JjbAR3xNmtjDGZBQwCLiWIRecL+zok9XZd86pjOGPg=; b=uAvLtmW+EomDhqwnuwI9SUfpf8pJ2NgRUTjly2T/b1n9d3EbvW5nTCldrc+me+syZ7 bR6yf75BLoPtEJh4iMX4u7/Fcea8PfWaSU8/QMc9OZSzEILiQRPzUCNF3ha0EeZSqWCT XyedhwEoiDKS+7l9Gj/N3ZgQklEqRoL5izFbw= Received: by 10.213.108.210 with SMTP id g18mr2592979ebp.123.1324933666340; Mon, 26 Dec 2011 13:07:46 -0800 (PST) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id z43sm96979051eef.7.2011.12.26.13.07.44 (version=SSLv3 cipher=OTHER); Mon, 26 Dec 2011 13:07:45 -0800 (PST) Message-ID: <4EF8E21E.10401@gmail.com> Date: Mon, 26 Dec 2011 23:07:42 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111223 Thunderbird/9.0 MIME-Version: 1.0 To: Sergey Kandaurov References: <4EF88D7B.4040600@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Mon, 26 Dec 2011 21:07:47 -0000 26.12.2011 17:57, Sergey Kandaurov wrote: >> Hi all. >> >> Am I the only one seeing this on RELENG_9? >> >> ===> libexec/ftpd (all) >> clang -O2 -pipe -DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING >> -I/usr/src/libexec/ftpd -Dmain=ls_main -I/usr/src/libexec/ftpd/../../bin/ls >> -DINET6 -DUSE_PAM -std=gnu99 -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -o ftpd ftpd.o >> ftpcmd.o logwtmp.o popen.o ls.o cmp.o print.o util.o -lutil -lcrypt -lopie >> -lmd -lm -lpam >> clang: warning: argument unused during compilation: '-std=gnu99' >> 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. -- Sphinx of black quartz judge my vow.