Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!fluke!dcd
From: dcd@tc.fluke.COM (David Dyck)
Newsgroups: comp.os.minix
Subject: Re: Compiling zterm problems, won't link (minix asld 'static' bug)
Summary: quick fix in scanf.c
Keywords: asld bug static efth
Message-ID: <11322@fluke.COM>
Date: 25 Sep 89 17:22:45 GMT
References: <551@fred.UUCP>
Sender: news@tc.fluke.COM
Organization: John Fluke Mfg. Co., Inc., Everett, WA
Lines: 34

In article <551@fred.UUCP> bill@fred.UUCP (Bill Poitras) writes:
>When I was compiling zterm under Minix 1.4a, I got the message
>ctype.s, 94: _tolower mulitiple declared

I am running 1.3d using Bruce Evans protected mode kernel.
I had this problem also after installing 
	EFTH MINIX report #50  - October 1988 -  ctype(3) changes
	Subject: ctype(3) changes
	Message-ID: <524@uvicctr.UUCP>
	Date: 18 Oct 88 02:53:03 GMT
and found the not so static declaration of tolower in scanf.c
The changes to ctype.c included changing toupper and tolower
into subroutines from the macros that were in 

I see that EFTH #50 is part of 1.4a.

It seems that even though the tolower function in scanf is supposed to
be static, it is NOT.

At first I just #ifdef'ed out the tolower function in scanf, and
rebuilt the library.  This solution works.

Then I just added one line to the original scanf
	#define tolower scnftolr
I thought this a better temporary solution, since we no longer
get the name conflict and the original code is preserved.  An
added benefit, is that functions that call scanf are not forced to
include ctype.c and its _ctype table.

            David Dyck
    Domain: dcd@tc.fluke.COM
     Voice: +1 206 356 5807
      UUCP: {uw-beaver,decwrl,microsof,sun}!fluke!dcd
     Snail: John Fluke Mfg. Co. / P.O. Box C9090 / Everett WA  98206