From: Andrew R. <and...@us...> - 2010-05-27 22:08:10
|
On Thu, May 27, 2010 at 05:55:33AM +0100, Leo wrote: > On 2010-05-26 23:45 +0100, Andrew Ross wrote: > > I've taken a look and it is not immediately obvious what the problem is. > > Unfortunately I have been unable to recreate the problem with any other > > language so it must be something related to the threads and lisp. I am no > > lisp expert, but I tried installing the relevant Ubuntu packages. I've > > not been able to get your example to work at all. I suspect this is me > > doing something wrong. Hazen (as author of cl-plplot) are you able to > > recreate this problem, and if so can you supply instruction on how I > > might be able to do the same. That way I can begin testing. > > > > Thanks > > > > Andrew > > == 1 == > > Which implementation of lisp do you have? Unlike python, perl or ruby, > lisp has too many implementations though quite a few good ones. (BTW, I > think this is one of the damaging factors.) > > There's CCL and SBCL that I use for testing the bug. If it is SBCL, > after you start it, type *features* in the prompt and see if SB-THREAD > is listed in the output. Otherwise it is a single-threaded lisp and > won't suffer the problem we are seeing here. > > Here's the output from my single-threaded sbcl: > I have the multi thread version of SBCL. > == 2 == > > Now let's make sure we can load cl-plplot. paste the following two lines > in the prompt: > > (require 'asdf) > (asdf:oos 'asdf:load-op :cl-plplot) > > and see if it starts correctly. > > If everything is installed from the package manager in debian/ubuntu, it > could work out of box so you don't need the following change. > > In the directory where you install cl-plplot, there's this file: > > ..../cl-plplot-0.5.0/src/system/loadlib.lisp > > where you can find a bunch of paths trying to guess where the plplot > library is installed. Change one of them to point to the directory where > libplplotd.so is, for example, I have: > > #P"/users/b/leo/devel/plplot/lib/" > > because I installed plplot to /users/b/leo/devel/plplot. The library is loaded correctly (I think) since I get the message "libplplotd library loaded". plplot is in the standard /usr/lib so should be found ok. After that I get STYLE-WARNING: Undefined alien: "plimage" STYLE-WARNING: Implicitly creating new generic function DEFAULT-BAR-WIDTHS. NIL 0] ; in: LAMBDA NIL ; (PLSDEV "qtwidget") ; ; caught STYLE-WARNING: ; undefined function: PLSDEV ; ; compilation unit finished ; Undefined function: ; PLSDEV ; caught 1 STYLE-WARNING condition debugger invoked on a UNDEFINED-FUNCTION in thread #<THREAD "initial thread" RUNNING {100367F441}>: The function PLSDEV is undefined. I don't know whether this is a problem between versions of plplot and cl-plplot (both installed as Ubuntu packages). > > == 3 == > After this, retry the test code and see if it works. Then we can move on > to crash lisp ;) > > Thanks. > > Leo > ------------------------------------------------------------------------------ > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general |