public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: Phillip Wood <phillip.wood123@gmail.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: Sat, 12 Jul 2025 12:12:52 +0100	[thread overview]
Message-ID: <f636840b-ec66-4059-9d0c-3cca07d42007@gmail.com> (raw)
In-Reply-To: <1615371752315594@mail-sendbernar-production-main-92.sas.yp-c.yandex.net>

On 12/07/2025 11:19, Азат Усманов wrote:
> Hello everyone! I'm having trouble compilig git source since version 2.50 ,  for RHEL 6 (both in redhat 6-6 and 6.10).
> the same source  compiles fine in  RHEL8 (Red Hat Enterprise Linux release 8.10 (Ootpa))
> first compiler complans about missing random.h in compat/posix.h ,if you copy missing random.h file to RHEL6 machine to the /usr/include/sys directory  then errors change to  whole bunch of other errors like
> error: expected declaration specifiers or ‘...’ before numeric constant
>   
>     45 | #define toupper(x) sane_case((unsigned char)(x), 0)
> both working and non working systems have same gcc 13-4.0 . Last version that compiles  in both rhel 6 and rhel 8 is 2.49.1 Any ideas ?

There is a patch to fix this issue available at 
https://lore.kernel.org/git/xmqqtt3j69r8.fsf@gitster.g/

Thanks

