Re: git 2.50 and 2.50.1 src fails to compile in rhel 6
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Jul 12, 2025, 23:30 UTC
- Message-ID
- <24c4c6f4-00bb-400f-b315-bbc5e81983cb@ramsayjones.plus.com>
- 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=
Show 5 quoted lines
> 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