Blake Smith

create. code. learn.

»

compiling tinyfugue on snow leopard

I recently upgraded my mac mini to Snow Leopard. The TinyFugue website says that it should compile right out of the box with the OS X dev tools installed, but this doesn’t seem to work on snow leopard. When I tried to compile it right out of the box, I get the following error after running make:

malloc.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'malloc_base'

So I took a look at line 15 of malloc.c:

caddr_t mmalloc_base = NULL;

Doing some googling, it seems that caddr_t is an obscure type that can also refer to a void pointer. To fix this so that tf will compile cleanly, download the following patch.

snowleopard.patch

After untarring the tf tarball, put the patch into the tf directory and apply it with the following:

  $ patch -p0 < snowleopard.patch

That should apply the fix to malloc.c. You can then run configure, make and install:

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

That should do it! Happy MUDing!


about the author

Blake Smith is a Principal Software Engineer at Sprout Social.