home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gdb / bug / 1336 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.6 KB  |  48 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fwi.uva.nl!casper
  3. From: casper@fwi.uva.nl (Casper Dik)
  4. Subject: GDB 4.7 installation fails on SVR4 with GNU egrep (+fix)
  5. Message-ID: <199212291249.AA23705@fwi.uva.nl>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 29 Dec 1992 14:49:30 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 35
  12.  
  13. GDB 4.7 installation fails when running ``munch'' on Solaris 2.1
  14. when GNU egrep is installed and before /usr/bin/egrep in $PATH.
  15. (Symptom: gdb/init.c won't compile)
  16.  
  17. GNU egrep parses the regexp '|__?initialize_' as
  18. <empty> or __?initialize. System V egrep has the behaviour
  19. expected by the writer of the gdb/munch script. (I.e.,
  20. the regexp \|__?initialize_').
  21.  
  22. Fix  (works with both egreps, add \ before |):
  23.  
  24. *** gdb/munch-dist    Tue Dec 29 13:39:00 1992
  25. --- gdb/munch    Tue Dec 29 13:39:43 1992
  26. ***************
  27. *** 18,24 ****
  28.   MUNCH_NM="${MUNCH_NM-nm} $NMOPT"
  29.   if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
  30.       # System V Release 4 style nm
  31. !     $MUNCH_NM $* | egrep '|__?initialize_' | egrep FUNC | \
  32.         sed -e \
  33.           's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/  {extern void \1 (); \1 ();}/'\
  34.         | sort -u
  35. --- 18,24 ----
  36.   MUNCH_NM="${MUNCH_NM-nm} $NMOPT"
  37.   if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
  38.       # System V Release 4 style nm
  39. !     $MUNCH_NM $* | egrep '\|__?initialize_' | egrep FUNC | \
  40.         sed -e \
  41.           's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/  {extern void \1 (); \1 ();}/'\
  42.         | sort -u
  43.  
  44.  
  45.  
  46. Casper
  47.  
  48.