git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Build failure on RHEL7 with 2.47.0
@ 2024-10-22 13:04 Mike Lothian
  2024-10-22 13:55 ` Patrick Steinhardt
  2024-10-22 14:03 ` Torsten Bögershausen
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Lothian @ 2024-10-22 13:04 UTC (permalink / raw)
  To: git

Hi

I'm seeing build failures on RHEL7 when trying to build 2.47.0 - RHEL8
seems to be fine



    CC t/unit-tests/clar/clar.o
    CC t/unit-tests/unit-test.o
t/unit-tests/clar/clar.c: In function ‘clar_time_now’:
t/unit-tests/clar/clar.c:274:18: error: storage size of ‘tz’ isn’t known
  274 |  struct timezone tz;
      |                  ^~
t/unit-tests/clar/clar.c: In function ‘clar_parse_args’:
t/unit-tests/clar/clar.c:543:47: warning: implicit declaration of
function ‘strdup’; did you mean ‘strcmp’?
[-Wimplicit-function-declaration]
  543 |    _clar.summary_filename = *(argument + 2) ? strdup(argument
+ 2) : NULL;
      |                                               ^~~~~~
      |                                               strcmp
t/unit-tests/clar/clar.c:543:68: warning: pointer/integer type
mismatch in conditional expression
  543 |    _clar.summary_filename = *(argument + 2) ? strdup(argument
+ 2) : NULL;
      |                                                                    ^
t/unit-tests/clar/clar.c: In function ‘clar_test_init’:
t/unit-tests/clar/clar.c:569:26: warning: assignment to ‘char *’ from
‘int’ makes pointer from integer without a cast [-Wint-conversion]
  569 |   _clar.summary_filename = strdup(summary_env);
      |                          ^
t/unit-tests/clar/clar.c:573:26: warning: assignment to ‘char *’ from
‘int’ makes pointer from integer without a cast [-Wint-conversion]
  573 |   _clar.summary_filename = strdup("summary.xml");
      |                          ^
t/unit-tests/clar/clar.c: In function ‘clar__fail’:
t/unit-tests/clar/clar.c:692:22: warning: assignment to ‘char *’ from
‘int’ makes pointer from integer without a cast [-Wint-conversion]
  692 |   error->description = strdup(description);
      |                      ^
In file included from t/unit-tests/clar/clar.c:838:
t/unit-tests/clar/clar/sandbox.h: In function ‘build_sandbox_path’:
t/unit-tests/clar/clar/sandbox.h:138:6: warning: implicit declaration
of function ‘mkdtemp’ [-Wimplicit-function-declaration]
  138 |  if (mkdtemp(_clar_path) == NULL)
      |      ^~~~~~~
t/unit-tests/clar/clar/sandbox.h:138:26: warning: comparison between
pointer and integer
  138 |  if (mkdtemp(_clar_path) == NULL)
      |                          ^~
In file included from t/unit-tests/clar/clar.c:92:
t/unit-tests/clar/clar/fs.h: In function ‘fs_copy’:
t/unit-tests/clar/clar/fs.h:446:16: warning: implicit declaration of
function ‘lstat’; did you mean ‘fstat’?
[-Wimplicit-function-declaration]
  446 |  cl_must_pass_(lstat(source, &source_st), "Failed to stat copy source");
      |                ^~~~~
t/unit-tests/clar/clar.h:89:49: note: in definition of macro ‘cl_must_pass_’
   89 | #define cl_must_pass_(expr, desc) clar__assert((expr) >= 0,
__FILE__, __func__, __LINE__, "Function call failed: " #expr, desc, 1)
      |                                                 ^~~~
make: *** [t/unit-tests/clar/clar.o] Error 1
make: *** Waiting for unfinished jobs....

Have I done something silly or is it just too old?

Thanks

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-22 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 13:04 Build failure on RHEL7 with 2.47.0 Mike Lothian
2024-10-22 13:55 ` Patrick Steinhardt
2024-10-22 14:03 ` Torsten Bögershausen
2024-10-22 21:30   ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).