From: Brian M. <bma...@us...> - 2004-12-20 13:10:48
|
Update of /cvsroot/sbcl/sbcl/src/code In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9049/src/code Modified Files: foreign-load.lisp Log Message: 0.8.17.31: "dlerror and a tale of woe" Fix two bugs relating to dlerror() in the OS X dl* shim: * dlerror() should return NULL when there is no error * dlerror() should return an error when dlsym() returns NULL Also, fix a call to cerror with only one argument. Restores support for OS X 10.2 "Jaguar": * Use a header file with constants for the dl* shim instead of the OS dlfcn.h, which doesn't exist under 10.2 and does under 10.3 * Include a fake nl_langinfo which returns a codeset of UTF-8 unless neither LC_CALL or LANG are set to C. OS X uses UTF-8 everywhere, so this is arguably the right behavior. Index: foreign-load.lisp =================================================================== RCS file: /cvsroot/sbcl/sbcl/src/code/foreign-load.lisp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- foreign-load.lisp 3 Dec 2004 17:50:10 -0000 1.6 +++ foreign-load.lisp 20 Dec 2004 13:10:39 -0000 1.7 @@ -75,7 +75,7 @@ (setf dlerror (dlerror) (shared-object-sap obj) nil))) (when dlerror - (cerror dlerror)))) + (cerror "Ignore the error and continue anyway" "dlerror returned an error: ~S" dlerror)))) (defun load-shared-object (file) "Load a shared library/dynamic shared object file/general dlopenable |