Alphamonkey
this is alphamonkey dot org.
main.
where's mike.
photo gallery.
media library.
arkiv archive.
google calendar.
mobile photos.



My status-->
search for stuff.

Search:


older stuff.
September 16
Small Town
September 12
At last!
September 9
What
September 7
Not so inviting...
September 4
So, how many pints is that?
September 2
Ruh roh
September 1
Tuxedo fittings
Invitation Assembly
August 15
You gotta pay to play
July 27
Wish I Was There

useful stuff.
gnutls on OS X - This is a step by step guide outlining the procedure for getting gnutls up and running under Mac OS X.
serial port internet - If you've got an old computer with no expansion slots or ethernet port, this is one way to give it a connection to the 'net.
Add a comment to 'gnutls on OS X'.

name:    

subject: 


2 times 2 =
<i>, <b>, <u>, and <a> tags are available, against my better judgement.
 


Tue, 25 Nov 2003 07:34:47 -0500

Disclaimer: This is horribly boring, and probably interests .003% of the population.

Tip: Information for other operating systems can be found at http://gaim.sourceforge.net/gaim-ssl.txt

Since gaim now uses gnutls (or mozilla-nss, depending on who you talk to) to connect to MSN, and since I consider myself a pseudo-documentor of gaim, I thought I should see if I could get it up and running on OS X, specifically, Panther (10.3.1).

Since I managed to get gnutls up and running with a little bit of a struggle, I thought I would document how I did it, to make life easier for the next poor bastard who might have to do the same thing.

First, we're going to assume that you have fink up and running on your system. Installing fink is beyond the scope of this document, but it's fairly simple. Here is a list of packages that I had previously installed with fink. Will you need them all? Definitely not. However, you may need some of them. If you run into trouble, check with that list.

First, you'll need to get the software. As of this writing, (11/25/2003) I used all the current versions of each piece of software.

libgpg-error (needed by libgcrypt):
ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/libgpg-error-0.6.tar.gz

libgcrypt (needed by gnutls):
ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/libgcrypt-1.1.90.tar.gz

opencdk (needed by gnutls):
ftp://ftp.gnutls.org/pub/gnutls/opencdk/opencdk-0.5.3.tar.gz

gnutls (needed by gaim):
ftp://ftp.gnutls.org/pub/gnutls/gnutls-0.9.91.tar.gz

libgpg-error installed right out of the box. I simply did:

$ ./configure --prefix=/sw
$ make
$ sudo make install

It installed just fine. You'll notice I have the software install into /sw, where fink puts all of its stuff. I figured this was better than having it lie around in Panther's filesystem.

libgcrypt required a configure script switch which I discovered on the gcrypt-devel mailing list. If you're having problems, there's more discussion there.

$ ./configure --disable-asm --prefix=/sw
$ make
$ sudo make install

If you forget to add that --disable-asm, you'll have a problem during make install, if I recall correctly.

opencdk was the only real kludge job. For some reason it couldn't find malloc.h, so I had to sort of help it along.

$ sudo cp /usr/include/malloc/malloc.h /sw/include/
$ ./configure --prefix=/sw
$ make
$ sudo make install

I'm not sure why I had to move malloc.h, but once I did, it compiled. There seemed to still be some errors during compilation, but nothing that kept it from working. Or, as Anonymous notes below, you may want to try the following:

$ CFLAGS="$CFLAGS -I/usr/include/malloc" ./configure --prefix=/sw
$ make
$ sudo make install

I haven't tested that, but it's certainly less sloppy than actually copying the file. Next, onto gnutls itself. Once everything else was installed, it compiled just fine out of the box.

$ ./configure --prefix=/sw
$ make
$ sudo make install

The only "errors" that you're likely to notice during gnutls' configure sequence are the following:

checking for asn1_read_tag in -ltasn1... no
configure: WARNING:
***
*** LibtASN1 0.2.x was not found. Will use the included one.
checking whether to use the included minitasn1... yes
checking whether to include zlib compression support... yes
checking for compress in -lz... yes
checking whether to use the included lzo compression library... no
checking for lzo1x_1_compress in -llzo... no
configure: WARNING: ***
*** Liblzo was not found. Will use the included minilzo.

I didn't bother installing these two extenal libraries, and you shouldn't have to either. But according to some reports, you definitely need opencdk, so don't skip out on that!

gaim needed a little bit of coaxing to find the gnutls libraries. This step presumes you haven't had any problems compiling gaim already. Again, setting up X11, the X11 SDK, and just plain getting gaim to work on OS X are outside the scope of this document. Here's what I did to make it work:

$ CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" ./configure --prefix="/sw" --with-gnutls-libs=/sw/lib
$ make
$ sudo make install


It might seem a bit excessive, (and maybe redundant) -- but it worked. Since I don't really -have- any MSN buddies, I haven't been able to test it out just yet, but I've been assured that connecting to MSN is proof enough.

If you have any questions, feel free to email me at mike at alphamonkey.org, or instant message me at mikestyne (AIM) or mike at alphamonkey.org (MSN). I also usually hang out at Freenode, on #gaim. There, I'm mstyne.

17:22 nopzor_ you hungry?
17:24 mstyne heh -- I was motivated by andres to go grab some cereal
17:24 mstyne so i'm set now, i guess
17:24 nopzor_ ahh
17:24 nopzor_ i was going to offer to buy you dinner/lunch at the GC
17:24 nopzor_ but if cereal suffices
17:24 nopzor_ then so be it!
17:24 nopzor_ fucker

(CC) 1996 - 2008 alphamonkey dot org // done in 0.046 - powered by monkey allen v0.2