Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compilation failures on RHEL 8

6 views
Skip to first unread message

Michael Watters

unread,
Jun 20, 2019, 3:29:19 PM6/20/19
to bug...@nongnu.org
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? 

Michael Watters

unread,
Jun 21, 2019, 9:54:55 AM6/21/19
to Petr Pisar, bug...@nongnu.org
Thanks.  I've tried building the srpm but it appears to require texinfo
which isn't available on Redhat 8.

[root@dev27-rhel8 rpmbuild]# dnf install perl-generators texinfo
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You
can use subscription-manager to register.
Last metadata expiration check: 0:03:40 ago on Fri 21 Jun 2019 09:43:25
AM EDT.
No match for argument: texinfo
Error: Unable to find a match

I tried commenting out the BuildRequires: texinfo line however the build
still fails due to a missing "makeinfo" command.

The texinfo srpm also requires several dependencies which aren't
available in the RHEL 8 repos provided on the DVD.  Is there a way that
you could make koji build the cvs package along with the dependencies
needed?


On 6/21/19 2:10 AM, Petr Pisar wrote:
> On Thu, Jun 20, 2019 at 03:28:45PM -0400, Michael Watters wrote:
>> 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));
>> ^~~~~~~
> You need this
> <https://src.fedoraproject.org/rpms/cvs/raw/master/f/cvs-1.11.23-getline64.patch>
> patch.
>
> Maybe you could try building Fedora RPM package
> <https://src.fedoraproject.org/rpms/cvs/> on the RHEL 8. Your chances would be
> higher since the two distributions are very similar.
>
> -- Petr

signature.asc

Petr Pisar

unread,
Jun 21, 2019, 10:15:50 AM6/21/19
to bug...@nongnu.org
On Fri, Jun 21, 2019 at 09:54:36AM -0400, Michael Watters wrote:
> Thanks.  I've tried building the srpm but it appears to require texinfo
> which isn't available on Redhat 8.
>
texinfo package is available in ContentReady Builder repository. You need to
enable that that repository. If you know RHEL 7, then it's something like
Optional repository.

> Is there a way that you could make koji build the cvs package along with the
> dependencies needed?
>
I cannot. An EPEL project that focuses on providing additional packages
compatible with RHEL is not ready yet for RHEL 8. It's waiting on CentOS 8 and
CentOS 8 is in the process of building.

-- Petr
signature.asc

Petr Pisar

unread,
Jun 21, 2019, 10:47:05 AM6/21/19
to bug...@nongnu.org
On Fri, Jun 21, 2019 at 04:14:53PM +0200, Petr Pisar wrote:
> texinfo package is available in ContentReady Builder repository. You need to

s/ContentReady Builder/CodeReady Builder/

-- Petr
signature.asc

Michael Watters

unread,
Jun 21, 2019, 10:47:32 AM6/21/19
to bug...@nongnu.org
No problem, I understand it will take some time.  I was able to compile
cvs from source using the cvs-1.11.23-getline64 patch however it would
be nice to have an rpm available.

Thanks for your assistance.

On 6/21/19 10:14 AM, Petr Pisar wrote:
> On Fri, Jun 21, 2019 at 09:54:36AM -0400, Michael Watters wrote:
>> Thanks.  I've tried building the srpm but it appears to require texinfo
>> which isn't available on Redhat 8.
>>
> texinfo package is available in ContentReady Builder repository. You need to
> enable that that repository. If you know RHEL 7, then it's something like
> Optional repository.
>
>> Is there a way that you could make koji build the cvs package along with the
>> dependencies needed?
>>
> I cannot. An EPEL project that focuses on providing additional packages
> compatible with RHEL is not ready yet for RHEL 8. It's waiting on CentOS 8 and
> CentOS 8 is in the process of building.
>
> -- Petr
>
> _______________________________________________
> Bug-cvs mailing list
> Bug...@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/bug-cvs
signature.asc

Michael Watters

unread,
Jun 21, 2019, 1:25:46 PM6/21/19
to bug...@nongnu.org
After enabling the Codeready repo and installing the texinfo package I
was able to build the cvs SRPM from Fedora 30.
signature.asc
0 new messages