# RE: Compilation troubles

2 messages from 2005-07-12 to 2005-07-12. Participants: Jerry Seutter, Linus Torvalds.
Thread: https://gitlist.dev/t/1213

## Jerry Seutter, 2005-07-12 19:00

Subject: RE: Compilation troubles
Message-ID: <5EDB10423795F248B2A4C4957409ED680280D603@exch-calgary.int.pason.com>
URL: https://gitlist.dev/e/5EDB10423795F248B2A4C4957409ED680280D603%40exch-calgary.int.pason.com

```
 

> -----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, 2005-07-12 20:27

Subject: RE: Compilation troubles
Message-ID: <Pine.LNX.4.58.0507121321200.17536@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.58.0507121321200.17536%40g5.osdl.org
In-Reply-To: <5EDB10423795F248B2A4C4957409ED680280D603@exch-calgary.int.pason.com>

```


On Tue, 12 Jul 2005, Jerry Seutter wrote:
> 
> 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

```
