I have a problem with warnings from bordeaux-threads. These warnings are no problem when I load manually on Lispworks and SBCL.
But when I try to deliver a stand-alone application on Lispworks the delivery process stops at these warnings. I reported the problem to bordeaux-threads mailinglist. They are as follows:
| ; Loading fasl file d:\Projekte\Lisp\bordeaux-threads\src\bordeaux-threads.ofasl | ; Loading fasl file d:\Projekte\Lisp\bordeaux-threads\src\lispworks.ofasl | Warning: (METHOD | MAKE-THREAD | (T)) being redefined in d:\Projekte\Lisp\bordeaux- | threads\src\lispworks.lisp (previously in d:\Projekte\Lisp\bordeaux- | threads\src\bordeaux-threads.lisp). | Warning: (METHOD | MAKE-LOCK | NIL) being redefined in d:\Projekte\Lisp\bordeaux- | threads\src\lispworks.lisp (previously in d:\Projekte\Lisp\bordeaux- | threads\src\bordeaux-threads.lisp). | Warning: (DEFMACRO WITH-LOCK-HELD) being redefined in d:\Projekte\Lisp\bordeaux- | threads\src\lispworks.lisp (previously in d:\Projekte\Lisp\bordeaux- | threads\src\bordeaux-threads.lisp). | Warning: (METHOD | THREAD-YIELD | NIL) being redefined in d:\Projekte\Lisp\bordeaux- | threads\src\lispworks.lisp (previously in d:\Projekte\Lisp\bordeaux- | threads\src\bordeaux-threads.lisp).
Is there a way for postmodern to load without bordeux-threads? I think on Lispworks I don't need this.
I tried the following (changed t and nil)
| ;; Change this to manually turn threading support on or off. | (defparameter *threads* #+(or allegro armedbear cmu corman (and digitool ccl-5.1) | ecl lispworks openmcl sbcl) nil | #-(or allegro armedbear cmu corman (and digitool ccl-5.1) | ecl lispworks openmcl sbcl) t)
but there is some resistance:
| Loading fasl file d:\Projekte\Lisp\postmodern-1.02\postmodern\connect.ofasl | | Error: Package BORDEAUX-THREADS not found. | 1 Get another package name. | ...
Jens
Hello Jens,
Did you re-compile completely after disabling threads? (Remove all .fasl files -- this is a compile-time option.) Note that this will mean that connection pools are no longer thread-safe, which might be a problem in some applications. The problem you are seeing does seem to be related to bordeaux-threads... but you could check this by making a small dummy project which uses bordeaux-threads but not postmodern, and seeing if you can build a stand-alone app from that.
Cheers, Marijn
Marijn Haverbeke wrote:
Hello Jens,
Did you re-compile completely after disabling threads? (Remove all .fasl files -- this is a compile-time option.)
This sounds like beeing my problem.
Note that this will mean that connection pools are no longer thread-safe, which might be a problem in some applications. The problem you are seeing does seem to be related to bordeaux-threads... but you could check this by making a small dummy project which uses bordeaux-threads but not postmodern, and seeing if you can build a stand-alone app from that.
I'm not sure and will be cautious. I'm looking to solve the underying problem in bordeaux-threads first.
Thanks for the quick response.
Jens
postmodern-devel@common-lisp.net