Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site enea.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!mcvax!enea!kim From: kim@enea.UUCP (Kim Walden) Newsgroups: net.unix Subject: Re: Kim Walden's make dependency generator (does it work?) Message-ID: <877@enea.UUCP> Date: Sat, 29-Jun-85 14:05:37 EDT Article-I.D.: enea.877 Posted: Sat Jun 29 14:05:37 1985 Date-Received: Fri, 5-Jul-85 03:43:36 EDT Organization: ENEA DATA, Sweden Lines: 44 In-Reply-To: <161@grpwre.UUCP> In article <161@grpwre.UUCP> Scott Herzinger writes: >1) Has anyone ported this to System III or V? > >2) Has anyone gotten makedep to work at all? > ... >Makedep has some expressions that confuse me. For instance: > > sprintf(s, "makenorm %s `pwd` %s %s | ", norm, srcs); > >The format causes sprintf to expect three arguments; only two are >supplied... I thought a replied to this a week ago, but it somehow didn't make it, so here we go again. Yes, I have had several responses from people at various non-Berkeley installations, system V and others, that have makedep running without problems. The sprintf mentioned is an old fossil bug that went undetected at our 4.2bsd, because the third %s only copied an empty string. The correct line should read: sprintf(s, "makenorm %s `pwd` %s | ", norm, srcs); When porting makedep to system V, it is also useful to have -Dindex=strchr -Drindex=strrchr in ones CFLAGS when running make. -- Kim Walden ENEA DATA Sweden UUCP: {seismo,decvax,philabs}!{mcvax,ukc,unido}!enea!kim ARPA: decvax!mcvax!enea!kim@berkeley.arpa mcvax!enea!kim@seismo.arpa