[cells-gtk-devel] "First steps" how to compile problem

Friedrich Dominicus frido at q-software-solutions.de
Fri Feb 1 06:58:52 UTC 2008


Bob Willan <bwillan at matrix-systems-inc.com> writes:

> Hi, Peter,
>
> I've been thinking about getting into Lisp and Cells for a while, and your 
> how-to prompted me to give it a try now.  Not to mention all the work 
> you've been doing, making cells-gtk look like more of a going concern 
> now.  Thanks for that.
>
> I followed all your instructions, and when I had a compile problem, I 
> removed everything, downloaded again/updated from cvs, and tried again 
> from scratch, with the same results.  I'm new at lisp and must say the 
> compile errors and debugger aren't exactly intuitive to me, though I'd 
> guess it involves the cffi function call :(
>
> My compile stops in tree-view.lisp, as the lines below show.  I am using 
> straight Debian Etch (32bit 2.6.18-5-k7 kernel), gcc that came with it 
> v4.1.2 20061115 (prerelease)(Debian 4.1.1-21), SBCL 0.9.16, cffi 0.9.2, 
> and the cells/cells-gtk from cvs using the commands on your site.
The SBCL is quite old, I'd try with a newer version. 
> ;; I wasn't sure if these warnings when compiling gtk-ffi are
> ;; okay/expected or not?
>
> bob at work1:~/.sbcl/site/cells-gtk/gtk-ffi$ make
> gcc -fPIC -c gtk-adds.c `pkg-config --cflags --libs gtk+-2.0`
> gtk-adds.c: In function 'gtk_adds_color_new':
> gtk-adds.c:77: warning: incompatible implicit declaration of built-in 
> function 'malloc'
> gcc: -lgtk-x11-2.0: linker input file unused because linking not done
> gcc: -lgdk-x11-2.0: linker input file unused because linking not done
> gcc: -latk-1.0: linker input file unused because linking not done
> gcc: -lgdk_pixbuf-2.0: linker input file unused because linking not done
> gcc: -lm: linker input file unused because linking not done
> gcc: -lpangocairo-1.0: linker input file unused because linking not done
> gcc: -lfontconfig: linker input file unused because linking not done
> gcc: -lXext: linker input file unused because linking not done
> gcc: -lXrender: linker input file unused because linking not done
> gcc: -lXinerama: linker input file unused because linking not done
> gcc: -lXi: linker input file unused because linking not done
> gcc: -lXrandr: linker input file unused because linking not done
> gcc: -lXcursor: linker input file unused because linking not done
> gcc: -lXfixes: linker input file unused because linking not done
> gcc: -lpango-1.0: linker input file unused because linking not done
> gcc: -lcairo: linker input file unused because linking not done
> gcc: -lX11: linker input file unused because linking not done
> gcc: -lgobject-2.0: linker input file unused because linking not done
> gcc: -lgmodule-2.0: linker input file unused because linking not done
> gcc: -ldl: linker input file unused because linking not done
> gcc: -lglib-2.0: linker input file unused because linking not done
> gcc -shared -o libcellsgtk.so gtk-adds.o `pkg-config --cflags --libs 
> gtk+-2.0`

I'm have puzzeled a bit about it, but I think you can ignore it
>
> ;;----------------------------------------------------
>
>
> ;; Compile log starting at tree-view.lisp
>
> ; compiling file "/home/bob/.sbcl/site/cells-gtk/cells-gtk/tree-view.lisp" 
> (written 27 JAN 2008 03:01:05 PM):
> ; compiling (IN-PACKAGE :CGTK)
> ; compiling (DEF-OBJECT LIST-STORE ...)
> ; compiling (DEF-OBJECT TREE-STORE ...)
> ; compiling (DEFUN FAIL ...)
> ; compiling (DEF-WIDGET TREE-VIEW ...)
> ; compiling (DEF-CLEAN-UP (SELF TREE-VIEW) ...)
> ; compiling (DEF-C-OUTPUT TREE-MODEL ...)
> ; compiling (DEF-C-OUTPUT EXPAND-ALL ...)
> ; compiling (CFFI:DEFCALLBACK TREE-VIEW-ITEMS-SELECTOR ...)
> ; compiling (DEFMETHOD GET-SELECTION ...)
> ; compiling (DEF-C-OUTPUT SELECTION-MODE ...)
> ; compiling (CFFI:DEFCALLBACK TREE-VIEW-SELECT-HANDLER ...)
> ; compiling (DEF-C-OUTPUT ON-SELECT ...)
> ; compiling (DEFMODEL LISTBOX ...)
> ; compiling (DEFMETHOD ITEMS ...)
> ; compiling (DEFMETHOD (SETF ITEMS) ...)
> ; compiling (DEFUN MK-LISTBOX ...)
> ; compiling (DEF-C-OUTPUT SELECT-IF ...)
> ; compiling (DEF-C-OUTPUT ROOTS ...)
> ; compiling (DEFMODEL TREEBOX ...)
> ; compiling (DEFUN MK-TREEBOX ...)
> ; compiling (DEF-C-OUTPUT SELECT-IF ...)
> ; compiling (DEF-C-OUTPUT ROOTS ...)
> ; compiling (DEFUN GTK-TREE-STORE-SET-KIDS ...)
> ; compiling (CFFI:DEFCALLBACK TREE-VIEW-RENDER-CELL-CALLBACK ...)
> ; compiling (DEFUN ITEM-FROM-PATH ...)
> ; compiling (DECLAIM (OPTIMIZE #))
> ; compiling (DEFUN GTK-TREE-VIEW-RENDER-CELL ...)
> ; compiling (DEFSTRUCT RENDERER ...)
> ; compiling (LET (#) ...)
> debugger invoked on a TYPE-ERROR in thread #<THREAD "initial thread" 
> {A7BD4C1}>:
>   The value NIL is not of type SB-C::PHYSENV.
As written above I'd try with a newer SBCL version. This systme is
relativly fast moving, so one has to expect troubles....

And do not forget to remove the generated .fasl files (that are the
compiled .lisp files)


Regards
Friedrich


-- 
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim 
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus



More information about the cells-gtk-devel mailing list