git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug: build is broken on FreeBSD if libsysinfo is installed

From
Renato Botelho <garga@freebsd.org>
Date
Jul 1, 2025, 16:05 UTC
Message-ID
<9dce7213-0b8c-4636-ab37-4c26081aedf4@FreeBSD.org>
In-Reply-To
<f32292e0-4c99-47d0-8eac-21dbc5aca302@FreeBSD.org>
On 23/06/25 11:09, Renato Botelho wrote:
Show 16 quoted lines
> 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

If someone let me know what would be the desired approach here I can work on a patch. Would you like to make that option conditional as the patch did? Or detect if OS is FreeBSD and do something different?

-- 
Renato Botelho
Previous: Renato BotelhoNext: Eric Sunshine
Message 2 of 14 in “Bug: build is broken on FreeBSD if libsysinfo is installed”
  1. Renato BotelhoJun 23, 2025
  2. Renato BotelhoJul 1, 2025
  3. Eric SunshineJul 1, 2025
  4. Ramsay JonesJul 1, 2025
  5. Renato BotelhoJul 2, 2025
  6. Junio C HamanoJul 2, 2025
  7. Renato BotelhoJul 2, 2025
  8. Ramsay JonesJul 2, 2025
  9. Junio C HamanoJul 2, 2025
  10. Ramsay JonesJul 2, 2025
  11. Patrick SteinhardtJul 3, 2025
  12. Renato BotelhoJul 3, 2025
  13. Patrick SteinhardtJul 3, 2025
  14. Eli SchwartzJul 2, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.