Revision: 41193
http://brlcad.svn.sourceforge.net/brlcad/?rev=41193&view=rev
Author: erikgreenwald
Date: 2010-10-29 21:19:33 +0000 (Fri, 29 Oct 2010)
Log Message:
-----------
Linux requires either RTLD_LAZY or RTLD_NOW. Use dlerror() in error reporting.
Modified Paths:
--------------
brlcad/trunk/src/adrt/librender/camera.c
Modified: brlcad/trunk/src/adrt/librender/camera.c
===================================================================
--- brlcad/trunk/src/adrt/librender/camera.c 2010-10-29 20:58:09 UTC (rev
41192)
+++ brlcad/trunk/src/adrt/librender/camera.c 2010-10-29 21:19:33 UTC (rev
41193)
@@ -619,9 +619,9 @@
char *name;
struct render_shader_s *s;
+ lh = dlopen(filename, RTLD_LOCAL|RTLD_LAZY);
- lh = dlopen(filename, RTLD_LOCAL);
- if(lh == NULL) { bu_log("Faulty plugin %s: file not found\n", filename);
perror(""); return NULL; }
+ if(lh == NULL) { bu_log("Faulty plugin %s: %s\n", filename, dlerror());
return NULL; }
name = dlsym(lh, "name");
if(name == NULL) { bu_log("Faulty plugin %s: No name\n", filename); return
NULL; }
init = dlsym(lh, "init");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits