[comp.os.minix] Mac: gcc-ar fix and library rebuilds

deo@eecs.cs.pdx.edu (Steven Furber) (11/23/90)

I installed the gcc-ar fix and compiled without a problem.  The
libraries built without any errors (a ton of warnings, though) however
there seem to be some problems.

The short (16 bit) libraries will work with the following, however the
large (32 bit) libraries will compile without giving me any output.
 
#include <stdio.h>
main()
{
  fprintf(stdout, "Hello.\n");
}

It just seems a bit strange....

It does not work with just printf(..).

mccabe@hatteras.cs.unc.edu (Daniel McCabe) (11/26/90)

There appears to be a bug in one of the Makfiles distributed with the
library source.  In particular, if you invoke Makefile.32, it will build
crtso.o rather than crtso32.o.  Change the Makefile.32 to build the latter.

If you build both in succession with the buggy Makefiles, then the last crtso.o
that you built will be the one you get (most likeley the 32 bit version).
Linking a 32 bit libreary with 16 bit object code is likely to wreak other
havoc as well.

As a check, make sure that for every *.o that you made, that there is a *32.o.
A similar comment applies to *.a and *32.a.  At this time, the only one that
doesn't get made is crtso32.o (it gets called crtso.o, which is for 16 bit
code, not 32 bit code).

Cheers,
danm