<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This was the error i got when i tried to load osicat. The include
    parameter is highlighted. <br>
    <br>
    ? (ql:quickload "osicat")<br>
    To load "osicat":<br>
      Load 4 ASDF systems:<br>
        alexandria cffi cffi-grovel trivial-features<br>
      Install 1 Quicklisp release:<br>
        osicat<br>
    ; Fetching #<URL
    <a class="moz-txt-link-rfc2396E"
href="http://beta.quicklisp.org/archive/osicat/2011-06-19/osicat-20110619-git.tgz">"http://beta.quicklisp.org/archive/osicat/2011-06-19/osicat-20110619-git.tgz"</a>><br>
    ; 51.27KB<br>
    ==================================================<br>
    52,505 bytes in 0.15 seconds (346.45KB/sec)<br>
    ; Loading "osicat"<br>
    [package osicat-sys]..............................<br>
    [package osicat-posix]; E:/Apps/Mingw/bin/gcc.exe -m32
    -I/Apps/CommonLisp/quicklisp/dists/quicklisp/software/c<br>
    ffi_0.10.6/ -fPIC -o
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/qui<br>
    cklisp/dists/quicklisp/software/osicat-20110619-git/posix/basic-unixint.exe

    C:/Users/Karl_H/AppData/Local/comm<br>
on-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-20110619-git/pos<br>
    ix/basic-unixint.c<br>
    > Error: External process exited with code 1.<br>
    >        Command was: "E:/Apps/Mingw/bin/gcc.exe" "-m32"<b><u>
        "-I/Apps/CommonLisp/quicklisp/dists/quicklisp/softwar<br>
        e/cffi_0.10.6/"</u> </b>"-fPIC" "-o"
"C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/Commo<br>
    nLisp/quicklisp/dists/quicklisp/software/osicat-20110619-git/posix/basic-unixint.exe"

    "C:/Users/Karl_H/AppData<br>
/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-20110<br>
    619-git/posix/basic-unixint.c"<br>
    >        Output was:<br>
    >       
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists<br>
    /quicklisp/software/osicat-20110619-git/posix/basic-unixint.c:1:0:
    warning: -fPIC ignored for target (all code<br>
     is position independent)<br>
    >       
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists<br>
    /quicklisp/software/osicat-20110619-git/posix/basic-unixint.c:16:27:
    fatal error: grovel/common.h: No such fil<br>
    e or directory<br>
    >        compilation terminated.<br>
    ><br>
    > While executing: CFFI-GROVEL::INVOKE, in process listener(1).<br>
    > Type :POP to abort, :R for a list of available restarts.<br>
    > Type :? for other options.<br>
    <br>
    <br>
    I applied some changes to grovel.lisp that seem to fix the problem
    with the groveler. The problem was that (directory-namestring ...)
    doesn't include the device name that is used for the drive letter
    (this is at least true for ccl and ecl on windows 7 64bit). That is
    the drive letter is missing in the namestring and neither the cffi
    install directory nor the lib is found by the compiler and so on.
    This patch may be a little improvisational but thats due to the
    little time i spend with lisp programming yet. I send the path as
    attachment. <br>
    <br>
    There is still a problem with osicat after applying the patch but
    this seems osicat related: <br>
    <br>
    ? (ql:quickload "osicat")<br>
    To load "osicat":<br>
      Load 4 ASDF systems:<br>
        alexandria cffi cffi-grovel trivial-features<br>
      Install 1 Quicklisp release:<br>
        osicat<br>
    ; Fetching #<URL
    <a class="moz-txt-link-rfc2396E"
