home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6755 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.6 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!mccuts!zlsiial
  2. From: zlsiial@uts.mcc.ac.uk (A. V. Le Blanc)
  3. Newsgroups: comp.os.linux
  4. Subject: compiling bin86
  5. Message-ID: <5443@mccuts.uts.mcc.ac.uk>
  6. Date: 26 Jul 92 19:57:52 GMT
  7. Organization: Computing Centre, University of Manchester
  8. Lines: 34
  9.  
  10. Someone recently mentioned that there are difficulties in compiling
  11. the as86 and ld86 contained in the bin86.tar.Z package.
  12.  
  13. In order to get things to work, I had to make the following changes:
  14.  
  15. In a.out.h/bsd-a.out.h, delete the line defining getpagesize()
  16. at about line 104.
  17.  
  18. In as/Makefile, change typeconv.o to ../ld/typeconv.o in the
  19. definition of OBJS.  This saves having to copy it across as
  20. described in the README file.
  21.  
  22. In ld/Makefile, add '-I../a.out.h' to the CFLAGS, and delete the
  23. line 'chmem =232000 ld'.
  24.  
  25. In ld/type.h, about line 163, delete the line '#undef NULL'.
  26. Further down in the same file, about line 172, delete the prototypes
  27. for 'chmod' and for 'umask'.
  28.  
  29. In ld/writebin.c, about line 10, in '#define page_size() 4096',
  30. change the 4096 to 0; this seems nonsensical, but makes the binaries
  31. come out the same as those produced by the distributed ld86.
  32. In the same file, about line 50, in '#define FILEHEADERLENGTH 48',
  33. change the 48 to 32.  About line 79, before the line beginning with
  34. '#define offsetof(struc,', insert the line '#undef offsetof'.
  35. About line 912, comment out or delete the two lines stating that
  36. 'if (uzp) header.a_flags |= A_UZP;'.
  37.  
  38. After compiling with the above changes, I found that both the
  39. kernel compilation and lilo work correctly; whether there are errors
  40. in the above which will appear in the future, I cannot say.
  41.  
  42.      -- Owen
  43.      LeBlanc@mcc.ac.uk
  44.