| Summary: | dev-lang/R undesired LD_LIBRARY_PATH | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Benda Xu <heroxbd> |
| Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** This bug has been marked as a duplicate of bug 351910 *** |
R has a design flaw using /usr/bin/R as a shell wrapper hardcoding LD_LIBRARY_PATH envs. People has already pointed it out[1], but upstream insists on such a non-standard solution. This dirty ad-hoc implementation may cause problems if undesired libraries on LD_LIBRARY_PATH (silently) get loaded in front of gentoo standard ones. One such senario is in Gentoo Prefix. We want to use libraries in ${PREFIX}/usr/lib, but R sets /usr/local/lib:/usr/X11R6/lib to LD_LIBRARY_PATH causing errors on the old (host) systems. 1. https://stat.ethz.ch/pipermail/r-devel/2005-February/032267.html Reproducible: Always Steps to Reproduce: 1. touch /usr/local/lib/libXrender.so 2. R 3. in R env type "X11()" Actual Results: Error in X11() : X11 module cannot be loaded In addition: Warning message: In X11() : unable to load shared library '/usr/lib/R/modules//R_X11.so': /usr/lib/libcairo.so.2: undefined symbol: XRenderCreateLinearGradient Expected Results: X11() loads successfully. in the example libcairo.so looks for libXrender.so for symbol XRenderCreateLinearGradient.