Subject: Re: mcleanup, err, warn
To: Leslie Todd Masco <cactus@hks.net>
From: Ted Lemon <mellon@vix.com>
List: port-pmax
Date: 05/02/1995 16:47:38
I don't want to be discouraging about it, but there are some changes
to various library things that I haven't checked in yet.   I will
proceed with that at some future date, but right now kernel
improvements are a higher priority.   You're welcome to work on stuff
on your own, but only if you want to for your own benefit.

I believe that all the problems you've reported have to do with weak
symbols, and I haven't come up with a short-term solution to the
problem that satisfies me.  The long-term solution will be a change to
the toolchain.

For your edification, the short-term solution that I did use was
something like this:

diff -c2 /usr/archive/NetBSD/{current/src,working}/sys/sys/cdefs.h
*** /usr/archive/NetBSD/current/src/sys/sys/cdefs.h     Mon Nov 21 14:48:55 1994
--- /usr/archive/NetBSD/working/sys/sys/cdefs.h Sun Jan  1 23:04:01 1995
***************
*** 122,125 ****
--- 122,126 ----
  #endif
  
+ #ifndef mips
  #ifdef __GNUC__
  #ifdef __STDC__
***************
*** 138,141 ****
--- 139,145 ----
        __asm__(".stabs \"_/**/sym\",1,0,0,0")
  #endif
+ #endif
+ #else
+ #define __warn_references(sym,msg)
  #endif
  
I believe the names of those references have been changed somewhat,
but you may still be able to find the relevant code in sys/cdefs.h.

			       _MelloN_