From owner-freebsd-stable@FreeBSD.ORG Tue Dec 27 11:51:03 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 246E4106566B; Tue, 27 Dec 2011 11:51:03 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 866368FC12; Tue, 27 Dec 2011 11:51:02 +0000 (UTC) Received: by eekc50 with SMTP id c50so13909682eek.13 for ; Tue, 27 Dec 2011 03:51:01 -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=tt4JqI5PLLvW/LtzpncZm/z3cwuPBDTQM4cWdGREKbk=; b=OpMz2rt6kib5L+X8zcaKH624zcvSMG3JIcKISo/PElHbA/ZutFI32m306Y67ouQ9zo 2LYFe04KW0qQibYYIohcDEUFB6X9s+zA3sOeVDm1Wpp81kR9OiOH7wryh3y5Wv673Iu4 tuMdtOYvYmiZ1AfAgU5iLa4yLwQ2kNEfUCW0Q= Received: by 10.213.20.77 with SMTP id e13mr96602ebb.72.1324986661346; Tue, 27 Dec 2011 03:51:01 -0800 (PST) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id s16sm105467916eef.2.2011.12.27.03.50.59 (version=SSLv3 cipher=OTHER); Tue, 27 Dec 2011 03:51:00 -0800 (PST) Message-ID: <4EF9B122.1010407@gmail.com> Date: Tue, 27 Dec 2011 13:50:58 +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: Dimitry Andric References: <4EF88D7B.4040600@gmail.com> <4EF8E21E.10401@gmail.com> <4EF92639.8070903@FreeBSD.org> In-Reply-To: <4EF92639.8070903@FreeBSD.org> 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: Tue, 27 Dec 2011 11:51:03 -0000 27.12.2011 03:58, Dimitry Andric 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? ===> 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 -c /usr/src/libexec/ftpd/ftpd.c /usr/src/libexec/ftpd/ftpd.c:1565:3: warning: implicit declaration of function '__FreeBSD_libc_enter_restricted_mode' is invalid in C99 [-Wimplicit-function-declaration] __FreeBSD_libc_enter_restricted_mode(); ^ 1 warning generated. I totally missed this warning when reporting the problem first time. Version.map for libc contains this function: FBSD_1.3 { global: __FreeBSD_libc_enter_restricted_mode; } FBSD_1.2; So the question is mainly about why /usr/obj/usr/src/tmp/usr/include/unistd.h was ignored in favor of installed one? -- Sphinx of black quartz judge my vow.