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.
July 10
Wedding Bands: Ordered
July 5
Happy Fourth!
June 30
Weird
Oh man
June 29
Best FD QSO so far...
June 20
Pre Cana Tomorrow
June 14
Etching my own PCB
June 13
I've always liked Adam Sessler
June 3
Soldering On
June 1
Berries and Cream

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.
gnutls on OS X
[prev] Tue, 25 Nov 2003 07:34:47 -0500 [next] [computing] - [comment]

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.

by: Rob
on: Tue, 25 Nov 2003 08:19:05 -0500
at: *.nycap.rr.com
re: huh

I like it more when strippers cut your hair.
by: Mike
on: Tue, 25 Nov 2003 08:50:54 -0500
at: *.nycap.rr.com
re: Okay, I promise.

More stripper haircut stories, less geeky stuff.
by: Anonymous
on: Tue, 25 Nov 2003 20:17:51 -0500
at: *.Reshall.Berkeley.EDU
re: No Subject

Instead of cp'ing malloc.h, I think CFLAGS="$CFLAGS -I/usr/include/malloc" ./configure --whatever is better.

by: Danny Schaffer
on: Wed, 21 Jan 2004 15:10:57 -0500
at: *.danbry01.ct.comcast.net
re: 10.2.8

I can't get libgcrypt 1.1.90 or 1.1.91 to compile...same w/ 1.1.44 they seem to have this strange error...42 works.....(weird) . Any tips?
by: Mike
on: Wed, 21 Jan 2004 15:19:38 -0500
at: *.nycap.rr.com
re: Hmm..

I don't have any experience installing it on Jaguar. Maybe if you post the error messages you're getting, I (or someone else) could give you a push in the right direction.
by: Mike
on: Thu, 05 Feb 2004 05:59:47 -0500
at: *.nycap.rr.com
re: gnutls on Jaguar

My understanding is that there's a lot of undefined 'stuff' in Jaguar that gets fixed in Panther. It seems like the devs of adium might be working on that. But right now, my best advice is to shell out the $130 or so bucks and upgrade -- or use iChat, I guess. :-D
by: Mike
on: Thu, 05 Feb 2004 06:46:23 -0500
at: *.nycap.rr.com
re: But wait, there's more.

09:37 <mstyne> 0.75 patched compiles under OS X 10.3.2, for those of you that care about such things
09:37 <deryni> mstyne: what versions of the auto* tools?
09:37 * mstyne goes to look
09:38 <deryni> and what version of libtool
09:39 <mstyne> autoconf 2.57, automake 1.6.3, libtool 1.3.5
09:39 <deryni> and gettext?
09:40 <mstyne> 10.40
09:40 <mstyne> well, 0.10.40
09:40 <deryni> ok, thanks, I've been having trouble building here, we'll see if that helps or not
09:40 <mstyne> and i haven't changed my setup for gnutls from 0.74, and that worked too.
09:41 <mstyne> granted, i don't use MSN, but it was an excercise in self-abuse : )

by: mike
on: Fri, 04 Jun 2004 07:04:58 -0400
at: *.voxel.net
re: You gotta have ... fink.

Jason Gutierrez wrote:

> I'm not having any luck with installing GAIM. Did you actually get GTK+ to compile on OSX and were you able to get GAIM installed under 10.3?


Jason,

I am currently running Gaim 0.78 on the latest version of panther (10.3.4). As I mentioned here:

http://www.alphamonkey.org/view/notes/309.php

[...]
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.
[...]

The list I refer to is provided here:

http://www.alphamonkey.org/finkpackages.txt

So you'll be using the version of GTK2+ that's provided by fink, which, I believe is 2.2.4. When you install fink, (which is fairly easy) it will install all the dependencies you'll need (i.e. glib, atk, pango, etc.).For more information on fink, visit:

http://fink.sf.net

by: Mike
on: Wed, 08 Sep 2004 11:47:42 -0400
at: *.ubr0.dc1-alb.inoc.net
re: Just a little update...

I had to do this again on my new G5 at work, and apparently these newer versions also work with these instructions:

libgpg-error-0.7
libgcrypt-1.1.94
opencdk-0.5.5
gnutls-1.0.20

by: Mike
on: Thu, 09 Dec 2004 11:26:57 -0500
at: *.ubr0.dc1-alb.inoc.net
re: And some more...

They also work with Gaim 1.1.0 :-D
by: Anonymous
on: Wed, 14 Sep 2005 16:10:35 -0400
at: *.adslplus.ch
re: Easier

For all those, which like it REALLY EASY
get the fink package (have to install it similar to the description above) and the install it with fink (it checks and installs all dependencies)
With fink its also alot easier to install all sorts of other fun stuff

by: Anonymous
on: Tue, 22 Nov 2005 03:40:33 -0500
at: *.nyc1.dsl.speakeasy.net
re: Fink Gaim is old

As of late November 2005, the current version of Gaim is 1.5.0, while Fink ships Gaim 1.1.4, even on the unstable branch.

Note that Gaim 1.5.0 includes some pretty major security fixes.

by: Mike
on: Tue, 22 Nov 2005 09:21:21 -0500
at: *.nycap.res.rr.com
re: What a Fink

It seems to me like fink is dying (dead?).

Truth be told I haven't tried my instructions with the latest version of Gaim, but I'd like to think they still work.


21:20:50 <@mstyne> A WINNAR IS ME
21:32:34 <@dilinger> YAY!~
21:32:35 <@dilinger> WINNAR!
21:33:06 <@dilinger> alright, i'm done sharing
21:34:15 <@mstyne> that's okay dude
21:34:26 <@mstyne> when $INTERNAL_PROJECT's done i'll take a dump on your chest

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