[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 installIt 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 installIf 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 installI'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 installI 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 installThe 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 installIt 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.

I like it more when strippers cut your hair.
More stripper haircut stories, less geeky stuff.
Instead of cp'ing malloc.h, I think CFLAGS="$CFLAGS -I/usr/include/malloc" ./configure --whatever is better.
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?
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.
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
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 : )
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
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
They also work with Gaim 1.1.0 :-D
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
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.
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.