comparison plugin/FeatureExtractionPluginFactory.cpp @ 435:824a87450f81

* Revert to RTLD_LOCAL (we think problem is better fixed in Vampy)
author Chris Cannam
date Mon, 07 Jul 2008 17:17:49 +0000
parents 9e1e12d1fbc3
children a70dcfed59c1
comparison
equal deleted inserted replaced
434:5a13b76cd034 435:824a87450f81
131 131
132 #ifdef DEBUG_PLUGIN_SCAN_AND_INSTANTIATE 132 #ifdef DEBUG_PLUGIN_SCAN_AND_INSTANTIATE
133 std::cerr << "FeatureExtractionPluginFactory::getPluginIdentifiers: trying potential library " << soname.toStdString() << std::endl; 133 std::cerr << "FeatureExtractionPluginFactory::getPluginIdentifiers: trying potential library " << soname.toStdString() << std::endl;
134 #endif 134 #endif
135 135
136 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_GLOBAL); 136 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_LOCAL);
137 137
138 if (!libraryHandle) { 138 if (!libraryHandle) {
139 std::cerr << "WARNING: FeatureExtractionPluginFactory::getPluginIdentifiers: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl; 139 std::cerr << "WARNING: FeatureExtractionPluginFactory::getPluginIdentifiers: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl;
140 continue; 140 continue;
141 } 141 }
329 329
330 } 330 }
331 331
332 soname = found; 332 soname = found;
333 333
334 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_GLOBAL); 334 void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_LOCAL);
335 335
336 if (!libraryHandle) { 336 if (!libraryHandle) {
337 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl; 337 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl;
338 return 0; 338 return 0;
339 } 339 }