Re: Can't build first git commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 04, 2019 at 08:58:37PM +0100, Fabio Aiuto wrote:

> I'm trying to build first commit of git made by Linus. I mean the one
> named e83c5163316f89bfbde7d9ab23... (I think this is enough).
> But at building stage i have the following error:
> 
> make all 
> gcc -g -o update-cache update-cache.o read-cache.o -lssl
> /usr/bin/ld: update-cache.o: undefined reference to symbol
> 'SHA1_Update@@OPENSSL_1_1_0'

The sha1 routines are in libcrypto. See 3be4b61aa4 (Link with -lcrypto
instead of -lssl when using openssl libraries., 2005-05-10). I also
needed -lz. See 9426167765 (Add "-lz" to link line to get in zlib.,
2005-04-08).

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

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux