FreeBSD: WARN vs. ERR for builtin dlls

François Gouget fgouget at codeweavers.com
Fri Nov 9 06:18:20 CST 2001


   On FreeBSD the message is of the form:
   Shared object "xxx.so" not found

   I don't want to just try a match on "not found" (though missing
symbols say "missing" not "not found") so I also check for "Shared
object".


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * relay32/builtin32.c

   Recognize the FreeBSD dlopen equivalent of "cannot open".


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: relay32/builtin32.c
===================================================================
RCS file: /home/wine/wine/relay32/builtin32.c,v
retrieving revision 1.82
diff -u -r1.82 builtin32.c
--- relay32/builtin32.c	2001/10/14 16:06:54	1.82
+++ relay32/builtin32.c	2001/11/09 09:59:12
@@ -41,7 +41,8 @@
 
     if (!(handle = wine_dll_load( name, error, sizeof(error) )))
     {
-        if (strstr(error, "cannot open") || strstr(error, "open failed")) {
+        if (strstr(error, "cannot open") || strstr(error, "open failed") ||
+            (strstr(error, "Shared object") && strstr(error, "not found"))) {
 	    /* The file does not exist -> WARN() */
             WARN("cannot open .so lib for builtin %s: %s\n", name, error);
         } else {


More information about the wine-patches mailing list