bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build problem with cvs 1.11.6 on VMS


From: Paul Edwards
Subject: Re: Build problem with cvs 1.11.6 on VMS
Date: Fri, 04 Jul 2003 14:15:46 GMT

"Smit, Sander" <address@hidden> wrote in message news:address@hidden
> ALPHA> @build_lib
> $ set verify
> $ CC :== CC/DEBUG/NOOPTIMIZE/STANDARD=VAXC/DEFINE=HAVE_CONFIG_H-
> /INCLUDE_DIRECTORY=([-],[-.LIB],[-.SRC],[-.VMS])/PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES
> $ CC getopt.c
>
>      char *const *argv;
> ..........^
> %CC-E-PROMOTMATCH, In the definition of the function "cvs_getopt", the
> promoted type of argv is incompatible with the type of the
> corresponding parameter in a prior declaration.
> at line number 674 in file API_DIS:[CVS.CVS-1_11_6.LIB]GETOPT.C;4
>
>      const char *optstring;
> ................^
> %CC-E-PROMOTMATCH, In the definition of the function "cvs_getopt", the
> promoted type of optstring is incompatible with the type of the
> corresponding parameter in a prior declaration.
> at line number 675 in file API_DIS:[CVS.CVS-1_11_6.LIB]GETOPT.C;4
>
> How do I get around this compile error? I don't know where to look for
> the clashing prior declaration.

Can you try two things:

1. do a search/find/grep of all ".h" files to see how many different
definitions of "getopt" there are.

2. on line 672 of getopt.c, try renaming getopt to xxxopt and see if
that at least compiles.

Personally, I think that CVS should compile out-of-the box with
any ISO C compiler.  All the other stuff should be non-default
options.  I would not object to the fact that it wouldn't actually
link, because of the missing library files, stat() etc, which are
non-ISO.

BFN.  Paul.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]