Xref: utzoo comp.sources.d:2322 comp.sources.bugs:1039 Path: utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!ames!pasteur!ucbvax!decwrl!pyramid!prls!philabs!sbcs!bnlux0!abrams From: abrams@bnlux0.bnl.gov (Karl L. Abrams) Newsgroups: comp.sources.d,comp.sources.bugs Subject: PATCH patch 10 problem Message-ID: <565@bnlux0.bnl.gov> Date: 17 Jun 88 14:01:38 GMT Reply-To: abrams@bnlux0.UUCP (Karl L. Abrams) Distribution: na Organization: Brookhaven National Lab., Upton, N.Y. Lines: 43 We have been using PATCH here at BNL for quite a while with great success. Today, I attempted to apply patch #10 and failed. Our system is Ultrix2.0 running on a VAX 11/780. After unsharing the patch and running Config, 'make' barfed. #<8> make cc -c -O patch.c "./common.h", line 154: redeclaration of sprintf "patch.c", line 291: warning: illegal combination of pointer and integer, op = *** Error code 1 Stop. ------------------------------------------------------------------------------------------------- Lines 151-155 of common.h look like: #ifdef CHARSPRINTF char *sprintf(); #else int *sprintf(); #endif Config said "Your sprintf() returns (char*)", so why did common.h try to redefine sprintf at line 154? Hmmmm...config.h.SH has the following: /* CHARSPRINTF: * This symbol is defined if this system declares "char *sprintf()" in * stdio.h. The trend seems to be to declare it as "int sprintf()". It * is up to the package author to declare sprintf correctly based on the * symbol. */ #$d_charsprf CHARSPRINTF /**/ The offending line in patch.c is: char *s = rindex(rejname,'/'); Does anyone have any ideas as to why Make is barfing? Any help will be much appreciated. -- INTERNET: abrams@bnlux0.bnl.gov BITNET: abrams@bnlux0.BITNET UUCP: ...philabs!sbcs!bnlux0!abrams