threads / discuss / 1213

RE: Compilation troubles

Subject: RE: Compilation troubles

## tl;dr

2 messages between Jul 12, 2005 and Jul 12, 2005.

replies: 1people: 2as markdown or json

Jerry Seutter· Jul 12, 2005, 19:00 UTC · lore
Show 27 quoted lines
> -----Original Message-----
> From: git-owner@vger.kernel.org 
> [mailto:git-owner@vger.kernel.org] On Behalf Of Dan Kohn
> Sent: Tuesday, July 12, 2005 12:34 PM
> To: git@vger.kernel.org
> Subject: Compilation troubles
> 
> I apologize for what are probably obvious compilation questions, but I
> suspect other newbies are encountering them as well.  I'm 
> having trouble
> installing cogito 0.12.1 on both a vanilla Ubuntu box and on 
> my account
> on a FreeBSD machine.  I'm used to autoconf-built programs, so there's
> probably just some simple library path I'm not setting up right.  But
> I'd appreciate your suggestions, and perhaps we can add the answer to
> the INSTALL file.
> 
> UBUNTU 5.04
> 
> I used synaptics to install openssl, zlib, and curl, but cogito can't
> seem to see them.
> 
> root@ubuntu-dan-kohn:/usr/local/src/cogito-0.12.1 # make
> cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o read-cache.o
> read-cache.c
> In file included from read-cache.c:6:
> cache.h:21:21: openssl/sha.h: No such file or directory

I tried this last night with Ubuntu (Warty). The openssl package doesn't include header files so presumably you would need to install openssl-dev, only that package doesn't seem to exist in Ubuntu-land. I gave up at this point and installed on a different system.

The README file for cogito/git mentions that there is an ssl library included in the source which you can use if you don't have openssl. It doesn't give any directions on how to use it, however. You could try looking into using that.

Jerry Seutter
Linus Torvalds· Jul 12, 2005, 20:27 UTC · re: Jerry Seutter · lore
On Tue, 12 Jul 2005, Jerry Seutter wrote:
Show 5 quoted lines
> 
> The README file for cogito/git mentions that there is an ssl library
> included in the source which you can use if you don't have openssl.  It
> doesn't give any directions on how to use it, however.  You could try
> looking into using that.
Use
	make MOZILLA_SHA1=1
to use the included mozilla-based SHA1 library.

(Or just do "export MOZILLA_SHA1=1" in your .bashrc so that you always do this).

There's also a "PPC_SHA1" which works the same way, and which enables the optimized ppc assembly language version. It used to make a big difference for me, but it seems modern openssl libraries already have something fairly optimized (on my YDL machine the openssl version was really slow).

		Linus

← back to recent threads