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

RE: [BUG] Re: Git 2.35.0-rc0

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Jan 11, 2022, 02:57 UTC
Message-ID
<010b01d80697$0c848770$258d9650$@nexbridge.com>
In-Reply-To
<Ydzw+RqR6IfbT/oM@nand.local>
On January 10, 2022 9:53 PM, Taylor Blau wrote:
Show 28 quoted lines
> On Mon, Jan 10, 2022 at 09:20:15PM -0500, rsbecker@nexbridge.com
> wrote:
> > Hi All,
> >
> > Git 2.35.0-rc0 is not portable:
> >
> > uncompress2(uncompressed + block_header_skip, &dst_len,
> >                    ^
> > "/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/reftabl
> > e/bloc
> > k.c", line 213: error(114):
> >           identifier "uncompress2" is undefined
> >
> > This is not a POSIX compliant call.
> 
> uncompress2() isn't a POSIX thing, it's part of zlib IIUC. The new caller is in the
> reftable code, which provides a build knob
> NO_UNCOMPRESS2 that you can use if your version of zlib does not have
> uncompress2().
> 
> uncompress2() was added to zlib back in 37281ac (Add uncompress2()
> function, which returns the input size used., 2016-11-15), which first
> appeared in version 1.2.9.
> 
> If your system doesn't have a modern-ish zlib, you may try building with that
> knob, or upgrading your system's copy of zlib. And if NonStop doesn't have a
> modern zlib available at all, we should modify the NonStop section of
> config.mak.uname.
There is no provision in reftable/block.c to avoid using uncompress2, so the knob will not help. Our zlibc is not that recent (as in it does not have uncompress2) and we cannot make the 2.35.0 timeframe to upgrade it. The current zlib seems to require gcc and is very difficult to port at this stage. This is a blocker situation.
--Randall
Previous: Taylor BlauNext: Taylor Blau
Message 3 of 13 in “[BUG] Re: Git 2.35.0-rc0”
  1. rsbecker@nexbridge.comJan 11, 2022
  2. Taylor BlauJan 11, 2022
  3. rsbecker@nexbridge.comJan 11, 2022
  4. Taylor BlauJan 11, 2022
  5. rsbecker@nexbridge.comJan 11, 2022
  6. rsbecker@nexbridge.comJan 11, 2022
  7. rsbecker@nexbridge.comJan 11, 2022
  8. Taylor BlauJan 11, 2022
  9. rsbecker@nexbridge.comJan 11, 2022
  10. Junio C HamanoJan 12, 2022
  11. Taylor BlauJan 12, 2022
  12. Ævar Arnfjörð BjarmasonJan 13, 2022
  13. Junio C HamanoJan 13, 2022

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.