public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: Ramsay Jones <ramsay@ramsayjones.plus.com>
To: "Азат Усманов" <usmanov@ieml.ru>, git@vger.kernel.org
Subject: Re: git 2.50 and 2.50.1 src fails to compile in rhel 6
Date: Sun, 13 Jul 2025 00:30:59 +0100	[thread overview]
Message-ID: <24c4c6f4-00bb-400f-b315-bbc5e81983cb@ramsayjones.plus.com> (raw)
In-Reply-To: <1737451752344703@znolar4klagewshm.sas.yp-c.yandex.net>



On 12/07/2025 19:25, Азат Усманов wrote:
> I was able to apply the patch  sane-ctype.h  make did proceed until it stumbled  again, this time probably related to that path to random.h file I substituted earlier. Any thoughts?
[snip]

Wow, RHEL6! I think the oldest version we support is RHEL8.

[Moving header files from a newer glibc to RHEL6 is a definite no-no - don't
do that!]

Here, your glibc version is too old for getrandom(), so you need to build
with CSPRNG_METHOD= set either in your config.mak or on the make invocation,
something like:

    make CSPRNG_METHOD=

> wrapper.c: In function ‘csprng_bytes’:
> wrapper.c:782:23: warning: implicit declaration of function ‘getrandom’; did you mean ‘srandom’? [-Wimplicit-function-declaration]
>   782 |                 res = getrandom(p, len, 0);
>       |                       ^~~~~~~~~
>       |                       srandom

HTH.

ATB,
Ramsay Jones



  reply	other threads:[~2025-07-12 23:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-12 10:19 git 2.50 and 2.50.1 src fails to compile in rhel 6 Азат Усманов
2025-07-12 11:12 ` Phillip Wood
2025-07-12 15:41   ` Азат Усманов
2025-07-12 18:25     ` Азат Усманов
2025-07-12 23:30       ` Ramsay Jones [this message]
2025-07-13  4:23         ` Carlo Marcelo Arenas Belón
  -- strict thread matches above, loose matches on Subject: below --
2025-07-12 10:19 Азат Усманов
2025-07-12 10:19 Азат Усманов
2025-07-12 10:19 Азат Усманов
2025-07-12 10:19 Азат Усманов
2025-07-13 11:37 Азат Усманов

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24c4c6f4-00bb-400f-b315-bbc5e81983cb@ramsayjones.plus.com \
    --to=ramsay@ramsayjones.plus.com \
    --cc=git@vger.kernel.org \
    --cc=usmanov@ieml.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox