Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 73517 invoked by uid 500); 9 Jan 2001 00:03:25 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 73469 invoked from network); 9 Jan 2001 00:03:22 -0000 Message-ID: <3A5A5528.7101617A@algroup.co.uk> Date: Tue, 09 Jan 2001 00:02:48 +0000 From: Ben Laurie X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: cvs commit: httpd-2.0/server config.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N rbb@covalent.net wrote: > > > > > > That's not right... if CFLAGS is set, it should use that. EXTRA_* > > > > > is just for things to be *added* to CFLAGS. > > > > > > > > It works in that sense. The snag is that the C configure uses to test > > > > stuff is so crap it fails -Wall -Werror. :-) > > > > > > > > > > Oh. Yeah, we should check that CC == gcc for that :) > > > > ?? For what? > > Ben, I have been trying to figure out what you have been saying, and I > think I finally get it. Sometimes the most obvious things are the hardest > to spot. :-) > > Are you saying that when autoconf generates C code to test for a given > feature, it almost always fails when -Werror is used? Correct! > If so, that is completely bogus, and it is just one more reason that these > projects aren't as good as they could/should be. :-( > > Autoconf should just ignore EXTRA_CFLAGS however, so what went wrong when > using EXTRA_CFLAGS to set -Werror? It didn't ignore them! Either that, or I'm losing my mind... oh, look, I'm not, but configure is: ben@scuzzy:~/work/httpd-2.0$ EXTRA_CFLAGS="-Wall -Werror" ./configure loading cache ./config.cache checking host system type... i386-unknown-freebsdelf3.2 checking target system type... i386-unknown-freebsdelf3.2 checking build system type... i386-unknown-freebsdelf3.2 Applying hints file rules for i386-unknown-freebsdelf3.2 Applying hints file rules for i386-unknown-freebsdelf3.2 checking for rm... (cached) /bin/rm checking for mawk... (cached) awk checking for gcc... (cached) gcc checking whether the C compiler (gcc -Wall -Werror ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. Cheers, Ben. -- http://www.apache-ssl.org/ben.html "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff