bin/71406: set WARNS=1 and unbreak 'make buildworld' for RELENG_5
Yen-Ming Lee
leeym at FreeBSD.org
Sun Sep 5 11:10:25 PDT 2004
>Number: 71406
>Category: bin
>Synopsis: set WARNS=1 and unbreak 'make buildworld' for RELENG_5
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 05 18:10:24 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-bugs
mailing list