uffi doesn't work - lisp

This is a discussion on uffi doesn't work - lisp ; Hi all. Please, Help me to find an error. I have tried three versions of the uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened: ******************************************************************** ;; Loading file /home/dan/.clisprc ... ;; Loading file /tmp/cl/cl-asdf-1.111/asdf.lisp ... ;; Loaded ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

uffi doesn't work

  1. Default uffi doesn't work

    Hi all.

    Please, Help me to find an error. I have tried three versions of the
    uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:

    ********************************************************************
    ;; Loading file /home/dan/.clisprc ...
    ;; Loading file /tmp/cl/cl-asdf-1.111/asdf.lisp ...
    ;; Loaded file /tmp/cl/cl-asdf-1.111/asdf.lisp
    ; loading system definition from /tmp/cl/uffi-1.6.1/uffi.asd into #<PACKAGE ASDF0>
    ;; Loading file /tmp/cl/uffi-1.6.1/uffi.asd ...
    ;; Loaded file /tmp/cl/uffi-1.6.1/uffi.asd
    *** - component "uffi" not found
    The following restarts are available:
    SKIP :R1 skip (OPERATE 'LOAD-OP 'UFFI)
    STOP :R2 stop loading file /home/dan/.clisprc
    ABORT :R3 ABORT
    ABORT :R4 ABORT
    ******************************************************************

    I use the following .clisprc file:
    ****************************************************
    (load "/tmp/cl/cl-asdf-1.111/asdf.lisp")
    (setf asdf:*central-registry*
    (list* #p"/tmp/cl/cl-asdf-1.111/"
    #p"/tmp/cl/cl-utilities-1.2.3/"
    #p"/tmp/cl/cffi-0.9.0/"
    #p"/tmp/cl/uffi-1.6.1/"
    #p"/tmp/clsql-4.0.3/"
    asdf:*central-registry* ))
    (asdfperate 'asdf:load-op 'uffi)
    *********************************************************
    Lisp machine is clisp-2.39.

    Daneel Yaitskov.


  2. Default Re: uffi doesn't work

    Daneel Yaitskov wrote:
    > Hi all.


    Hi. Your problem is not UFFI, that error is from ASDF and it is saying
    it cannot find a .asd file defining :UFFI in any of the paths
    registered. If you think you have your stuff where it should be, I have
    had problems specifying the path in a way ASDF can understand.

    Also, I am used to specifying :uffi, not 'uffi, tho I have no idea if
    that is a problem.

    hth, kt

    >
    > Please, Help me to find an error. I have tried three versions of the
    > uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >
    > ********************************************************************
    > ;; Loading file /home/dan/.clisprc ...
    > ;; Loading file /tmp/cl/cl-asdf-1.111/asdf.lisp ...
    > ;; Loaded file /tmp/cl/cl-asdf-1.111/asdf.lisp
    > ; loading system definition from /tmp/cl/uffi-1.6.1/uffi.asd into #<PACKAGE ASDF0>
    > ;; Loading file /tmp/cl/uffi-1.6.1/uffi.asd ...
    > ;; Loaded file /tmp/cl/uffi-1.6.1/uffi.asd
    > *** - component "uffi" not found
    > The following restarts are available:
    > SKIP :R1 skip (OPERATE 'LOAD-OP 'UFFI)
    > STOP :R2 stop loading file /home/dan/.clisprc
    > ABORT :R3 ABORT
    > ABORT :R4 ABORT
    > ******************************************************************
    >
    > I use the following .clisprc file:
    > ****************************************************
    > (load "/tmp/cl/cl-asdf-1.111/asdf.lisp")
    > (setf asdf:*central-registry*
    > (list* #p"/tmp/cl/cl-asdf-1.111/"
    > #p"/tmp/cl/cl-utilities-1.2.3/"
    > #p"/tmp/cl/cffi-0.9.0/"
    > #p"/tmp/cl/uffi-1.6.1/"
    > #p"/tmp/clsql-4.0.3/"
    > asdf:*central-registry* ))
    > (asdfperate 'asdf:load-op 'uffi)
    > *********************************************************
    > Lisp machine is clisp-2.39.
    >
    > Daneel Yaitskov.
    >


  3. Default Re: uffi doesn't work

    Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> writes:

    > Hi all.
    >
    > Please, Help me to find an error. I have tried three versions of the
    > uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >
    > ********************************************************************
    > ;; Loading file /home/dan/.clisprc ...


    UFFI has never worked on clisp. At one time, I tried to make it work
    with clisp, but I didn't complete it, and eventually CFFI appeared
    and superseded UFFI. CFFI works on clisp.

    If you need to use an old library that needs UFFI, there is in CFFI a
    compatibility layer, uffi-compat.

    --
    __Pascal Bourguignon__ http://www.informatimago.com/

    "This statement is false." In Lisp: (defun Q () (eq nil (Q)))

  4. Default Re: uffi doesn't work

    Pascal J. Bourguignon wrote:
    > Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> writes:
    >
    >
    >>Hi all.
    >>
    >>Please, Help me to find an error. I have tried three versions of the
    >>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >>
    >>********************************************************************
    >>;; Loading file /home/dan/.clisprc ...

    >
    >
    > UFFI has never worked on clisp.


    Also useful information, but potentially confusing to the OP.

    OP: Yes, use CFFI. But that is unrelated to the error you reported, and
    you might still have the same problem with ASDF not finding the
    definition for CFFI.

    A sanity check after setting up asdf:*central-registry* would be (untested):

    (assert (loop for p in (butlast asdf:*central-registry*)
    thereis (probe-file (merge-pathnames
    (make-pathname :name "cffi"
    :type "asd") p))))

    I would not try building until that works.

    hth,kt

  5. Default Re: uffi doesn't work

    pjb@informatimago.com (Pascal J. Bourguignon) writes:

    > Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> writes:
    >
    >> Hi all.
    >>
    >> Please, Help me to find an error. I have tried three versions of the
    >> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >>
    >> ********************************************************************
    >> ;; Loading file /home/dan/.clisprc ...

    >
    > UFFI has never worked on clisp. At one time, I tried to make it work
    > with clisp, but I didn't complete it, and eventually CFFI appeared
    > and superseded UFFI. CFFI works on clisp.
    >
    > If you need to use an old library that needs UFFI, there is in CFFI a
    > compatibility layer, uffi-compat.
    >
    > --
    > __Pascal Bourguignon__ http://www.informatimago.com/
    >
    > "This statement is false." In Lisp: (defun Q () (eq nil (Q)))



    What other implementation of the lisp machine can I use instead GNU
    clisp? I am the university's student and can afford only a free
    lisp machine.

  6. Default Re: uffi doesn't work

    On Fri, 03 Oct 2008 23:51:47 +0400, Daneel Yaitskov wrote:

    > pjb@informatimago.com (Pascal J. Bourguignon) writes:
    >
    >> Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> writes:
    >>
    >>> Hi all.
    >>>
    >>> Please, Help me to find an error. I have tried three versions of the
    >>> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >>>
    >>> ********************************************************************
    >>> ;; Loading file /home/dan/.clisprc ...

    >>
    >> UFFI has never worked on clisp. At one time, I tried to make it work
    >> with clisp, but I didn't complete it, and eventually CFFI appeared and
    >> superseded UFFI. CFFI works on clisp.
    >>
    >> If you need to use an old library that needs UFFI, there is in CFFI a
    >> compatibility layer, uffi-compat.
    >>
    >> --
    >> __Pascal Bourguignon__
    >> http://www.informatimago.com/
    >>
    >> "This statement is false." In Lisp: (defun Q () (eq nil
    >> (Q)))

    >
    >
    > What other implementation of the lisp machine can I use instead GNU
    > clisp? I am the university's student and can afford only a free lisp
    > machine.


    You mean a Lisp implementation, right? There are plenty of free ones,
    CMUCL, SBCL, etc.

    And why do you have to use UFFI? CFFI works fine too.

    Tamas

  7. Default Re: uffi doesn't work

    Daneel Yaitskov wrote:
    > pjb@informatimago.com (Pascal J. Bourguignon) writes:
    >
    >
    >>Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> writes:
    >>
    >>
    >>>Hi all.
    >>>
    >>>Please, Help me to find an error. I have tried three versions of the
    >>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
    >>>
    >>>********************************************************************
    >>>;; Loading file /home/dan/.clisprc ...

    >>
    >>UFFI has never worked on clisp. At one time, I tried to make it work
    >>with clisp, but I didn't complete it, and eventually CFFI appeared
    >>and superseded UFFI. CFFI works on clisp.
    >>
    >>If you need to use an old library that needs UFFI, there is in CFFI a
    >>compatibility layer, uffi-compat.
    >>
    >>--
    >>__Pascal Bourguignon__ http://www.informatimago.com/
    >>
    >>"This statement is false." In Lisp: (defun Q () (eq nil (Q)))

    >
    >
    >
    > What other implementation of the lisp machine can I use instead GNU
    > clisp? I am the university's student and can afford only a free
    > lisp machine.


    He was telling you not to use /UFFI/. CLisp is fine. For FFI, use CFFI:

    http://common-lisp.net/project/cffi/

    kt

  8. Default Re: uffi doesn't work

    On Oct 3, 3:51 pm, Kenny <kentil...@gmail.com> wrote:
    > Pascal J. Bourguignon wrote:
    > > Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> writes:

    >
    > >>Hi all.

    >
    > >>Please, Help me to find an error. I have tried three versions of the
    > >>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:

    >
    > >>********************************************************************
    > >>;; Loading file /home/dan/.clisprc ...

    >
    > > UFFI has never worked on clisp.

    >
    > Also useful information, but potentially confusing to the OP.
    >
    > OP: Yes, use CFFI. But that is unrelated to the error you reported, and
    > you might still have the same problem with ASDF not finding the
    > definition for CFFI.
    >
    > A sanity check after setting up asdf:*central-registry* would be (untested):
    >
    >    (assert (loop for p in (butlast asdf:*central-registry*)
    >                  thereis (probe-file (merge-pathnames
    >                                        (make-pathname :name "cffi"
    >                                           :type "asd") p))))
    >

    Tested and works. (I removed the butlast asdf...). Thanks :-)

    Mirko

  9. Default Re: uffi doesn't work

    Mirko.Vukovic@gmail.com wrote:
    > On Oct 3, 3:51 pm, Kenny <kentil...@gmail.com> wrote:
    >
    >>Pascal J. Bourguignon wrote:
    >>
    >>>Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> writes:

    >>
    >>>>Hi all.

    >>
    >>>>Please, Help me to find an error. I have tried three versions of the
    >>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:

    >>
    >>>>********************************************************************
    >>>>;; Loading file /home/dan/.clisprc ...

    >>
    >>>UFFI has never worked on clisp.

    >>
    >>Also useful information, but potentially confusing to the OP.
    >>
    >>OP: Yes, use CFFI. But that is unrelated to the error you reported, and
    >>you might still have the same problem with ASDF not finding the
    >>definition for CFFI.
    >>
    >>A sanity check after setting up asdf:*central-registry* would be (untested):
    >>
    >> (assert (loop for p in (butlast asdf:*central-registry*)
    >> thereis (probe-file (merge-pathnames
    >> (make-pathname :name "cffi"
    >> :type "asd") p))))
    >>

    >
    > Tested and works. (I removed the butlast asdf...). Thanks :-)


    The butlast was there cuz I found a symbol in the last cons, the
    pathname default thingy -- maybe make the last token?:

    (if (symbolp p)(symbol-value p) p)

    ?

    kt

  10. Default Re: uffi doesn't work

    Mirko.Vukovic@gmail.com wrote:
    > On Oct 3, 3:51 pm, Kenny <kentil...@gmail.com> wrote:
    >
    >>Pascal J. Bourguignon wrote:
    >>
    >>>Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> writes:

    >>
    >>>>Hi all.

    >>
    >>>>Please, Help me to find an error. I have tried three versions of the
    >>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:

    >>
    >>>>********************************************************************
    >>>>;; Loading file /home/dan/.clisprc ...

    >>
    >>>UFFI has never worked on clisp.

    >>
    >>Also useful information, but potentially confusing to the OP.
    >>
    >>OP: Yes, use CFFI. But that is unrelated to the error you reported, and
    >>you might still have the same problem with ASDF not finding the
    >>definition for CFFI.
    >>
    >>A sanity check after setting up asdf:*central-registry* would be (untested):
    >>
    >> (assert (loop for p in (butlast asdf:*central-registry*)
    >> thereis (probe-file (merge-pathnames
    >> (make-pathname :name "cffi"
    >> :type "asd") p))))
    >>

    >


    btw, if you want to cover all the bases you need to open the file and
    check that the name parameter is :cffi, not :cffi-xyz. That has been an
    issue (not with cffi) where I had the filename right but not the name
    parameter, usually cuz I cloned a .asd to a new file name but forgot to
    change the internal name arg.

    hth,kt

+ Reply to Thread
Page 1 of 2 1 2 LastLast