Phillip
>   
>   git-2.50.1# make  -j $(nproc) configure && ./configure && make -j $(nproc) && make -j $(nproc) install && make -j $(nproc) clean
> GIT_VERSION=2.50.1
>      GEN configure
> configure: Setting lib to 'lib' (the default)
> configure: Will try -pthread then -lpthread to enable POSIX Threads.
> configure: CHECKS for site configuration
> checking for gcc... /usr/local/gcc-13.4.0/bin/gcc-13.4
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether the compiler supports GNU C... yes
> checking whether /usr/local/gcc-13.4.0/bin/gcc-13.4 accepts -g... yes
> checking for /usr/local/gcc-13.4.0/bin/gcc-13.4 option to enable C11 features... none needed
> checking for stdio.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for strings.h... yes
> checking for sys/stat.h... yes
> checking for sys/types.h... yes
> checking for unistd.h... yes
> checking for size_t... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> configure: CHECKS for programs
> checking whether the compiler supports GNU C... (cached) yes
> checking whether /usr/local/gcc-13.4.0/bin/gcc-13.4 accepts -g... (cached) yes
> checking for /usr/local/gcc-13.4.0/bin/gcc-13.4 option to enable C11 features... (cached) none needed
> checking for inline... inline
> checking if linker supports -R... no
> checking if linker supports -Wl,-rpath,... yes
> checking for gar... no
> checking for ar... ar
> checking for gtar... gtar
> checking for gnudiff... no
> checking for gdiff... no
> checking for diff... diff
> checking for asciidoc... no
> configure: CHECKS for libraries
> checking for SHA1_Init in -lcrypto... yes
> checking for curl_global_init in -lcurl... yes
> checking for curl-config... curl-config
> configure: Setting CURL_LDFLAGS to '-L/usr/local/lib -lcurl'
> checking for XML_ParserCreate in -lexpat... yes
> checking for iconv in -lc... yes
> checking for deflateBound in -lz... yes
> checking for socket in -lc... yes
> checking for inet_ntop... yes
> checking for inet_pton... yes
> checking for hstrerror... yes
> checking for basename in -lc... yes
> checking if libc contains libintl... yes
> checking for libintl.h... yes
> configure: CHECKS for header files
> checking for sys/select.h... yes
> checking for poll.h... yes
> checking for sys/poll.h... yes
> checking for inttypes.h... (cached) yes
> checking for old iconv()... no
> checking whether iconv omits bom for utf-16 and utf-32... no
> configure: CHECKS for typedefs, structures, and compiler characteristics
> checking for socklen_t... yes
> checking for struct itimerval... yes
> checking for struct stat.st_mtimespec.tv_nsec... no
> checking for struct stat.st_mtim.tv_nsec... yes
> checking for struct dirent.d_type... yes
> checking for struct passwd.pw_gecos... yes
> checking for struct sockaddr_storage... yes
> checking for struct addrinfo... yes
> checking for getaddrinfo... yes
> checking for library containing getaddrinfo... none required
> checking how to run the C preprocessor... /usr/local/gcc-13.4.0/bin/gcc-13.4 -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking whether the platform regex supports REG_STARTEND... yes
> checking whether system succeeds to read fopen'ed directory... yes
> checking whether snprintf() and/or vsnprintf() return bogus value... no
> checking whether the platform uses typical file type bits... yes
> configure: CHECKS for library functions
> checking for libgen.h... yes
> checking for paths.h... yes
> checking for libcharset.h... no
> checking for strings.h... (cached) yes
> checking for locale_charset in -liconv... no
> checking for locale_charset in -lcharset... no
> checking for sysinfo... yes
> checking for clock_gettime... no
> checking for CLOCK_MONOTONIC... yes
> checking for sync_file_range... yes
> checking for library containing sync_file_range... none required
> checking for setitimer... yes
> checking for library containing setitimer... none required
> checking for strcasestr... yes
> checking for library containing strcasestr... none required
> checking for memmem... yes
> checking for library containing memmem... none required
> checking for strlcpy... no
> checking for uintmax_t... yes
> checking for strtoumax... yes
> checking for library containing strtoumax... none required
> checking for setenv... yes
> checking for library containing setenv... none required
> checking for unsetenv... yes
> checking for library containing unsetenv... none required
> checking for mkdtemp... yes
> checking for library containing mkdtemp... none required
> checking for initgroups... yes
> checking for library containing initgroups... none required
> checking for getdelim... yes
> checking for library containing getdelim... none required
> checking for BSD sysctl... no
> checking for POSIX Threads with ''... no
> checking for POSIX Threads with '-mt'... no
> checking for POSIX Threads with '-pthread'... yes
> configure: creating ./config.status
> config.status: creating config.mak.autogen
> config.status: executing config.mak.autogen commands
>      * new build flags
>      * new link flags
>      CC base85.o
>      CC bisect.o
>      * new prefix flags
>      CC blame.o
>      CC blob.o
>      CC bloom.o
>      CC branch.o
>      CC bulk-checkin.o
>      CC bundle-uri.o
>      CC bundle.o
>      CC cache-tree.o
>      CC cbtree.o
>      CC chdir-notify.o
>      CC checkout.o
>      CC chunk-format.o
>      CC color.o
>      CC column.o
> In file included from compat/posix.h:449,
>                   from git-compat-util.h:26,
>                   from checkout.c:3:
> compat/../sane-ctype.h:29:60: error: expected expression before ‘]’ token
>     29 | #define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
>        |                                                            ^
>    0)
>        |                                                  ^
> make: *** [Makefile:2821: cbtree.o] Error 1
> make: *** Waiting for unfinished jobs....
> make: *** [Makefile:2821: base85.o] Error 1
> make: *** [Makefile:2821: chdir-notify.o] Error 1
> make: *** [Makefile:2821: chunk-format.o] Error 1
> make: *** [Makefile:2821: blob.o] Error 1
> make: *** [Makefile:2821: color.o] Error 1
> make: *** [Makefile:2821: checkout.o] Error 1
> make: *** [Makefile:2821: column.o] Error 1
> make: *** [Makefile:2821: bulk-checkin.o] Error 1
> make: *** [Makefile:2821: branch.o] Error 1
> make: *** [Makefile:2821: cache-tree.o] Error 1
> make: *** [Makefile:2821: bloom.o] Error 1
> make: *** [Makefile:2821: bundle-uri.o] Error 1
> make: *** [Makefile:2821: bundle.o] Error 1
> make: *** [Makefile:2821: bisect.o] Error 1
> make: *** [Makefile:2821: blame.o] Error 1
> 


  reply	other threads:[~2025-07-12 11:13 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 [this message]
2025-07-12 15:41   ` Азат Усманов
2025-07-12 18:25     ` Азат Усманов
2025-07-12 23:30       ` Ramsay Jones
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=f636840b-ec66-4059-9d0c-3cca07d42007@gmail.com \
    --to=phillip.wood123@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=phillip.wood@dunelm.org.uk \
    --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