Hello, 
It seems Cygwin behaves differently depending on whether dlopen argument 
contains path to file or filename only.
If there is file name only and it is without dot, then Cygwin implicitly adds 
".dll" to file name, 
but when there is a slash, Cygwin does not add ".dll" anymore.
 
Try this temporarily solution (tested with last Cygwin release and v.3.0.2 of 
Picolisp):

--- main.c.old  2010-03-17 19:21:10.000000000 +0500
+++ main.c      2010-04-21 10:43:30.426257300 +0600
@@ -651,14 +651,14 @@
    *p++ = '\0';
    {
       int n = Home? strlen(Home) : 0;
-      char buf[n + strlen(nm) + 4 + 1];
+      char buf[n + strlen(nm) + 4 + 4 + 1];

       if (strchr(nm,'/'))
          strcpy(buf, nm);
       else {
          if (n)
             memcpy(buf, Home, n);
-         strcpy(buf + n, "lib/"),  strcpy(buf + n + 4, nm);
+         strcpy(buf + n, "lib/"),  strcpy(buf + n + 4, nm), strcpy(buf + n + 4 
+ strlen(nm), ".dll");
       }
       if (!(h = dlopen(buf, RTLD_LAZY | RTLD_GLOBAL))  ||  !(h = dlsym(h,p)))
          return NO;


> Just downloaded and installed picoLisp-3.0.2
> 
> I get an error ...
> 
> bash-3.2$ ./dbg lib/http.l lib/xhtml.l lib/form.l -'server 8080 "project.l"'
> !? (ht:Pack @U)
> ht:Pack -- Undefined
> 
> Huh ... where is it actually defined?
> 
> And in what way does it differ from 'pack'?
> 
> /o
> 
> -- 
> ------------------------------------------------------------------
> Olle Olsson   ol...@sics.se   Tel: +46 8 633 15 19  Fax: +46 8 751 72 30
>          [Svenska W3C-kontoret: ol...@w3.org]
> SICS [Swedish Institute of Computer Science]
> Box 1263
> SE - 164 29 Kista
> Sweden
> ------------------------------------------------------------------
> 
> 
> -- 
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
> 
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to