home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gdb.bug
- Path: 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
-
- 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
-
-