[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BUG in scripts/cpp
From: |
Simon Derr |
Subject: |
BUG in scripts/cpp |
Date: |
Thu, 31 Jan 2002 14:41:22 +0100 (MET) |
Hi,
The compilation of glibc 2.2.5 failed on my Linux machine.
The reason was that the script scripts/cpp failed to find
the right cpp path on my system.
There are in this script these lines :
cpp=`type cpp 2>/dev/null | awk '{ print $NF }'`
if test $? -ne 0; then
This is wrong as the exit code being tested here is the one of awk instead of
type.
A fix can be to write instead:
cpp=`type cpp 2>/dev/null`
err=$?
cpp=`echo "$cpp"| awk '{ print $NF }'`
if test $err -ne 0; then
Simon.
PS:I tried to report this bug using the gnatsweb interface but it did not seem
to work...
--
Simon Derr e-Mail: address@hidden
Tel: 04 76 61 20 41
Informatique et distribution Web: http://www-id.imag.fr
ENSIMAG - Antenne de Montbonnot http://icluster.imag.fr
ZIRST - 51, avenue Jean Kuntzmann http://ka-tools.sourceforge.net
38330 MONTBONNOT SAINT MARTIN
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- BUG in scripts/cpp,
Simon Derr <=