Re: Compilation troubles

2005-07-12 Thread Matthias Urlichs
Hi, Dan Kohn wrote:

> UBUNTU 5.04

You want zlib1g-dev, libssl-dev, asciidoc, xmlto, libcurl3-dev.

I'll prepare a patch to do a simple set of Debian packages (so that "make
debian" works) for git(k)/cogito. I already use them locally, but that
branch is too unclean. :-/

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
The City of Palo Alto, in its official description of parking lot standards,
specifies the grade of wheelchair access ramps in terms of centimeters of
rise per foot of run.  A compromise, I imagine...


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: Compilation troubles

2005-07-12 Thread Linus Torvalds


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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: Compilation troubles

2005-07-12 Thread Jerry Seutter
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jerry Seutter
> Sent: Tuesday, July 12, 2005 1:01 PM
> To: Dan Kohn; git@vger.kernel.org
> Subject: RE: Compilation troubles
> 
>  
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] 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.
> > 
> > [EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # make
> > cc -g -O2 -Wall  '-DSHA1_HEADER='   -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.
> 

If you build the openssl package from source, it builds a libssl-dev
package that you can install on your system.  Do something like:

mkdir -p /tmp/tmp && cd /tmp/tmp
apt-get source openssl
sudo ./openssl-0.9.7d/debian/rules binary
sudo dpkg -i libssl-dev_0.9.7d-3ubuntu0.1_i386.deb

then you should be able to build past the openssl part.  Presumably
you'll have to do something similar for libcurl, but I haven't tried it.

Jerry Seutter
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: Compilation troubles

2005-07-12 Thread Jerry Seutter
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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.
> 
> [EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # make
> cc -g -O2 -Wall  '-DSHA1_HEADER='   -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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Compilation troubles

2005-07-12 Thread Marc Singer
On Tue, Jul 12, 2005 at 11:33:36AM -0700, Dan Kohn wrote:
> 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.

Perhaps you need the openssl-dev and zlib-dev packages.  Just a guess
since I don't know ubuntu.

> 
> [EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # make
> cc -g -O2 -Wall  '-DSHA1_HEADER='   -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
> cache.h:22:18: zlib.h: No such file or directory
> In file included from read-cache.c:6:
> cache.h:169: error: syntax error before '*' token
> read-cache.c: In function `verify_hdr':
> read-cache.c:339: error: `SHA_CTX' undeclared (first use in this
> function)
> read-cache.c:339: error: (Each undeclared identifier is reported only
> once
> read-cache.c:339: error: for each function it appears in.)
> read-cache.c:339: error: syntax error before "c"
> read-cache.c:346: warning: implicit declaration of function `SHA1_Init'
> read-cache.c:346: error: `c' undeclared (first use in this function)
> read-cache.c:347: warning: implicit declaration of function
> `SHA1_Update'
> read-cache.c:348: warning: implicit declaration of function `SHA1_Final'
> read-cache.c: At top level:
> read-cache.c:408: error: syntax error before '*' token
> read-cache.c: In function `ce_write':
> read-cache.c:410: error: `len' undeclared (first use in this function)
> read-cache.c:415: error: `data' undeclared (first use in this function)
> read-cache.c:418: error: `context' undeclared (first use in this
> function)
> read-cache.c:419: error: `fd' undeclared (first use in this function)
> read-cache.c: At top level:
> read-cache.c:430: error: syntax error before '*' token
> read-cache.c: In function `ce_flush':
> read-cache.c:436: error: `context' undeclared (first use in this
> function)
> read-cache.c:442: error: `fd' undeclared (first use in this function)
> read-cache.c: In function `write_cache':
> read-cache.c:449: error: `SHA_CTX' undeclared (first use in this
> function)
> read-cache.c:449: error: syntax error before "c"
> read-cache.c:461: error: `c' undeclared (first use in this function)
> make: *** [read-cache.o] Error 1
> [EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # locate openssl
> /etc/ssl/openssl.cnf
> [long list of python and docs elided]
> /usr/share/man/man1/openssl.1ssl.gz
> /usr/bin/openssl
> /usr/bin/openssl_fips_fingerprint
> /usr/lib/libgnutls-openssl.so.11.1.16
> /usr/lib/libgnutls-openssl.so.11
> /usr/lib/ssl/openssl.cnf
> /usr/local/ssl/man/man1/openssl.1
> /usr/local/ssl/bin/openssl
> /usr/local/ssl/lib/pkgconfig/openssl.pc
> /usr/local/ssl/include/openssl
> /usr/local/ssl/include/openssl/e_os2.h
> /usr/local/ssl/include/openssl/crypto.h
> /usr/local/ssl/include/openssl/tmdiff.h
> /usr/local/ssl/include/openssl/opensslv.h
> /usr/local/ssl/include/openssl/opensslconf.h
> /usr/local/ssl/include/openssl/ebcdic.h
> /usr/local/ssl/include/openssl/symhacks.h
> /usr/local/ssl/include/openssl/ossl_typ.h
> /usr/local/ssl/include/openssl/objects.h
> /usr/local/ssl/include/openssl/obj_mac.h
> /usr/local/ssl/include/openssl/md2.h
> /usr/local/ssl/include/openssl/md4.h
> /usr/local/ssl/include/openssl/md5.h
> /usr/local/ssl/include/openssl/sha.h
> /usr/local/ssl/include/openssl/hmac.h
> /usr/local/ssl/include/openssl/ripemd.h
> /usr/local/ssl/include/openssl/des.h
> /usr/local/ssl/include/openssl/des_old.h
> /usr/local/ssl/include/openssl/aes.h
> /usr/local/ssl/include/openssl/rc2.h
> /usr/local/ssl/include/openssl/rc4.h
> /usr/local/ssl/include/openssl/idea.h
> /usr/local/ssl/include/openssl/blowfish.h
> /usr/local/ssl/include/openssl/cast.h
> /usr/local/ssl/include/openssl/bn.h
> /usr/local/ssl/include/openssl/ec.h
> /usr/local/ssl/include/openssl/rsa.h
> /usr/local/ssl/include/openssl/dsa.h
> /usr/local/ssl/include/openssl/ecdsa.h
> /usr/local/ssl/include/openssl/dh.h
> /usr/local/ssl/include/openssl/ecdh.h
> /usr/local/ssl/include/openssl/dso.h
> /usr/local/ssl/include/openssl/engine.h
> /usr/local/ssl/include/openssl/buffer.h
> /usr/local/ssl/include/openssl/bio.h
> /usr/local/ssl/include/openssl/stack.h
> /usr/local/ssl/include/openssl/safestack.h
> /usr/local/ssl/include/openssl/lhash.h
> /usr/local/ssl/include/openssl/rand.h
> /usr/local/ssl/include/openssl/err.h
> /usr/local/ssl/include/openssl/evp.h
> /usr/local/ssl/include/openssl/asn1.h
> /usr/local/ssl/include/openssl/asn1_mac.h
> /usr/local/ssl/include/openssl/asn1t.h
> /usr/local/ssl/include/openssl/pem.h
> /usr

Compilation troubles

2005-07-12 Thread Dan Kohn
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.

[EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # make
cc -g -O2 -Wall  '-DSHA1_HEADER='   -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
cache.h:22:18: zlib.h: No such file or directory
In file included from read-cache.c:6:
cache.h:169: error: syntax error before '*' token
read-cache.c: In function `verify_hdr':
read-cache.c:339: error: `SHA_CTX' undeclared (first use in this
function)
read-cache.c:339: error: (Each undeclared identifier is reported only
once
read-cache.c:339: error: for each function it appears in.)
read-cache.c:339: error: syntax error before "c"
read-cache.c:346: warning: implicit declaration of function `SHA1_Init'
read-cache.c:346: error: `c' undeclared (first use in this function)
read-cache.c:347: warning: implicit declaration of function
`SHA1_Update'
read-cache.c:348: warning: implicit declaration of function `SHA1_Final'
read-cache.c: At top level:
read-cache.c:408: error: syntax error before '*' token
read-cache.c: In function `ce_write':
read-cache.c:410: error: `len' undeclared (first use in this function)
read-cache.c:415: error: `data' undeclared (first use in this function)
read-cache.c:418: error: `context' undeclared (first use in this
function)
read-cache.c:419: error: `fd' undeclared (first use in this function)
read-cache.c: At top level:
read-cache.c:430: error: syntax error before '*' token
read-cache.c: In function `ce_flush':
read-cache.c:436: error: `context' undeclared (first use in this
function)
read-cache.c:442: error: `fd' undeclared (first use in this function)
read-cache.c: In function `write_cache':
read-cache.c:449: error: `SHA_CTX' undeclared (first use in this
function)
read-cache.c:449: error: syntax error before "c"
read-cache.c:461: error: `c' undeclared (first use in this function)
make: *** [read-cache.o] Error 1
[EMAIL PROTECTED]:/usr/local/src/cogito-0.12.1 # locate openssl
/etc/ssl/openssl.cnf
[long list of python and docs elided]
/usr/share/man/man1/openssl.1ssl.gz
/usr/bin/openssl
/usr/bin/openssl_fips_fingerprint
/usr/lib/libgnutls-openssl.so.11.1.16
/usr/lib/libgnutls-openssl.so.11
/usr/lib/ssl/openssl.cnf
/usr/local/ssl/man/man1/openssl.1
/usr/local/ssl/bin/openssl
/usr/local/ssl/lib/pkgconfig/openssl.pc
/usr/local/ssl/include/openssl
/usr/local/ssl/include/openssl/e_os2.h
/usr/local/ssl/include/openssl/crypto.h
/usr/local/ssl/include/openssl/tmdiff.h
/usr/local/ssl/include/openssl/opensslv.h
/usr/local/ssl/include/openssl/opensslconf.h
/usr/local/ssl/include/openssl/ebcdic.h
/usr/local/ssl/include/openssl/symhacks.h
/usr/local/ssl/include/openssl/ossl_typ.h
/usr/local/ssl/include/openssl/objects.h
/usr/local/ssl/include/openssl/obj_mac.h
/usr/local/ssl/include/openssl/md2.h
/usr/local/ssl/include/openssl/md4.h
/usr/local/ssl/include/openssl/md5.h
/usr/local/ssl/include/openssl/sha.h
/usr/local/ssl/include/openssl/hmac.h
/usr/local/ssl/include/openssl/ripemd.h
/usr/local/ssl/include/openssl/des.h
/usr/local/ssl/include/openssl/des_old.h
/usr/local/ssl/include/openssl/aes.h
/usr/local/ssl/include/openssl/rc2.h
/usr/local/ssl/include/openssl/rc4.h
/usr/local/ssl/include/openssl/idea.h
/usr/local/ssl/include/openssl/blowfish.h
/usr/local/ssl/include/openssl/cast.h
/usr/local/ssl/include/openssl/bn.h
/usr/local/ssl/include/openssl/ec.h
/usr/local/ssl/include/openssl/rsa.h
/usr/local/ssl/include/openssl/dsa.h
/usr/local/ssl/include/openssl/ecdsa.h
/usr/local/ssl/include/openssl/dh.h
/usr/local/ssl/include/openssl/ecdh.h
/usr/local/ssl/include/openssl/dso.h
/usr/local/ssl/include/openssl/engine.h
/usr/local/ssl/include/openssl/buffer.h
/usr/local/ssl/include/openssl/bio.h
/usr/local/ssl/include/openssl/stack.h
/usr/local/ssl/include/openssl/safestack.h
/usr/local/ssl/include/openssl/lhash.h
/usr/local/ssl/include/openssl/rand.h
/usr/local/ssl/include/openssl/err.h
/usr/local/ssl/include/openssl/evp.h
/usr/local/ssl/include/openssl/asn1.h
/usr/local/ssl/include/openssl/asn1_mac.h
/usr/local/ssl/include/openssl/asn1t.h
/usr/local/ssl/include/openssl/pem.h
/usr/local/ssl/include/openssl/pem2.h
/usr/local/ssl/include/openssl/x509.h
/usr/local/ssl/include/openssl/x509_vfy.h
/usr/local/ssl/include/openssl/x509v3.h
/usr/local/ssl/include/openssl/conf.h
/usr/local/ssl/include/openssl/conf_api.h
/usr/local/ssl/include/openssl/txt_db.h
/usr/local/ssl/include/openssl/pkcs7.h
/usr/local/ssl/include/openssl/pkcs12.h
/usr/local/ssl/include/opens