Path: 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: <1990Dec31.081319.2012@proa.sv.dg.com> Reply-To: nicb@ctr.UUCP (Nicola Bernardini) Distribution: comp Organization: Centro Tempo Reale, Firenze Lines: 43 In article <1990Dec31.081319.2012@proa.sv.dg.com> gary@proa.sv.dg.com (Gary Bridgewater) writes: >In article 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