From nobody@FreeBSD.org  Mon Sep 16 21:38:02 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id F16AE7BD
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Sep 2013 21:38:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id C531120B0
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Sep 2013 21:38:02 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8GLc2NF014213
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Sep 2013 21:38:02 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8GLc2q6014185;
	Mon, 16 Sep 2013 21:38:02 GMT
	(envelope-from nobody)
Message-Id: <201309162138.r8GLc2q6014185@oldred.freebsd.org>
Date: Mon, 16 Sep 2013 21:38:02 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: strtofflags.c build failures
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182170
>Category:       bin
>Synopsis:       strtofflags.c build failures
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 16 21:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Jan 11 22:50:00 UTC 2014
>Originator:     Garrett Cooper
>Release:        10-CURRENT
>Organization:
EMC Isilon
>Environment:
FreeBSD fuji-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #13 24029d3: Mon Aug 12 01:28:48 PDT 2013     root@fuji-current.local:/usr/obj/usr/src/sys/FUJI-NOCOMPAT  i386
>Description:
Ran into this build issue when trying to do a source upgrade:

/usr/src.svn/lib/libc/gen/strtofflags.c:65: error: 'UF_ARCHIVE' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:67: error: 'UF_HIDDEN' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:75: error: 'UF_OFFLINE' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:78: error: 'UF_READONLY' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:82: error: 'UF_REPARSE' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:84: error: 'UF_SPARSE' undeclared here (not in a function)
/usr/src.svn/lib/libc/gen/strtofflags.c:86: error: 'UF_SYSTEM' undeclared here (not in a function)
*** [strtofflags.So] Error code 1

bmake[3]: stopped in /usr/src.svn/lib/libc
--- timezone.So ---

Even though sys/stat.h is in the file (but why is it picking up the system header and not the one in the build root???????????). Might be related to bin/182076 :

strtofflags.o strtofflags.po strtofflags.So: /usr/src/lib/libc/gen/strtofflags.c \
  /usr/include/sys/cdefs.h /usr/include/sys/types.h \
  /usr/include/machine/endian.h /usr/include/x86/endian.h \
  /usr/include/sys/_types.h /usr/include/machine/_types.h \
  /usr/include/x86/_types.h /usr/include/sys/_pthreadtypes.h \
  /usr/include/sys/_stdint.h /usr/include/sys/select.h \
  /usr/include/sys/_sigset.h /usr/include/sys/_timeval.h \
  /usr/include/sys/timespec.h /usr/include/sys/_timespec.h \
  /usr/include/sys/stat.h /usr/include/sys/time.h \
  /usr/src/lib/libc/../../include/time.h /usr/include/sys/_null.h \
  /usr/src/lib/libc/../../include/xlocale/_time.h \
  /usr/src/lib/libc/../../include/stddef.h \
  /usr/src/lib/libc/../../include/stdlib.h \
  /usr/src/lib/libc/../../include/string.h \
  /usr/src/lib/libc/../../include/strings.h \
  /usr/src/lib/libc/../../include/xlocale/_string.h \
  /usr/src/lib/libc/../../include/unistd.h /usr/include/sys/unistd.h
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: =?koi8-r?B?59XM0cXXIOfP28E=?= <gosha-necr@yandex.ru>
To: bug-followup@freebsd.org,
	yaneurabeya@gmail.com
Cc:  
Subject: Re: bin/182170: strtofflags.c build failures
Date: Sun, 12 Jan 2014 04:48:02 +0600

 I have the same issue. How I can fix it?
 I'm trying update system from FreeBSD 10 builded in Oct 2012 to latest source.
 As system does not have clang, I have that src.conf (first try to build with_gcc after that i want to build with clang)
 There is src.conf (some knobs from 11-CURRENT, but system source are -STABLE)
 WITHOUT_ACCT=YES
 WITHOUT_AMD=YES
 WITHOUT_ASSERT_DEBUG=YES
 WITHOUT_ATF=YES
 WITHOUT_ATM=YES
 WITHOUT_AUDIT=YES
 WITHOUT_AUTHPF=YES
 WITHOUT_BIND=YES
 WITHOUT_BLUETOOTH=YES
 WITHOUT_BSNMP=YES
 WITHOUT_CAPSICUM=YES
 WITHOUT_CROSS_COMPILER=YES
 
 WITHOUT_CLANG=YES
 WITHOUT_CLANG_IS_CC=YES
 WITH_GCC=YES
 
 WITHOUT_CTF=YES
 WITHOUT_CTM=YES
 WITHOUT_DICT=YES
 WITHOUT_FLOPPY=YES
 WITHOUT_FREEBSD_UPDATE=YES
 WITHOUT_GDB=YES
 WITHOUT_HTML=YES
 WITHOUT_INET6=YES
 WITHOUT_INFO=YES
 WITHOUT_IPFILTER=YES
 WITHOUT_IPX=YES
 WITHOUT_JAIL=YES
 WITHOUT_KDUMP=YES
 WITHOUT_KERBEROS=YES
 WITHOUT_KERNEL_SYMBOLS=YES
 WITHOUT_LDNS=YES
 WITHOUT_LLDB=YES
 WITHOUT_LPR=YES
 WITHOUT_MAIL=YES
 WITHOUT_NCP=YES
 WITHOUT_NDIS=YES
 WITHOUT_NS_CACHING=YES
 WITHOUT_PC_SYSINSTALL=YES
 WITHOUT_PF=YES
 WITHOUT_PMC=YES
 WITHOUT_PROFILE=YES
 WITHOUT_QUOTAS=YES
 WITHOUT_RCMDS=YES
 WITHOUT_RCS=YES
 WITHOUT_ROUTED=YES
 WITHOUT_SHAREDOCS=YES
 WITHOUT_SSP=YES
 WITHOUT_SYSINSTALL=YES
 WITHOUT_TESTS=YES
 WITHOUT_WIRELESS=YES
 WITHOUT_WIRELESS_SUPPORT=YES
 WITHOUT_ZFS=YES
>Unformatted:
