[cl-gtk2-devel] Can not run cl-gtk2 on sbcl 1.0.35 multithreaded

Kalyanov Dmitry kalyanov.dmitry at gmail.com
Sat Feb 20 13:21:24 UTC 2010


On Saturday 20 February 2010 14:24:32, Jos Dassen wrote:
> Hi,
> 
> I am trying to install cl-gtk2 on my system and get error messages related
> to multithreading.
> 
> My system is:
> Ubuntu 8.0.4 64 bit
> SBCL 1.0.35 64 bit with multithreading.
> 
> When loading cl-gtk2 I get the following messages:
> 
> *  (require :cl-gtk2-gtk)
> 
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/cl-gtk2-pa
> ngo.asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :CL-GTK2-PANGO {1003041441}> as CL-GTK2-PANGO
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/iterate.as
> d ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :ITERATE {10033B37C1}> as ITERATE
> ; registering #<SYSTEM :ITERATE-PG {100366A6F1}> as ITERATE-PG
> ; registering #<SYSTEM :ITERATE-TESTS {1002CF98E1}> as ITERATE-TESTS
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/cl-gtk2-gl
> ib.asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :CL-GTK2-GLIB {100333E361}> as CL-GTK2-GLIB
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/closer-mop
> .asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM #:CLOSER-MOP {1003685DF1}> as CLOSER-MOP
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/lw-compat.
> asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM #:LW-COMPAT {1002D68811}> as LW-COMPAT
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/bordeaux-t
> hreads.asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :BORDEAUX-THREADS {100319FFD1}> as BORDEAUX-THREADS
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/alexandria
> .asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :ALEXANDRIA {100361C501}> as ALEXANDRIA
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/trivial-ga
> rbage.asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM TRIVIAL-GARBAGE {1002DD6E31}> as TRIVIAL-GARBAGE
> ; registering #<SYSTEM TRIVIAL-GARBAGE-TESTS {1003175361}> as
> ; TRIVIAL-GARBAGE-TESTS
> ; loading system definition from
> ; /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/cffi.asd
> into ; #<PACKAGE "ASDF0">
> ; registering #<SYSTEM CFFI {10035D4CE1}> as CFFI
> ; loading system definition from
> ;
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/cl-gtk2-gd
> k.asd ; into #<PACKAGE "ASDF0">
> ; registering #<SYSTEM :CL-GTK2-GDK {10033790C1}> as CL-GTK2-GDK
> 
> debugger invoked on a SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR in thread
> #<THREAD "initial thread" RUNNING {1002ABA011}>: Attempt to call an
> undefined alien function.
> 
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
> 
> restarts (invokable by number or by possibly-abbreviated name):
>   0: [TRY-RECOMPILING] Recompile glib and try loading it again
>   1: [RETRY          ] Retry performing #<ASDF:LOAD-OP NIL {1003D20CD1}> on
>                        #<ASDF:CL-SOURCE-FILE "glib" {1002CB0291}>.
>   2: [ACCEPT         ] Continue, treating #<ASDF:LOAD-OP NIL {1003D20CD1}>
> on #<ASDF:CL-SOURCE-FILE "glib" {1002CB0291}> as having been successful.
>   3: [ABORT          ] Exit debugger, returning to top level.
> 
> (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR)
> 0]  p
> (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR)
> 0] down
> ("foreign function: #x4215B0")
> 1] down
> (G-THREAD-GET-INITIALIZED)
> 2] down
> (SB-FASL::FOP-FUNCALL)
> 3] down
> (SB-FASL::LOAD-FASL-GROUP
>     #<SB-SYS:FD-STREAM
>       for "file
> /home/dassen/programming/lisp/sbcl-1.0.35/lib/sbcl/site-systems/source/cl-
> gtk2-0.1.1/glib/glib.fasl" {1003AC0271}>)
> 4]
> 
> 
> 
> Any ideas of what might be wrong ???
> 
> 
> JD

The error message is not related to threading, the actual error is "Attempt to 
call an undefined alien function." which means that cl-gtk2 tried to call a 
function that is not present in a library.

cl-gtk2 requires gtk+ >= 2.16 (and glib >= 2.20) but ubuntu 8.04 has too old 
versions of them (gtk+-2.12 and glib-2.16 according to 
http://packages.ubuntu.com/hardy/libglib2.0-0). You should update them (I'm 
sorry I can't help with that - I don't know ubuntu well enough).

In the current development version of cl-gtk2 (and in next released versions) 
the error message about libraries versions will be more clear.

----
Кальянов Дмитрий
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://mailman.common-lisp.net/pipermail/cl-gtk2-devel/attachments/20100220/8473925c/attachment.sig>


More information about the cl-gtk2-devel mailing list