Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13384/src
Modified Files: Tag: devel_0_38 s_loader.c Log Message: better error reporting for dlopen/dlsym
Index: s_loader.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v retrieving revision 1.4.4.4 retrieving revision 1.4.4.5 diff -C2 -d -r1.4.4.4 -r1.4.4.5 *** s_loader.c 28 Feb 2005 00:15:52 -0000 1.4.4.4 --- s_loader.c 3 Mar 2005 13:39:46 -0000 1.4.4.5 *************** *** 107,117 **** #ifdef DL_OPEN dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); ! if (!dlobj) ! { ! post("%s: %s", filename, dlerror()); ! class_set_extern_dir(&s_); ! return (0); ! } ! makeout = (t_xxx)dlsym(dlobj, symname); #endif #ifdef MSW --- 107,114 ---- #ifdef DL_OPEN dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); ! if(dlobj) ! makeout = (t_xxx)dlsym(dlobj, symname); ! if(!makeout) ! post("%s: %s",filename,dlerror()); #endif #ifdef MSW