From leeym@utopia.leeym.com  Sun Sep  5 18:08:40 2004
Return-Path: <leeym@utopia.leeym.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 79C5316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Sep 2004 18:08:40 +0000 (GMT)
Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 293B743D41
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Sep 2004 18:08:40 +0000 (GMT)
	(envelope-from leeym@utopia.leeym.com)
Received: from localhost (localhost [127.0.0.1])
	by utopia.leeym.com (Postfix) with ESMTP id 4E1CD3EADB5
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Sep 2004 02:08:39 +0800 (CST)
Received: from utopia.leeym.com ([127.0.0.1])
 by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 32266-08 for <FreeBSD-gnats-submit@freebsd.org>;
 Mon,  6 Sep 2004 02:08:36 +0800 (CST)
Received: by utopia.leeym.com (Postfix, from userid 1000)
	id BFB253EAD6A; Mon,  6 Sep 2004 02:08:36 +0800 (CST)
Message-Id: <20040905180836.BFB253EAD6A@utopia.leeym.com>
Date: Mon,  6 Sep 2004 02:08:36 +0800 (CST)
From: Yen-Ming Lee <leeym@FreeBSD.org>
Reply-To: Yen-Ming Lee <leeym@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: set WARNS=1 and unbreak 'make buildworld' for RELENG_5
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71406
>Category:       bin
>Synopsis:       [patch] set WARNS=1 and unbreak 'make buildworld' for RELENG_5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 05 18:10:24 GMT 2004
>Closed-Date:    Mon Sep 13 10:13:42 GMT 2004
>Last-Modified:  Mon Sep 13 10:13:42 GMT 2004
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA3 FreeBSD 5.3-BETA3 #1: Sun Sep 5 01:06:46 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

I am not sure if 'bin' is a right category for this problem.

It occurs 'make buildworld' from freshly updated /usr/src for RELENG_5.
I took a look on it, and found that it's caused by -Wall in CWARNFLAGS.

Set WARNS=1 might be a temporary (and dirty?) fix for it.
However, somebody need to permanently fix it from /usr/src/usr.bin/lex/gen.c

>How-To-Repeat:

http://lists.freebsd.org/pipermail/freebsd-current/2004-August/033116.html

cc -O -pipe  -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c nslexer.c
/dev/stdout: In function `_nsyylex':
/dev/stdout:711: warning: label `find_rule' defined but not used
/usr/src/lib/libc/net/nslexer.l: At top level:
/dev/stdout:1678: warning: 'yy_flex_realloc' defined but not used
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

>Fix:

	

--- Makefile.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libc/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile	14 May 2004 12:04:29 -0000	1.52
+++ Makefile	5 Sep 2004 17:51:06 -0000
@@ -12,7 +12,7 @@
 # If you bump SHLIB_MAJOR, see standards/55112.
 SHLIB_MAJOR= 5
 SHLIBDIR?= /lib
-WARNS?=	2
+WARNS?=	1
 CFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include
 CFLAGS+=-I${.CURDIR}/${MACHINE_ARCH}
 CLEANFILES+=tags
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Mon Sep 6 12:00:48 GMT 2004 
State-Changed-Why:  
Solved by rebuilding and installing yacc first then doing buildworld. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71406 

From: Ruslan Ermilov <ru@freebsd.org>
To: Yen-Ming Lee <leeym@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: bin/71406: set WARNS=1 and unbreak 'make buildworld' for RELENG_5
Date: Wed, 8 Sep 2004 10:20:53 +0300

 On Mon, Sep 06, 2004 at 02:08:36AM +0800, Yen-Ming Lee wrote:
 > 
 > It occurs 'make buildworld' from freshly updated /usr/src for RELENG_5.
 > I took a look on it, and found that it's caused by -Wall in CWARNFLAGS.
 > 
 > Set WARNS=1 might be a temporary (and dirty?) fix for it.
 > However, somebody need to permanently fix it from /usr/src/usr.bin/lex/gen.c
 > 
 > >How-To-Repeat:
 > 
 > http://lists.freebsd.org/pipermail/freebsd-current/2004-August/033116.html
 > 
 > cc -O -pipe  -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c nslexer.c
 > /dev/stdout: In function `_nsyylex':
 > /dev/stdout:711: warning: label `find_rule' defined but not used
 > /usr/src/lib/libc/net/nslexer.l: At top level:
 > /dev/stdout:1678: warning: 'yy_flex_realloc' defined but not used
 > *** Error code 1
 > 
 > Stop in /usr/src/lib/libc.
 > *** Error code 1
 > 
 I cannot reproduce this.  Please put the *compressed* full output,
 both stdout and stderr, available for download somewhere.  Please
 also show me the exact command that you use to build world, and
 the contents of your /etc/make.conf file, as well as the output
 from ``uname -a''.  Please also make sure that you build with an
 empty /usr/obj.
 
 
 Cheers,
 -- 
 Ruslan Ermilov
 ru@FreeBSD.org
 FreeBSD committer
State-Changed-From-To: closed->open 
State-Changed-By: ru 
State-Changed-When: Mon Sep 13 10:12:06 GMT 2004 
State-Changed-Why:  
Want to add more details. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71406 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Sep 13 10:12:43 GMT 2004 
State-Changed-Why:  
Your build environment is broken.  Please see the following posting 
for an explanation and a recipe to recover: 

http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037212.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71406 
>Unformatted:
