git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: build is broken on FreeBSD if libsysinfo is installed
@ 2025-06-23 14:09 Renato Botelho
  2025-07-01 16:05 ` Renato Botelho
  0 siblings, 1 reply; 14+ messages in thread
From: Renato Botelho @ 2025-06-23 14:09 UTC (permalink / raw)
  To: git

FreeBSD has a libsysinfo package which contains GNU libc's sysinfo port. 
  Some users reported git 2.50.0 was failing to build when this port is 
installed and it happened because configure script detected libsysinfo 
but -lsysinfo was not added to LDFLAGS, ending up with following error:

scalar.o common-main.o libgit.a xdiff/lib.a reftable/libreftable.a 
libgit.a -lz -pthread
ld: error: undefined symbol: sysinfo

This patch [1] was added to git port adding a user option to 
enable/disable libsysinfo dependency and fix LDFLAGS when it's enabled.

I'm not sure about what is best approach for git project in this case.

[1] 
https://github.com/freebsd/freebsd-ports/blob/main/devel/git/files/patch-configure.ac
-- 
Renato Botelho


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

end of thread, other threads:[~2025-07-03 13:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 14:09 Bug: build is broken on FreeBSD if libsysinfo is installed Renato Botelho
2025-07-01 16:05 ` Renato Botelho
2025-07-01 20:03   ` Eric Sunshine
2025-07-01 20:03   ` Ramsay Jones
2025-07-02 11:28     ` Renato Botelho
2025-07-02 17:08       ` Junio C Hamano
2025-07-02 19:48         ` Renato Botelho
2025-07-02 22:37           ` Ramsay Jones
2025-07-02 23:08             ` Junio C Hamano
2025-07-02 22:33       ` Ramsay Jones
2025-07-03  8:40         ` Patrick Steinhardt
2025-07-03 12:35           ` Renato Botelho
2025-07-03 13:02             ` Patrick Steinhardt
2025-07-02 18:32     ` Eli Schwartz

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