17 Jul 21:55
building pyobject-2.15.1 on MacOsX 10.5.4
From: renaud blanch <rndblnch <at> gmail.com>
Subject: building pyobject-2.15.1 on MacOsX 10.5.4
Newsgroups: gmane.comp.gnome.gtk+.python
Date: 2008-07-17 19:55:25 GMT
Subject: building pyobject-2.15.1 on MacOsX 10.5.4
Newsgroups: gmane.comp.gnome.gtk+.python
Date: 2008-07-17 19:55:25 GMT
Hi list,
while building pyobject (2.15.1) on the mac, the link fails with the following stage :
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/_gio.so -bundle .libs/_gio_la-giomodule.o .libs/_gio_la-pygio-utils.o .libs/_gio_la-gio.o -L/usr/local/lib /usr/local/lib/libgio-2.0.dylib /usr/lib/libiconv.dylib /usr/lib/libc.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib
ld: duplicate symbol __PyGObject_API in .libs/_gio_la-pygio-utils.o and .libs/_gio_la-giomodule.o
first (minor) problem :
the variable ${wl} is not substituted in the comman.
this looks like a libtool issue, and does not seam to make the build fail.
second problem :
the duplicate __PyGObject_API symbol found at link time.
adding the line
#define NO_IMPORT_PYGOBJECT
before the
#include "pygobject.h"
in gio/pygio-utils.h
solved the compilation problem BUT then "make check" report another problem :
Making check in tests
make check-local
testhelper could not be imported: could not import gobject (error was: 'dlopen(../gobject/.libs/_gobject.so, 2): Symbol not found: _PyGBoxed_Type\n Referenced from: /Users/Shared/src/pygobject-2.15.1/gobject/.libs/_gobject.so\n Expected in: flat namespace\n')
make[2]: *** [check-local] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
any hints ?
thanks,
renaud
while building pyobject (2.15.1) on the mac, the link fails with the following stage :
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/_gio.so -bundle .libs/_gio_la-giomodule.o .libs/_gio_la-pygio-utils.o .libs/_gio_la-gio.o -L/usr/local/lib /usr/local/lib/libgio-2.0.dylib /usr/lib/libiconv.dylib /usr/lib/libc.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib
ld: duplicate symbol __PyGObject_API in .libs/_gio_la-pygio-utils.o and .libs/_gio_la-giomodule.o
first (minor) problem :
the variable ${wl} is not substituted in the comman.
this looks like a libtool issue, and does not seam to make the build fail.
second problem :
the duplicate __PyGObject_API symbol found at link time.
adding the line
#define NO_IMPORT_PYGOBJECT
before the
#include "pygobject.h"
in gio/pygio-utils.h
solved the compilation problem BUT then "make check" report another problem :
Making check in tests
make check-local
testhelper could not be imported: could not import gobject (error was: 'dlopen(../gobject/.libs/_gobject.so, 2): Symbol not found: _PyGBoxed_Type\n Referenced from: /Users/Shared/src/pygobject-2.15.1/gobject/.libs/_gobject.so\n Expected in: flat namespace\n')
make[2]: *** [check-local] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
any hints ?
thanks,
renaud
_______________________________________________ pygtk mailing list pygtk <at> daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
RSS Feed