home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / atari / st / tech / 5512 < prev    next >
Encoding:
Text File  |  1992-11-07  |  2.6 KB  |  73 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!sol.ctr.columbia.edu!star!richard
  3. From: richard@star.ic.ac.uk (Richard Syratt )
  4. Subject: Compiling mintlib with a bug ridden Sozobon2 (was: Re: Cross Compiling Sozobon 2.0)
  5. Keywords: bugs
  6. References: <1992Nov2.133525.7992@sol.ctr.columbia.edu> <1992Nov3.140438.19093@news.lrz-muenchen.de> <567@muller.loria.fr> <1992Nov6.101457.26761@sol.ctr.columbia.edu>
  7. Sender: richard@star (Richard Syratt )
  8. Organization: Imperial College, London University
  9. Date: Fri, 6 Nov 1992 11:49:19 GMT
  10. Message-ID: <1992Nov6.114919.28271@sol.ctr.columbia.edu>
  11. X-Posted-From: op.ph.ic.ac.uk
  12. NNTP-Posting-Host: sol.ctr.columbia.edu
  13. Lines: 58
  14.  
  15. If you've ben following this then you'll know I was having problems with
  16. the sozobon 2.0 link editor (ld).  I *think* it's finally sorted out...
  17.  
  18. ld was failing to pick up uninitialised variables from a library, definitely
  19. a bug.  I believe this can be fixed by changing line 297 of syms.c (ld source).
  20. It was something like:
  21.  
  22.     if (sp->flags == EXTREF || sp->flags == COMMDEF)
  23.  
  24. This is definitely wrong, since there are other bits of code whcih check
  25. for COMMDEF which can never be reached as things stand.
  26.  
  27. change it to:
  28.  
  29.     if (sp->flags == EXTREF)
  30.  
  31. Although this might not be the answer, it works as far as I can tell,
  32. (why was it there in the first place???)  but since I'm cross compiling, I
  33. havn't actually checked to see if the executable actaully is. (executable).
  34. Can't see why not though.
  35.  
  36. Still on the subject of bugs in sozobon2, nm needs a fix,
  37. the easiest thing to do is change tools/nm.c in subroutine dosym
  38. (about line 185):
  39.         ...
  40.     int n;
  41.  
  42.     if (havex == -1)    <-- add these
  43.         reuse = 0;    <-- two lines
  44.     if (reuse)
  45.         reuse = 0;
  46.     else {
  47.         ...
  48.  
  49.  
  50. Do I have to use snail mail (even when it does go by air) to contact sozobon?
  51.  
  52. Hope this is actually useful to someone... Scott?
  53.  
  54. Other things you need to do to get mintlib compiled are:
  55.  
  56. - Apply the relevant patches found with the current sozobon mint libraries.
  57.     some of these are no longer necessary.
  58. - Change patchlev.h so that it uses ' instead of " for the #define bits -
  59.     (another problem with sozobon ...), and change the ~ in ident.c to
  60.     ' as well.
  61. - In files such as fscanf.c there are typedefs that sozobon doesn't like,
  62.     I think you can delete these and any references to the things they
  63.     were defining ... parameter passing defaults to type int doesn't it?
  64.  
  65. I think that's it - there's probably a few warnings you might like
  66. to fix (uncast mallocs etc).
  67.  
  68. I'll test it over the weekend, probably find I've got it all wrong :-(
  69.  
  70. Richard Syratt
  71.  
  72.  
  73.