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

Re: Can't build first git commit

From
FAFabio Aiuto <polinice83@libero.it>
Date
Mar 6, 2019, 19:58 UTC
Message-ID
<1551902320.1727.1.camel@libero.it>
In-Reply-To
<20190305191519.GA12791@sigill.intra.peff.net>
Il giorno mar, 05/03/2019 alle 14.15 -0500, Jeff King ha scritto:
Show 31 quoted lines
> On Mon, Mar 04, 2019 at 03:40:07PM -0500, Jeff King wrote:
> 
> > You can patch the Makefile, or just override it like:
> > 
> >   make LIBS='-lcrypto -lz'
> > 
> > which builds for me on current Debian unstable. I don't think you
> > can
> > actually fetch with that old build, but I used periodically check
> > that
> > Git v1.0 can fetch happily from GitHub. I haven't in a while, so
> > let me
> > know if you try it and it doesn't work. ;)
> 
> I just tried this, and it does indeed work. I had to build v1.0.0
> with
> 
>   make NO_OPENSSL=Nope
> 
> I think the issue is that some old code embedded openssl's BIGNUM in
> a
> struct, and later versions of openssl stopped publicly defining the
> types.
> 
> I was able to clone git://github.com/git/git with the result, though
> of
> course it chokes no the sha1collisiondetection submodule. You can
> still
> use "git log", though, and checkout older commits.
> 
> -Peff
Hi Jeff,
I've just typed make make LIBS='-lcrypto -lz' from the shell inside the
 
directory containing the whole first commit and it seems to work. I
trace all through the code. Yes the fetch command wasn't written at
that time, right? I didn't understand why should be better to work with
the git code from github. There's something I misunderstood?
Thank you Jeff ;-)
Previous: Jeff KingNext: Jeff King
Message 10 of 18 in “Can't build first git commit”
  1. Fabio AiutoMar 4, 2019
  2. Santiago TorresMar 4, 2019
  3. Fabio AiutoMar 4, 2019
  4. Santiago TorresMar 4, 2019
  5. asymptosisMar 4, 2019
  6. Jonathan NiederMar 4, 2019
  7. Jeff KingMar 4, 2019
  8. Fabio AiutoMar 5, 2019
  9. Jeff KingMar 5, 2019
  10. Fabio AiutoMar 6, 2019
  11. Jeff KingMar 6, 2019
  12. Fabio AiutoMar 6, 2019
  13. Santiago TorresMar 6, 2019
  14. Jeff KingMar 6, 2019
  15. Fabio AiutoMar 6, 2019
  16. Jeff KingMar 6, 2019
  17. Jeff KingMar 7, 2019
  18. Fabio AiutoMar 7, 2019

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.