Index: /trunk/src/kmk/kbuild.c
===================================================================
--- /trunk/src/kmk/kbuild.c	(revision 2247)
+++ /trunk/src/kmk/kbuild.c	(revision 2248)
@@ -138,4 +138,6 @@
     if (rc < 0 || rc == GET_PATH_MAX - 1)
     {
+        rc = -1;
+# if 0 /* doesn't work because l_name isn't always absolute, it's just argv0 from exec or something. */
         /* /proc is optional, try rtdl. */
         void *hExe = dlopen(NULL, 0);
@@ -154,5 +156,7 @@
                 }
             }    
-        }
+
+        }
+# endif
     }
     else
