From owner-freebsd-stable@FreeBSD.ORG Mon Jan 5 18:01:35 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 831E736C for ; Mon, 5 Jan 2015 18:01:35 +0000 (UTC) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) (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 435C03C40 for ; Mon, 5 Jan 2015 18:01:35 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id x19so20074700ier.20 for ; Mon, 05 Jan 2015 10:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=d462xLZhI93MQkB83DjFzGly1q8Gvkkwad5F8LnwTV0=; b=j3yFfV8vOL6FMLwKfhJsfY8QrWJ49eHRK2uKcp+m3Zisrs98sUXYyecjTrebwyme42 pHxnRj5CYfUEk32MGMTd166GLIr6pykB3xWTZ6euEQcsqhTdNHmSq91UPkFp9RCWNbpx TtYhIiEFo4wRH61JifD7AWexF2+YjC79t7DHJTwQbDQ5gL3jWJUWq0+L0OluSAhnBUPZ NKVfZRfqjPX4gLOV2V12fLfJTuMHW37JQO2JOvMZxK2BqGTyPU6jVXH+XoWsT5wSblQ4 dhQpRAsKyCGHI0gDemRWckWmSUtU/ZDovh6Te8jbfC1Ecnpt6p6Odnk2bbYv/byrDfry aZyQ== MIME-Version: 1.0 X-Received: by 10.107.168.18 with SMTP id r18mr80929489ioe.76.1420480894674; Mon, 05 Jan 2015 10:01:34 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.107.52.19 with HTTP; Mon, 5 Jan 2015 10:01:34 -0800 (PST) In-Reply-To: References: <54A9A853.2000208@delphij.net> Date: Mon, 5 Jan 2015 10:01:34 -0800 X-Google-Sender-Auth: QkaevKSCWwMbAaxZQK1nI9i2Fos Message-ID: Subject: Re: Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416) From: Kevin Oberman To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD stable , Xin Li X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Jan 2015 18:01:35 -0000 On Mon, Jan 5, 2015 at 1:49 AM, Trond Endrest=C3=B8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Sun, 4 Jan 2015 12:53-0800, Xin Li wrote: > > > On 1/4/15 09:41, Trond Endrest=C3=B8l wrote: > > > Hi, > > > > > > I'm investigating how to convert my stable/8 systems to stable/9, > > > and subsequently to stable/10. > > > > > [...] > > > In file included from > > > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > > > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: > > > expected specifier-qualifier-list before 'locale_t' *** Error code > > > 1 1 error *** Error code 2 1 error *** Error code 2 1 error *** > > > Error code 2 1 error > > > > Looks like you are using -j -- have you tried building without -j? > > I did a test run on one of my stable/8 servers. That one's currently > running stable/8 r276500 and it attempted to build stable/9 r276691 > single threaded. No such luck. > > Unless this problem is resolved, then those of us migrating from > stable/8 to stable/{9,10} need a pit stop at stable/9 r276385. > > =3D=3D=3D> lib/libmagic (obj,build-tools) > gcc -O2 -pipe -DMAGIC=3D'"/usr/share/misc/magic"' -DHAVE_CONFIG_H > -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src > -std=3Dgnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY > -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c > /usr/src/lib/libmagic/../../contrib/file/src/magic.c > /usr/src/lib/libmagic/../../contrib/file/src/print.c -lz -legacy > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regcomp': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: warning: > implicit declaration of function 'newlocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: > 'LC_CTYPE_MASK' undeclared (first use in this function) > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: (Each > undeclared identifier is reported only once > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: for each > function it appears in.) > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:457: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: warning: > implicit declaration of function 'uselocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:459: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regexec': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:470: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:471: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regfree': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:477: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:478: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:480: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: warning: > implicit declaration of function 'freelocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regerror': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:490: error: > 'file_regex_t' has no member named 'rx' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > *** Error code 1 > > Stop in /usr/src/lib/libmagic. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > This still comes down to he build of file (and specifically libmagick not finding xlocale.h. the new header files should have been installed into /usr/obj long before the build of file starts. the buildworld should always run clean, obj, _includes, and depends before any of the actual builds commence. So the issue is whether the build of libmagic is failing to look for xlocale.h in the right place or the _includes: target is failing to install it there. This can be checked by building without -j (to eliminate any possible races) and, after the failure, look for xlocale.h in /usr/obj/usr/src/tmp/usr/include. This is where all header files should be installed in the /usr/obj tree so that they are available and used by the buildworld. One oddity of xlocale.h is that, unlike other header files, it is not simply copied from /usr/src to /usr/obj/usr/src/tmp/usr/include. Instead, it is created for a particular locale from the files in /usr/src/include/xlocale/. This makes me a bit suspicious that this is happening too late. My "make" foo is limited, but I am about to kick off a buildworld while recording the output to confirm when xlocale.h is actually built. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com