href="http://beta.quicklisp.org/archive/osicat/2011-06-19/osicat-20110619-git.tgz">"http://beta.quicklisp.org/archive/osicat/2011-06-19/osicat-20110619-git.tgz"</a>><br>
    ; 51.27KB<br>
    ==================================================<br>
    52,505 bytes in 0.20 seconds (258.96KB/sec)<br>
    ; Loading "osicat"<br>
    [package osicat-sys]..............................<br>
    [package osicat-posix]; E:/Apps/Mingw/bin/gcc.exe -m32
    -IE:/Apps/CommonLisp/quicklisp/local-projects/cffi/ -o<br>
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklis<br>
    p/software/osicat-20110619-git/posix/basic-unixint.exe
    C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7<br>
-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-20110619-git/posix/basic-unixint.c<br>
    ;
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quickl<br>
    isp/software/osicat-20110619-git/posix/basic-unixint.exe
    C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1<br>
.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-20110619-git/posix/basic-unixint.gr<br>
    ovel-tmp.lisp<br>
    ................; E:/Apps/Mingw/bin/gcc.exe -m32
    -IE:/Apps/CommonLisp/quicklisp/local-projects/cffi/ -shared -<br>
    o
C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quickl<br>
    isp/software/osicat-20110619-git/posix/libosicat.dll
    C:/Users/Karl_H/AppData/Local/common-lisp/cache/ccl-1.7-f<br>
95-win-x86/E/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-20110619-git/posix/wrappers.c<br>
    ............<br>
    ..................................................<br>
    [package osicat-windows]..........................<br>
    [package osicat].<br>
    Read error between positions 3522 and 4277 in
    E:/Apps/CommonLisp/quicklisp/dists/quicklisp/software/osicat-201<br>
    10619-git/src/osicat.lisp.<br>
    > Error: Unbound variable: OSICAT-POSIX:S-IFLNK<br>
    > While executing: CCL::CHEAP-EVAL, in process listener(1).<br>
    > Type :GO to continue, :POP to abort, :R for a list of available
    restarts.<br>
    > If continued: Retry getting the value of OSICAT-POSIX:S-IFLNK.<br>
    > Type :? for other options.<br>
    <br>
    I hope this may help, <br>
    <br>
    best regards, <br>
    <br>
    Karl <br>
    <br>
    <br>
    <br>
    <br>
    Am 30.11.2011 20:30, schrieb Luís Oliveira:
    <blockquote
cite="mid:CAB-HnLQwh4Lf2NeO9BfpVYoGBRKQ_fN1=BDz9AH-FA7Ni1gb3w@mail.gmail.com"
      type="cite">
      <pre wrap="">On Wed, Nov 30, 2011 at 1:40 PM, Karl Heinrichmeyer
<a class="moz-txt-link-rfc2396E" href="mailto:karl@gudrun-heinrichmeyer.de"><karl@gudrun-heinrichmeyer.de></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">When I tried to load the osicat library via quicklisp yesterday i got an
error because the cffi-groveler couldn't find the c compiler and because the
path in the include parameter was ill formed (the drive letter was missing).
</pre>
      </blockquote>
      <pre wrap="">Regarding the first issue, unless Windows has some new concept of a
default system compiler, I guess all we can do is look for more likely
places. Right now, it's looking at "c:/msys/1.0/bin/gcc.exe". Perhaps
it could do better than that.
</pre>
    </blockquote>
    <br>
    It is fine to use the CC environment variable, but it would be nice
    if there was any note in the manual that the variable is important.
    <br>
    <br>
    <blockquote
cite="mid:CAB-HnLQwh4Lf2NeO9BfpVYoGBRKQ_fN1=BDz9AH-FA7Ni1gb3w@mail.gmail.com"
      type="cite">
      <pre wrap="">
What include parameter are you referring to? Do you have a patch?

Osicat is probably the best test-case for cffi-grovel on Windows.
There's also a port of iolib to Windows:
<a class="moz-txt-link-rfc2396E" href="http://src.knowledgetools.de/tomas/winapi/index.html"><http://src.knowledgetools.de/tomas/winapi/index.html></a>.

Cheers,

</pre>
    </blockquote>
  </body>
</html>