Article View: gnu.gdb.bug
Article #544GDB 4.7 installation fails on SVR4 with GNU egrep (+fix)
From: Casper Dik
Date: Tue, 29 Dec 1992 14:49
Date: Tue, 29 Dec 1992 14:49
34 lines
1673 bytes
1673 bytes
GDB 4.7 installation fails when running ``munch'' on Solaris 2.1
when GNU egrep is installed and before /usr/bin/egrep in $PATH.
(Symptom: gdb/init.c won't compile)
GNU egrep parses the regexp '|__?initialize_' as
<empty> or __?initialize. System V egrep has the behaviour
expected by the writer of the gdb/munch script. (I.e.,
the regexp \|__?initialize_').
Fix (works with both egreps, add \ before |):
*** gdb/munch-dist Tue Dec 29 13:39:00 1992
--- gdb/munch Tue Dec 29 13:39:43 1992
***************
*** 18,24 ****
MUNCH_NM="${MUNCH_NM-nm} $NMOPT"
if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
# System V Release 4 style nm
! $MUNCH_NM $* | egrep '|__?initialize_' | egrep FUNC | \
sed -e \
's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/ {extern void \1 (); \1 ();}/'\
| sort -u
--- 18,24 ----
MUNCH_NM="${MUNCH_NM-nm} $NMOPT"
if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
# System V Release 4 style nm
! $MUNCH_NM $* | egrep '\|__?initialize_' | egrep FUNC | \
sed -e \
's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/ {extern void \1 (); \1 ();}/'\
| sort -u
Casper
Technical Details
Message-ID:
<199212291249.AA23705@fwi.uva.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fwi.uva.nl!casperShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fwi.uva.nl!casper From: casper@fwi.uva.nl (Casper Dik) Subject: GDB 4.7 installation fails on SVR4 with GNU egrep (+fix) Message-ID: <199212291249.AA23705@fwi.uva.nl> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 29 Dec 1992 14:49:30 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 35