[yt-dev] Issue #586: YT Dynamic Linking Error on SUSE (yt_analysis/yt)

john_regan issues-reply at bitbucket.org
Thu Jun 6 03:04:21 PDT 2013


New issue 586: YT Dynamic Linking Error on SUSE
https://bitbucket.org/yt_analysis/yt/issue/586/yt-dynamic-linking-error-on-suse

john_regan:

YT fails to link against it's own local copy of the libpng16.so.16 library successfully at runtime. 
The initial error is 
ImportError: libpng16.so.16: cannot open shared object file: No such file or directory
Adding the YT path to LD_LIBRARY_PATH fixes this error but shows another error subsequently
Instead YT links against the system png library causing a runtime error. 
ImportError: .../yt-x86_64/lib/python2.7/site-packages/matplotlib/_png.so: undefined symbol: png_set_longjmp_fn
This is because of a dynamic linking error. ldd shows that _png.so is dynamically linking again the system png library
 libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007fffbfb56000)

Setting LD_PRELOAD to point to YT's copy of the libpng.so.16.so fixes the issue. 
A fix in the install script for SUSE may be needed to avoid this workaround. 





More information about the yt-dev mailing list