🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #1301

Re: problems building abc

#1301
From: nicb Nicola Bernardini
Date: Wed, 02 Jan 1991 12:16
43 lines
2266 bytes
In article <1990Dec31.081319.2012@proa.sv.dg.com> gary@proa.sv.dg.com (Gary Bridgewater) writes:
>In article <SCHULTE.90Dec29203525@sparc0.thp.uni-koeln.de> schulte@thp.uni-koeln.de (Martin Schulte) writes:
>>
>>With the sun4-patch I described lastly, it now gets compiled on a
>>SunOS 4.1 Sparc !
>
>Hmm.  Doesn't your compiler/linker notice the strange call to remove?  Perhaps
>no one else has run with full header files??
>	gcc -pipe -O  -DNDEBUG -I../bhdrs -I../ihdrs -I../uhdrs -c i3loc.c
>i3loc.c: In function l_remove:
>i3loc.c:430: warning: argument passing between incompatible pointer types
>i3loc.c:430: too many arguments to function `remove'
>i3loc.c: In function unbind:
>i3loc.c:456: warning: argument passing between incompatible pointer types
>i3loc.c:456: too many arguments to function `remove'
>
>But the big question - which I have reported to the authors - is what is
>the call to remove _really_ supposed to be?  Remove() deletes files.  It
>doesn't look like that is what is wanted here at all.

The problem is that "remove" is a macro for unlink defined
in many stdio.h header files. What you have to do is to add
(sorry, I have no patch program!) in uhdrs/os.h (or in
uhdrs/os.h.gen, if you behave by the book):

#ifdef remove		/* must have been in stdio.h, evidently */
#undef remove
#endif /* remove */

and everything will shut up after that.
------------------------------------------
Nicola Bernardini -  nicb%ctr@italy.eu.net
Centro Tempo Reale
Villa Strozzi
Via Pisana, 77
50143 Firenze
Tel. ++3955/702444
Fax. ++3955/717712
-- 
------------------------------------------
Nicola Bernardini -  nicb%ctr@italy.eu.net
Centro Tempo Reale
Villa Strozzi
Technical Details
Message-ID: <1991Jan02.121609.23440@ctr@italy.eu.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!ctr!nicb
References: <SCHULTE.90Dec29203525@sparc0.thp.uni-koeln.de> <1990Dec31.081319.2012@proa.sv.dg.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!ctr!nicb
From: nicb@ctr@italy.eu.net (Nicola Bernardini)
Newsgroups: comp.sources.d
Subject: Re: problems building abc
Keywords: remove macro, stdio.h
Message-ID: <1991Jan02.121609.23440@ctr@italy.eu.net>
Date: 2 Jan 91 12:16:09 GMT
References: <SCHULTE.90Dec29203525@sparc0.thp.uni-koeln.de> <1990Dec31.081319.2012@proa.sv.dg.com>
Reply-To: nicb@ctr.UUCP (Nicola Bernardini)
Distribution: comp
Organization: Centro Tempo Reale, Firenze
Lines: 43