Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 53880 invoked from network); 27 Nov 2004 07:24:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Nov 2004 07:24:26 -0000 Received: (qmail 23769 invoked by uid 500); 27 Nov 2004 07:24:21 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 23730 invoked by uid 500); 27 Nov 2004 07:24:21 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 23717 invoked by uid 99); 27 Nov 2004 07:24:21 -0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of sjungels@adelphia.net designates 68.168.78.199 as permitted sender) Received: from mta9.adelphia.net (HELO mta9.adelphia.net) (68.168.78.199) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 26 Nov 2004 23:24:20 -0800 Received: from STEPHENLAPTOP ([67.23.177.2]) by mta9.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with SMTP id <20041127072415.NZYS14438.mta9.adelphia.net@STEPHENLAPTOP> for ; Sat, 27 Nov 2004 02:24:15 -0500 Reply-To: From: "Stephen Jungels" To: Subject: httpd configure relies on egrep which is broken on some platforms Date: Sat, 27 Nov 2004 02:24:04 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, Developers of Apache 1.3 and 2.0 should know that GNU egrep is broken on some platforms, and on these platforms Apache configure scripts which rely on egrep produce broken builds of Apache. Details follow. When building Apache 2.0, I was unable to build a version with shared objects even though my compiler and linker support them. I tracked this down to a broken version of egrep which was confusing the configure script. On platforms with this problem the user will notice the following symptoms: during the part of the configure log that begins "performing libtool configuration..." the user will see the following (or similar) messages: checking if the linker (/usr/powerpc-hardhat-linux/bin/ld) is GNU ld... no checking whether the linker (/usr/powerpc-hardhat-linux/bin/ld) supports shared libraries... no checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes These messages may be correct, but if the platform has the problem I am describing, they are caused by a bad version of grep. The user can check for this by typing if echo GNU | egrep '(GNU|BFD)' >/dev/null; then echo "Good egrep"; else echo "Bad egrep"; fi If "Bad egrep" comes up, the platform is running a version of egrep which doesn't really support extended regular expressions, and this is confusing the Apache configure script. The problem can be fixed by installing GNU grep 2.5 and then rebuilding Apache. Apache 1.3.33 also depends on egrep but fails in a different way. This issue is verified on only the Buffalo Linkstation, but indications are that it may apply to all versions of GNU grep 2.4.2 and earlier. You can save Apache users hours of frustration by not relying on egrep in your scripts. One workaround is to use grep -E, or substitute a command like "egrep '(GNU|with BFD)' with "grep '\(GNU\|with BFD\)'" Kind regards, Stephen