Sorry this is a very late reply, however it still is an issue with fink/Mac OS X so I figured I'd post the workaround for future use.

Fink (as of 10/28/2008) doesn't patch glib2 to get around a change in new GCC and Leopard, which causes duplicate symbols (such as _g_bit_nth_lsf) when compiling certain things. To get around this, apply the MacPorts patch (http://trac.macports.org/attachment/ticket/13006/glib2-inline.patch). I found the easiest way to do this is to just edit the glib.h after it is installed (/sw/include/glib-2.0/glib/glib.h) and add the two lines at line 99:

#elif defined (__APPLE__) && !defined(GLIB_COMPILATION) && !defined(GOBJECT_COMPILATION)
#  define G_INLINE_FUNC inline



On Sun, Mar 23, 2008 at 1:49 PM, Dave Zoltok <d.zoltok@sussex.ac.uk> wrote:
Hi!

I've been trying to get Stage 2.0.4 installed under OSX 10.5.2 so I
can use the tutorial worlds in Pyrobot, and I'm having some weird
errors.

First, installing packages through Fink doesn't automatically work; I
had to specify GTK_LIBS in the environment to allow the configure
script to find them. Second, when I try running make, I get the
following error (cropped for space):

g++ -dynamiclib -single_module ${wl}-flat_namespace ${wl}-undefined $
{wl}suppress -o .libs/libstage.2.0.4.dylib  .libs/gnome.o .libs/
gui.o .libs/gui_prefs.o .libs/gui_menus.o .libs/matrix.o .libs/
model.o .libs/model_blobfinder.o .libs/model_bumper.o .libs/
model_laser.o .libs/model_load.o .libs/model_position.o .libs/
model_fiducial.o .libs/model_ranger.o .libs/model_gripper.o .libs/
model_ptz.o .libs/model_wifi.o .libs/model_speech.o .libs/
raytrace.o .libs/stage.o .libs/stagecpp.o .libs/typetable.o .libs/
world.o .libs/worldfile.o .libs/rtk.o .libs/rtk_canvas.o .libs/
rtk_fig.o .libs/rtk_region.o   -install_name  /usr/local/lib/libstage.
2.dylib -Wl,-compatibility_version -Wl,3 -Wl,-current_version -Wl,3.4
ld: duplicate symbol _g_bit_nth_lsf in .libs/gui_prefs.o and .libs/gui.o

collect2: ld returned 1 exit status
make[3]: *** [libstage.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Someone posted that they couldn't replicate the error by installing
dependencies through MacPorts, which I've tried. But if I try to
install gtk2, it hangs on the activation and never finishes.

Has anyone found a solution to this?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users