On 04 Jan 2008, at 10:21, Dominique Dhumieres wrote:

> /bin/sh ../../../libtool --tag=CC --mode=link gcc  -Os -fstrict- 
> aliasing -Wno-long-double  -L/sw/lib/python2.5/config -Wl,-x,- 
> dead_strip -o cplplotcanvasmodule.la -rpath /sw/lib/python2.5/site- 
> packages -Wl,-m -rpath /sw/lib/python2.5/site-packages -module - 
> avoid-version  ../../../src/libplplotd.la ../../../bindings/gnome2/ 
> lib/libplplotgnome2d.la  -Wl,-framework,CoreServices,- 
> framework,ApplicationServices -L/sw/lib -L/usr/X11/lib - 
> lgnomeprintui-2-2 -lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 - 
> lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXinerama -lXext - 
> lXfixes -lXcursor -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft - 
> lXrender -lpangox-1.0 -lX11 -lpangoft2-1.0 -lfontconfig -lfreetype - 
> lz -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl - 
> liconv   -L/sw/lib -lgobject-2.0 -lglib-2.0 -lintl -liconv    
> cplplotcanvasmodule_la-cplplotcanvas.lo cplplotcanvasmodule_la- 
> cplplotcanvasmodule.lo  -lm
> gcc ${wl}-undefined ${wl}dynamic_lookup -o .libs/ 
> cplplotcanvasmodule.so -bundle  .libs/cplplotcanvasmodule_la- 
> cplplotcanvas.o .libs/cplplotcanvasmodule_la-cplplotcanvasmodule.o   
> -L/sw/lib/python2.5/config ../../../src/.libs/libplplotd.dylib -L/ 
> sw/lib/freetype219/lib /sw/lib/freetype219/lib/libfreetype.dylib -L/ 
> sw/lib /sw/src/fink.build/plplot-5.8.0-1001/plplot-5.8.0/lib/ 
> csa/.libs/libcsirocsa.dylib /sw/src/fink.build/plplot-5.8.0-1001/ 
> plplot-5.8.0/lib/nn/.libs/libcsironn.dylib /usr/lib/libltdl. 
> 3.1.4.dylib /usr/lib/libdl.dylib /usr/lib/libm.dylib ../../../ 
> bindings/gnome2/lib/.libs/libplplotgnome2d.dylib /sw/src/fink.build/ 
> plplot-5.8.0-1001/plplot-5.8.0/src/.libs/libplplotd.dylib -L/usr/ 
> X11/lib -L/usr/X11R6/lib /usr/lib/libpthread.dylib /usr/X11/lib/ 
> libXau.6.0.0.dylib /usr/X11/lib/libXdmcp.6.0.0.dylib /usr/lib/ 
> libexpat.dylib /usr/lib/libz.dylib /usr/lib/libc.dylib /sw/lib/ 
> libgnomeprintui-2-2.dylib /sw/lib/libgnomeprint-2-2.dylib /sw/lib/ 
> libgnomecanvas-2.dylib /sw/lib/libxml2.dyl
>  ib /sw/lib/libart_lgpl_2.dylib /sw/lib/libgtk-x11-2.0.dylib /sw/ 
> lib/libgdk-x11-2.0.dylib /usr/X11/lib/libXrandr.2.0.0.dylib /usr/ 
> X11/lib/libXinerama.1.0.0.dylib /usr/X11/lib/libXext.6.4.0.dylib / 
> usr/X11/lib/libXfixes.3.1.0.dylib /usr/X11/lib/libXcursor. 
> 1.0.2.dylib /sw/lib/libatk-1.0.dylib /sw/lib/ 
> libgdk_pixbuf-2.0.dylib /sw/lib/libpangoxft-1.0.dylib /usr/X11/lib/ 
> libXft.2.1.2.dylib /usr/X11/lib/libXrender.1.3.0.dylib /sw/lib/ 
> libpangox-1.0.dylib /usr/X11/lib/libX11.6.2.0.dylib /sw/lib/ 
> libpangoft2-1.0.dylib /usr/X11/lib/libfontconfig.dylib /usr/X11/lib/ 
> libfreetype.dylib -lz /sw/lib/libpango-1.0.dylib /sw/lib/ 
> libgmodule-2.0.dylib /sw/lib/libgobject-2.0.dylib /sw/lib/ 
> libglib-2.0.dylib /sw/lib/libintl.dylib /sw/lib/libiconv.dylib -lm - 
> Wl,-x -Wl,-dead_strip -Wl,-m -Wl,-framework -Wl,CoreServices -Wl,- 
> framework -Wl,ApplicationServices
> ld64: warning: option -m is obsolete and being ignored
> ld: duplicate symbol __PyGObject_API in .libs/ 
> cplplotcanvasmodule_la-cplplotcanvasmodule.o and .libs/ 
> cplplotcanvasmodule_la-cplplotcanvas.o
>

Dominique,

I'm a bit puzzled by 2 things here :
1) Your flags are "-Wl,-framework,CoreServices,- 
framework,ApplicationServices" are not there in my
libtool command _ and I don't see what pkg they might come from..
Since it easier to trace the origin of something than of nothing _  
could you try to look where this comes from ?
(it seems as if being the first item of GCW_LIBS, which configure  
sets to $PKG_CONFIG --libs "libgnomeui-2.0"  (or  
libgnomeprintui-2.0)... I don't see how it could get there ..

2) when I compile w/o the -m flag, I get the same error for another  
symbol too :

> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: multiple definitions  
> of symbol __PyGObject_API
> .libs/gcwmodule_la-gcw.o definition of __PyGObject_API in section  
> (__DATA,__common)
> .libs/gcwmodule_la-gcwmodule.o definition of __PyGObject_API in  
> section (__DATA,__common)
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: multiple definitions  
> of symbol _gcwapi
> .libs/gcwmodule_la-gcw.o definition of _gcwapi in section  
> (__DATA,__common)
> .libs/gcwmodule_la-gcwmodule.o definition of _gcwapi in section  
> (__DATA,__common)
> collect2: ld returned 1 exit status

(would be the same for cplplotcanvasmodule, with "plplotcanvasapi"  
insted of "gcwapi" )
Possibly it is just a difference between the ld's, that yours reports  
only the first such error _
but to be sure, could you please run, in bindings/gnome2/python, the  
command :
nm -mo .libs/*.o|fgrep common
?

Thanks !

Jean-Francois
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to