Index: s_loader.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v
retrieving revision 1.4
diff -u -r1.4 s_loader.c
--- s_loader.c	6 Sep 2004 20:20:35 -0000	1.4
+++ s_loader.c	11 Dec 2004 15:54:49 -0000
@@ -134,8 +134,18 @@
             return 0;
         }
         ret = NSLinkModule( image, filename, 
-               NSLINKMODULE_OPTION_BINDNOW + NSLINKMODULE_OPTION_PRIVATE); 
-
+               NSLINKMODULE_OPTION_BINDNOW |
+               //NSLINKMODULE_OPTION_PRIVATE |
+               NSLINKMODULE_OPTION_RETURN_ON_ERROR);
+               
+        if (ret == NULL) {
+        	int err;
+        	const char *fname, *errt;
+        	NSLinkEditErrors c;
+        	NSLinkEditError(&c, &err, &fname, &errt);
+        	post("link error %d %s %s", err, fname, errt);
+        	return 0;
+        }
         s = NSLookupSymbolInModule(ret, symname); 
 
         if (s)
