home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 8906 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.6 KB

  1. Xref: sparky comp.unix.bsd:8906 comp.lsi.cad:1141
  2. Path: sparky!uunet!stanford.edu!agate!boom.CS.Berkeley.EDU!lazzaro
  3. From: lazzaro@boom.CS.Berkeley.EDU (John Lazzaro)
  4. Newsgroups: comp.unix.bsd,comp.lsi.cad
  5. Subject: Re: chipmunk,p2c ported but with problesm
  6. Date: 15 Nov 1992 19:46:24 GMT
  7. Organization: University of California, Berkeley
  8. Lines: 29
  9. Distribution: inet
  10. Message-ID: <1e69egINN8n@agate.berkeley.edu>
  11. References: <1992Nov14.053041.19424@ntuix.ntu.ac.sg> <eyal.721811417@ise>
  12. NNTP-Posting-Host: boom.cs.berkeley.edu
  13.  
  14. In article <eyal.721811417@ise> eyal@echo.canberra.edu.au (Eyal Lebedinsky) writes:
  15. >In <1992Nov14.053041.19424@ntuix.ntu.ac.sg> eoahmad@ntuix.ntu.ac.sg (Othman Ahmad) writes:
  16. >
  17. >> I have ported loged, wol, and the libp2c.a (p2c library), but
  18. >>am still having problems with log, which somehow cannot read files
  19. >>properly. Could be due to the p2c library.
  20. >>    Anyone has ported p2c to 386bsd?
  21. >
  22. >I just gave it a try on Linux. Loged came up but could not find its
  23. >files. Digilog and analog coredumped. I only had to remove the
  24. >definition of 'putc' somewhere.
  25. >
  26.  
  27. The main problem is that log and loged read binary files (.gate
  28. files), and the code that handles byte-swapping for different-endian
  29. architectures doesn't know about intel machines yet; as a result the
  30. code assumes the byte-ordering of a SPARC, which is not what you want.
  31. Search for #ifdef mips in the source files (in particular in the
  32. swap.c file in log/src/) to find the places where byte-swapping
  33. happens, and expand the ifdef's so that the byte's end up the same
  34. way. 
  35.  
  36. Hope this helps,
  37.  
  38.                             --john lazzaro
  39.                               chipmunk maintainer
  40. >
  41.  
  42.  
  43.