From: ahoward Date: 2002-11-13T04:10:24+09:00 Subject: Re: setting LD_LIBRARY_PATH doesn't seem to work? and from the dlopen man page : .... NOTES If other objects were link-edited with pathname when path- name was built, that is, the pathname has dependencies on other objects, those objects will automatically be loaded by dlopen(). The directory search path used to find both path- name and the other needed objects may be affected by setting the environment variable LD_LIBRARY_PATH, which is analyzed once at process startup, and from a runpath setting within the object from which the call to dlopen() originated. These search rules will only be applied to path names that do not contain an embedded '/'. Objects whose names resolve to the same absolute or relative path name may be opened any number of times using dlopen(); however, the object refer- enced will only be loaded once into the address space of the current process. .... dlopen is the culprit. moral : do not use LD_LIBRARY_PATH, use runpath encoding. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================