From wosch@freebsd.first.gmd.de Wed Mar 10 01:56:35 1999
Return-Path: <wosch@freebsd.first.gmd.de>
Received: from freebsd.first.gmd.de (freebsd.first.gmd.de [194.95.170.200])
	by hub.freebsd.org (Postfix) with ESMTP id D50A91508E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Mar 1999 01:56:28 -0800 (PST)
	(envelope-from wosch@freebsd.first.gmd.de)
Received: (from wosch@localhost)
	by freebsd.first.gmd.de (8.9.1/8.9.1) id KAA08676;
	Wed, 10 Mar 1999 10:53:23 +0100 (MET)
	(envelope-from wosch)
Message-Id: <199903100953.KAA08676@freebsd.first.gmd.de>
Date: Wed, 10 Mar 1999 10:53:23 +0100 (MET)
From: Wolfram Schneider <wosch@freebsd.first.gmd.de>
Reply-To: wosch@freebsd.first.gmd.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: make world died due -Werror
X-Send-Pr-Version: 3.2

>Number:         10522
>Category:       bin
>Synopsis:       make world died due -Werror
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 10 02:00:01 PST 1999
>Closed-Date:    Mon Sep 4 22:42:26 PDT 2000
>Last-Modified:  Mon Sep 04 22:42:43 PDT 2000
>Originator:     Wolfram Schneider
>Release:        FreeBSD 4.0-current
>Organization:
>Environment:

I tried to build `make world' without cc optimizing compilation 
(option -O). make world died in libskey due the gcc -Werror flag. 


cd /usr/src/lib/libskey; /usr/obj/usr/src/tmp/usr/bin/make all;
+/usr/obj/usr/src/tmp/usr/bin/make -B install
cc -pipe -DPERMIT_CONSOLE -D_SKEY_INTERNAL -I/usr/src/lib/libskey -W -Wall
+-Werror -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/lib/libskey/skeyaccess.c
+-o skeyaccess.o
cc1: warnings being treated as errors
/usr/obj/usr/src/tmp/usr/include/stdio.h:354: warning: `__sputc' defined but not
+used
/usr/obj/usr/src/tmp/usr/include/ctype.h:146: warning: `__maskrune' defined but
+not used
/usr/obj/usr/src/tmp/usr/include/ctype.h:160: warning: `__toupper' defined but
+not used
/usr/obj/usr/src/tmp/usr/include/ctype.h:167: warning: `__tolower' defined but
+not used
*** Error code 1
 
Stop.
*** Error code 1
 

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Wolfram Schneider <wosch@freebsd.first.gmd.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10522: make world died due -Werror
Date: Thu, 11 Mar 1999 10:52:08 +0200

 Hi Wolfram,
 
 Weird, I don't get this at all.
 
 I'll try in my buildworld this evening as well, but I'm certainly not
 having a problem with CFLAGS undefined in /etc/make.conf .
 
 Ciao,
 Sheldon.
 

From: Wolfram Schneider <wosch@cs.tu-berlin.de>
To: Sheldon Hearn <sheldonh@iafrica.com>,
	Wolfram Schneider <wosch@freebsd.first.gmd.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10522: make world died due -Werror
Date: Thu, 11 Mar 1999 10:30:35 +0100

 On 1999-03-11 10:52:08 +0200, Sheldon Hearn wrote:
 > Hi Wolfram,
 > 
 > Weird, I don't get this at all.
 > 
 > I'll try in my buildworld this evening as well, but I'm certainly not
 > having a problem with CFLAGS undefined in /etc/make.conf .
 
 CFLAGS is *defined* in /etc/make.conf, but it does not
 contain the -O flag. E.g:
 
 /etc/make.conf:
 CFLAGS=-pipe
 
 -- 
 Wolfram Schneider <wosch@freebsd.org> http://wolfram.schneider.org
 

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Wolfram Schneider <wosch@freebsd.first.gmd.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10522: make world died due -Werror 
Date: Mon, 15 Mar 1999 12:25:30 +0200

 On Thu, 11 Mar 1999 10:30:35 +0100, Wolfram Schneider wrote:
 
 > CFLAGS is *defined* in /etc/make.conf, but it does not
 > contain the -O flag. E.g:
 
 Ha! Problem confirmed! :-)
 
 Ciao,
 Sheldon.
 

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Wolfram Schneider <wosch@freebsd.first.gmd.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10522: make world died due -Werror 
Date: Mon, 15 Mar 1999 12:44:07 +0200

 I've verified through a buildworld that a workaround is to add
 -Wno-unused to CFLAGS in /etc/make.conf, eg:
 
 CFLAGS=	-Wno-unused -pipe
 
 Ciao,
 Sheldon.
 

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Wolfram Schneider <wosch@freebsd.first.gmd.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10522: make world died due -Werror 
Date: Mon, 15 Mar 1999 17:18:38 +0200

 On Mon, 15 Mar 1999 12:44:07 +0200, Sheldon Hearn wrote:
 
 > I've verified through a buildworld that a workaround is to add
 > -Wno-unused to CFLAGS in /etc/make.conf, eg:
 
 Yuk, disinformation. Sorry, I misread the buildworld output and assumed
 it had gotten past the critical point. -Wno-unused does _not_ help as a
 workaround.
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Mon Sep 4 22:42:26 PDT 2000 
State-Changed-Why:  
The problem seems to be resolved. 

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