Compiling PATCH
George Bron Faison
Bron at cup.portal.com
Mon Jul 9 11:36:59 AEST 1990
RE: Compiling PATCH 2.0 under 386/ix (SYSV) Unix:
I have downloaded patch version 2.0 and am trying to get it running on
a 386/ix 2.0.1 UNIX machine. Most stuff compiles OK. But patch
doesn't, I get the following errors:
cc -c -O patch.c
"./common.h", line 154: redeclaration of sprintf (OK, no problem here)
"patch.c", line 291: warning: illegal pointer/integer combination, op =
*** Error code 1
Stop.
Here's the offending segment:
#ifndef FLEXFILENAMES
{
char *s = rindex(rejname,'/'); /* <<- line 291 <<-***/
if (!s)
s = rejname;
if (strlen(s) > 13)
if (s[12] == '.') /* try to preserve difference */
s[12] = s[13]; /* between .h, .c, .y, etc. */
s[13] = '\0';
}
#endif
(Note that "rindex" becomes "strrchr" (and "index" "strchr") due to
#defines in config.h)
The Configure program seemed to run OK and the config.h looks OK to me.
I admit I'm not a seasoned C expert, but I hack around a bit. Anyone
got any ideas? I'm sure it's something very simple. Thanks in advance
for your help (how can one live without patch?)!
Bron
......................................................................
portal!cup.portal.com!Bron
Bron at cup.portal.com Modern Office Systems Technology, Inc.
George "Bron" Faison 6006-B Mechanicsville TurnPike
(804) 730-1467 Mechanicsville VA 23111
......................................................................
More information about the Comp.unix.questions
mailing list