[EMAIL PROTECTED] wrote:

has anyone been able to get PyGTK  1.99 to work on OS X?  I have tried to
compile it from source and I get this error:

make all-recursive
Making all in codegen
make[2]: Nothing to be done for `all'.
Making all in gtk
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -std=c9x -o
_gtkmodule.la -rpath /usr/local/lib/python2.2/site-packages/gtk-2.0/gtk
-module -avoid-version -export-symbols-regex init_gtk
_gtkmodule_la-gtkmodule.lo _gtkmodule_la-gtkobject-support.lo
_gtkmodule_la-gtk-types.lo _gtkmodule_la-pygtktreemodel.lo
_gtkmodule_la-pygtkcellrenderer.lo _gtkmodule_la-gtk.lo
_gtkmodule_la-gdk.lo -L/sw/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -liconv
rm -fr .libs/_gtkmodule.la .libs/_gtkmodule.* .libs/_gtkmodule.*
generating symbol list for `_gtkmodule.la'
/usr/bin/nm -p _gtkmodule_la-gtkmodule.lo
_gtkmodule_la-gtkobject-support.lo _gtkmodule_la-gtk-types.lo
_gtkmodule_la-pygtktreemodel.lo _gtkmodule_la-pygtkcellrenderer.lo
_gtkmodule_la-gtk.lo _gtkmodule_la-gdk.lo | sed -n -e 's/^.*[
]\([BCDEGRST][BCDEGRST]*\)[ ][
]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort |
uniq > .libs/_gtkmodule.exp
egrep -e "init_gtk" ".libs/_gtkmodule.exp" > ".libs/_gtkmodule.expT"
mv -f ".libs/_gtkmodule.expT" ".libs/_gtkmodule.exp"
gcc -r -keep_private_externs -nostdlib -o .libs/_gtkmodule.so-master.o
_gtkmodule_la-gtkmodule.lo _gtkmodule_la-gtkobject-support.lo
_gtkmodule_la-gtk-types.lo _gtkmodule_la-pygtktreemodel.lo
_gtkmodule_la-pygtkcellrenderer.lo _gtkmodule_la-gtk.lo
_gtkmodule_la-gdk.lo && gcc -bundle -flat_namespace -undefined suppress -o
...libs/_gtkmodule.so .libs/_gtkmodule.so-master.o -L/sw/lib -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lc
ld: multiple definitions of symbol __PyGObject_API
_gtkmodule_la-gtkmodule.lo definition of __PyGObject_API in section
(__DATA,__common)
_gtkmodule_la-pygtktreemodel.lo definition of __PyGObject_API in section
(__DATA,__common)
_gtkmodule_la-pygtkcellrenderer.lo definition of __PyGObject_API in
section (__DATA,__common)
make[2]: *** [_gtkmodule.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I think I have fixed this problem in CVS now. It would be helpful if you could test this on your machine and report back on whether it fixes the problem for you. Try editing the gtk/pygtktreemodel.c and gtk/pygtkcellrenderer.c files, and remove the line `#include "pygobject.h"' in each file. After the change, pygtk should compile and link correctly.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to