home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!sol.ctr.columbia.edu!star!richard
- From: richard@star.ic.ac.uk (Richard Syratt )
- Subject: Compiling mintlib with a bug ridden Sozobon2 (was: Re: Cross Compiling Sozobon 2.0)
- Keywords: bugs
- 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>
- Sender: richard@star (Richard Syratt )
- Organization: Imperial College, London University
- Date: Fri, 6 Nov 1992 11:49:19 GMT
- Message-ID: <1992Nov6.114919.28271@sol.ctr.columbia.edu>
- X-Posted-From: op.ph.ic.ac.uk
- NNTP-Posting-Host: sol.ctr.columbia.edu
- Lines: 58
-
- If you've ben following this then you'll know I was having problems with
- the sozobon 2.0 link editor (ld). I *think* it's finally sorted out...
-
- ld was failing to pick up uninitialised variables from a library, definitely
- a bug. I believe this can be fixed by changing line 297 of syms.c (ld source).
- It was something like:
-
- if (sp->flags == EXTREF || sp->flags == COMMDEF)
-
- This is definitely wrong, since there are other bits of code whcih check
- for COMMDEF which can never be reached as things stand.
-
- change it to:
-
- if (sp->flags == EXTREF)
-
- Although this might not be the answer, it works as far as I can tell,
- (why was it there in the first place???) but since I'm cross compiling, I
- havn't actually checked to see if the executable actaully is. (executable).
- Can't see why not though.
-
- Still on the subject of bugs in sozobon2, nm needs a fix,
- the easiest thing to do is change tools/nm.c in subroutine dosym
- (about line 185):
- ...
- int n;
-
- if (havex == -1) <-- add these
- reuse = 0; <-- two lines
- if (reuse)
- reuse = 0;
- else {
- ...
-
-
- Do I have to use snail mail (even when it does go by air) to contact sozobon?
-
- Hope this is actually useful to someone... Scott?
-
- Other things you need to do to get mintlib compiled are:
-
- - Apply the relevant patches found with the current sozobon mint libraries.
- some of these are no longer necessary.
- - Change patchlev.h so that it uses ' instead of " for the #define bits -
- (another problem with sozobon ...), and change the ~ in ident.c to
- ' as well.
- - In files such as fscanf.c there are typedefs that sozobon doesn't like,
- I think you can delete these and any references to the things they
- were defining ... parameter passing defaults to type int doesn't it?
-
- I think that's it - there's probably a few warnings you might like
- to fix (uncast mallocs etc).
-
- I'll test it over the weekend, probably find I've got it all wrong :-(
-
- Richard Syratt
-
-
-