home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22861 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.1 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!ogicse!news.u.washington.edu!serval!hlu
  2. From: hlu@eecs.wsu.edu (H.J. Lu)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: libc.so.4.2 Caveats!
  5. Message-ID: <1993Jan6.005211.24367@serval.net.wsu.edu>
  6. Date: 6 Jan 93 00:52:11 GMT
  7. Article-I.D.: serval.1993Jan6.005211.24367
  8. References: <MNL.93Jan2002919@mnlsun.dtro.e-technik.th-darmstadt.de> <C0D5u4.A0I@shrdlu.kwnet.on.ca>
  9. Sender: news@serval.net.wsu.edu (USENET News System)
  10. Organization: School of EECS, Washington State University
  11. Lines: 36
  12.  
  13. In article <C0D5u4.A0I@shrdlu.kwnet.on.ca>, gdm@shrdlu.kwnet.on.ca (Giles D Malet) writes:
  14. |> In article <MNL.93Jan2002919@mnlsun.dtro.e-technik.th-darmstadt.de>
  15. |>     mnl@dtro.e-technik.th-darmstadt.de (Michael N. Lipp) writes:
  16. |> >
  17. |> >2) sed doesn't work any more. I have recompiled it using FSF sed-1.13.tar.Z.
  18. |> >   Strange enough, although I removed the sed-local regex.o getop.o and
  19. |> >   getopt1.o (thus using the functions in libc.so.4.2) and compiled with
  20. |> >   -O2, my new sed is about twice as large as the old one. Was it not
  21. |> >   FSF sed-1.13 in the SLS distribution?
  22. |> 
  23. |> You have already been told how to reduce the program size (-N).
  24. |> 
  25. |> I grabbed the SLS sed a couple of weeks ago and found problems
  26. |> with it.  It is (was) version 1.09, and the problems turned out to be
  27. |> in libc.so.4.2.  If you look in <regex.h> you will see a flag called
  28. |> RE_NO_BK_PARENS, and it appears the state of this flag has been toggled
  29. |> between 4.1 and 4.2.  This causes sed to fail, as a `group' is now
  30. |> defined by (...) rather than \(...\).
  31. |> 
  32. |> H.J.Lu appears to indicate this is a change in the original library, not
  33. |> just the Linux version. Somewhat stupid, that. Now you have to compile
  34. |> sed (and I presume other programs too) with their included regex code.
  35. |> 
  36.  
  37. The regex in sed 1.13 is the same one, GNU regex 0.11, in libc 4.2.
  38.  
  39. |> So what are libraries for, anyway ?
  40. |> 
  41.  
  42. Get sed 1.13 and use C library.
  43.  
  44. |> -- 
  45. |> Giles D Malet                                             gdm@shrdlu.kwnet.on.ca
  46. |> Waterloo, Ont, Canada       +1 519 725 5726       gdmalet@descartes.uwaterloo.ca
  47.  
  48. H.J.
  49.