Re:git 2.54 fails to build for rhel 6 (2.53 builds fine)
- From
- Азат Усманов <usmanov@ieml.ru>
- Date
- May 7, 2026, 22:55 UTC
- Message-ID
- <13728641778194549@82262e03-137b-467d-af78-c41a576b58da>
- In-Reply-To
- <87E428E0-97B3-499F-A352-20A1E617D168@gmail.com>
git --version --build-options on 2.53 on rhel 6 actually revealed the problem. it showed that actually git compiled with system openssl 1.0.1.e
it turns out that ieven though my openssl version(the one shown from the root home is 3.5.6 git tries to compile itself with system openssl which is way of - 1.0.1e) it fails because of this item in the change log of 2.54 ""imap-send" used to use functions whose use is going to be removed with OpenSSL 4.0; rewrite them using public API that has been available since OpenSSL 1.1 since 2016 or so. (merge 6392a0b75d bb/imap-send-openssl-4.0-prep later to maint)."
git 2.54 successfully builds on rhel8 because unlike rhel 6 rhel 8 uses OpenSSL 1.1.1 as it system default specifiying openssl dir where 3.5.6 is located has successfuly solved the issue so for rhel 6 command became ./configure --with-openssl=/usr/local/openssl && make -j $(nproc) CSPRNG_METHOD= && make -j $(nproc) install CSPRNG_METHOD= && make -j $(nproc) clean and to prevent any possible errors in future I also upgraded my command line for rhel 8 so it became ./configure --with-openssl=/usr/local/openssl && make -j $(nproc) && make -j $(nproc) install && make -j $(nproc) clean lesson learned check your build options (I was always using regular git version without -- build-options)
thanks for pointing me in the right direction