home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25595 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!europa.eng.gtefsd.com!gatech!udel!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!agate!ames!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!serval!hlu
  3. From: hlu@eecs.wsu.edu (H.J. Lu)
  4. Subject: Re: bug in cpp?
  5. Message-ID: <1993Jan27.192855.9198@serval.net.wsu.edu>
  6. Sender: news@serval.net.wsu.edu (USENET News System)
  7. Organization: School of EECS, Washington State University
  8. References:  <1993Jan27.105225.3418@athena.mit.edu>
  9. Date: Wed, 27 Jan 93 19:28:55 GMT
  10. Lines: 40
  11.  
  12. In article <1993Jan27.105225.3418@athena.mit.edu>, ludger.kunz@fernuni-hagen.de (Ludger Kunz) writes:
  13. |> Today i tried to compile gzip-0.8.1. Everything worked fine except for
  14. |> the assembler file. The file match.S is preprocessed by cpp with
  15. |> the following command:
  16. |> /lib/cpp -DUNDERLINE match.S > _match.s
  17. |> 
  18. |> When trying to compile the _match.s-file with gcc, the following
  19. |> 2 messages occur:
  20. |> match.s:51: invalid character '_' in opcode
  21. |> match.s:63: invalid character '_' in opcode
  22. |> 
  23. |> Looking at the file _match.s leads to the lines
  24. |> 
  25. |>     _match_init :
  26. |> and 
  27. |>     _longest_match :
  28. |> 
  29. |> Removing the blank between the label and the colon leads to a successful 
  30. |> compilation.
  31. |> Another bug concerns the following code:
  32. |>  add     $window+2,%edi
  33. |> This leads to an error while linking. The symbol window must be replaced with
  34. |> _window. There are to locations where these replacement isn't done by
  35. |> cpp.
  36. |> Both situations work right on a sun.
  37. |> 
  38. |> Is it possibly a bug in cpp for linux?
  39. |> 
  40. |> mfg
  41. |> 
  42. |> lket
  43.  
  44. For gzip-0.8.1 with gcc 2.3.3 + 0.99.4, I did
  45.  
  46. configure
  47. vi Makefile # remove getopt.o which is in libc.a
  48. make
  49.  
  50.  
  51. H.J.
  52.