git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with 82e79c63642c, NOT_CONSTANT with sigfillset()
@ 2025-05-04 19:04 Torsten Bögershausen
  2025-05-05 20:47 ` Junio C Hamano
  2025-05-06 12:06 ` [PATCH/RFC v1 1/1] intialize false_but_the_compiler_does_not_know_it_ tboegi
  0 siblings, 2 replies; 7+ messages in thread
From: Torsten Bögershausen @ 2025-05-04 19:04 UTC (permalink / raw)
  To: git

There is a problem with the somewhat new
commit 82e79c63642c introducing NOT_CONSTANT with sigfillset():

Compiling on older (?) MacOs machine leads to this:
     Undefined symbols for architecture x86_64:
       "_false_but_the_compiler_does_not_know_it_", referenced from:
           _start_command in libgit.a(run-command.o)

What is the best thing to avoid this ?

The introduced "false_but_the_compiler_does_not_know_it" triggers here
because there is a proper prototype in signal.h and then a
#define sigfillset() ...
further down in the file, which can never fail.

a) Define a sigfillset_or_die_if_needed macro,
   which does what we have today, and is simply defined
   as sigfillset() without any error checking for MacOs(some version)
b) Revert the commit (and fix the conflicts)
c) Anything better ?

I have a raw patch for b), not fully cooked, as the commit message
is the hardest part. Before sending that out:
Are the thoughts about a better solution ?





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

end of thread, other threads:[~2025-05-07 16:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-04 19:04 Problems with 82e79c63642c, NOT_CONSTANT with sigfillset() Torsten Bögershausen
2025-05-05 20:47 ` Junio C Hamano
2025-05-06  6:14   ` Koji Nakamaru
2025-05-06 12:06 ` [PATCH/RFC v1 1/1] intialize false_but_the_compiler_does_not_know_it_ tboegi
2025-05-06 17:16   ` Junio C Hamano
2025-05-07  1:22     ` Koji Nakamaru
2025-05-07 16:27       ` Junio C Hamano

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).