I am attempting to build cvs on a server running RHEL 8 however there
are errors causing the build to fail as follows.

gcc -DHAVE_CONFIG_H -I. -I.. -I../src     -g -O2 -MT getline.o -MD -MP -MF 
.deps/getline.Tpo -c -o getline.o getline.c
In file included from getline.c:25:
getline.h:15:3: error: conflicting types for ‘getline’
   getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
   ^~~~~~~
In file included from getline.c:22:
/usr/include/stdio.h:622:18: note: previous declaration of ‘getline’ was here
 extern __ssize_t getline (char **__restrict __lineptr,
                  ^~~~~~~
getline.c:158:1: error: conflicting types for ‘getline’
 getline (lineptr, n, stream)
 ^~~~~~~
In file included from getline.c:22:
/usr/include/stdio.h:622:18: note: previous declaration of ‘getline’ was here
 extern __ssize_t getline (char **__restrict __lineptr,
                  ^~~~~~~
make[2]: *** [Makefile:322: getline.o] Error 1
make[2]: Leaving directory '/usr/src/cvs-1.11.23/lib'
make[1]: *** [Makefile:291: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/cvs-1.11.23'
make: *** [Makefile:222: all] Error 2

Does anybody know how to resolve this? 

_______________________________________________
Bug-cvs mailing list
Bug-cvs@nongnu.org
https://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to