Toby White wrote: > On Leopard, having installed python, cairo & pycairo all through fink > (latest versions as of today), pycairo fails to work in the following > way: > > > Python 2.5.4 (r254:67916, Apr 17 2009, 15:08:56) > [GCC 4.0.1 (Apple Inc. build 5484)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import cairo > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/sw/lib/python2.5/site-packages/cairo/__init__.py", line 1, > in <module> > from _cairo import * > ImportError: dlopen(/sw/lib/python2.5/site-packages/cairo/_cairo.so, > 2): Symbol not found: _iconv > Referenced from: /usr/X11/lib/libfontconfig.1.dylib > Expected in: /sw/lib/libiconv.2.dylib > > > I've tried rebuilding both cairo and pycairo manually, but to no > effect. Neither of them seem to involve libiconv directly. > > Presumably the problem is that something somewhere is using the wrong > version of libiconv. > > Any ideas? > > Toby > > >
First check the libiconv library: $ nm /sw/lib/libiconv.2.dylib | grep iconv /sw/lib/libiconv.2.dylib(single module): 000f8020 D __libiconv_version 000169c0 t _iconv 000187c0 T _iconv_canonicalize 000169d0 t _iconv_close 000187b0 t _iconv_open 00016560 T _libiconv 000165c0 T _libiconv_close 00017f90 T _libiconv_open 00019040 t _libiconv_relocate 00018f50 T _libiconv_set_relocation_prefix 000165e0 T _libiconvctl 00016820 T _libiconvlist If what you get looks different, e.g. missing the _iconv symbol, then try rebuilding libiconv. If you get output similar to the above, try running printenv DYLD_LIBRARY_PATH and see if that returns something. Otherwise check around on your system for other libiconv.2.dylib instances. /usr/lib/libiconv.2.dylib should be OK, but anything else might be suspicious. My suspicion is that you're correct and are indeed seeing a libiconv from somewhere else. Unfortunately, the dynamic loader blames the library that was referenced in the file, even if it actually tried to _use_ something else. -- Alexander Hansen Fink User Liaison ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
