[cl-gd-devel] Problems with (cl-gd-test:test)

Andrei Stebakov lispercat at gmail.com
Tue Mar 13 18:20:31 UTC 2007


I installed debian package, and now test works, thank you!

Andrew

On 3/13/07, Andrei Stebakov <lispercat at gmail.com> wrote:
>
> I missed the cl-gd-glue.so. Now in order to compile it I had to install
> the libiconv. So I rebuilt the libgd with it and I put cl-gd-glue.so in
> both /usr/lib and /usr/local/lib. The problem is still the same, when I
> (asdf:oos 'asdf:compile-op :cl-gd) it gives me 2 errors:
>
> Undefined foreign symbol: "gdImageCreate"
>    [Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]
>
> Restarts:
>  0: [CONTINUE] Return NIL from load of #P"/home/andrews/systems/cl-
> gd-0.5.2/gd-uffi.x86f ".
>  1: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {58391B6D}> on
> #<ASDF:CL-SOURCE-FILE "gd-uffi" {59420ECD}>.
>  2: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {58391B6D}> on
> #<ASDF:CL-SOURCE-FILE "gd-uffi" {59420ECD}> as having been successful.
>  3: [ABORT] Return to SLIME's top level.
>  4: [ABORT] Return to Top-Level.
>
> Backtrace:
>   0: (KERNEL:UNDEFINED-FOREIGN-SYMBOL-ERROR-HANDLER "<error finding name>"
>                                                     #.(SYSTEM:INT-SAP
> #x3FFFBB3C)
>                                                     #<Alien (*
>                                                              #) at
> #x3FFFB7B4>
>                                                     (16))
>   1: (KERNEL::INTERNAL-ERROR #.(SYSTEM:INT-SAP #x3FFFB7B4) #<unused-arg>)
>   2: ("call_into_lisp+#x8C [#x805560C] /usr/bin/cmucl")
>   3: ("funcall2+#x2C [#x80553EE] /usr/bin/cmucl")
>   4: ("interrupt_internal_error+#xC3 [#x80506F1] /usr/bin/cmucl")
>   5: ("sigtrap_handler+#x187 [#x8055260] /usr/bin/cmucl")
>   6: ("Foreign function call land")
>   7: ("os_link_one_symbol+#xC3 [#x8056603] /usr/bin/cmucl")
>   8: (LISP::ADD-FOREIGN-LINKAGE "gdImageCreate"
>                                 :CODE #("resolve_linkage_tramp" 1 NIL
>                                         "undefined_tramp" 1 ...)
>                                 #<HASH-TABLE
>                                   :TEST EQUAL :WEAK-P NIL :COUNT 555
>                                   {28073825}>
>                                 ...)
>   9: (LISP::FOREIGN-SYMBOL-ADDRESS-AUX "gdImageCreate" :CODE)
>  10: (LISP::FOP-FOREIGN-FIXUP)
>  11: (LISP::LOAD-GROUP
>       #<Stream for file "/home/andrews/systems/cl- gd-0.5.2/gd-uffi.x86f
> ">)
>  12: (LISP::FASLOAD
>       #<Stream for file "/home/andrews/systems/cl-gd-0.5.2/gd-uffi.x86f">)
>  13: (LISP::INTERNAL-LOAD
>       #P"/home/andrews/systems/cl- gd-0.5.2/gd-uffi.x86f"
>       #P"/home/andrews/systems/cl-gd-0.5.2/gd-uffi.x86f"
>       :ERROR :BINARY)
>  14: (LISP::INTERNAL-LOAD
>       #P"/home/andrews/systems/cl-gd-0.5.2/gd-uffi.x86f"
>       #P"/home/andrews/systems/cl-gd-0.5.2/gd-uffi.x86f"
>       :ERROR NIL)
>  15: (LOAD #P"/home/andrews/systems/cl-gd-0.5.2/gd-uffi.x86f"
>            :VERBOSE NIL
>            :PRINT ...)
>  16: ((METHOD ASDF:PERFORM NIL (ASDF:LOAD-OP ASDF:CL-SOURCE-FILE))
>       (#() . #(#)) #<unused-arg> #<ASDF:LOAD-OP NIL {58391B6D}>
>       #<ASDF:CL-SOURCE-FILE "gd-uffi" {59420ECD}>)
>  17: ("LAMBDA (G1558 G1559 G1560)" #<#1=unused-arg> #<#1#>
>       #<ASDF:LOAD-OP NIL {58391B6D}>
>       #<ASDF:CL-SOURCE-FILE "gd-uffi" {59420ECD}>)
>  18: ((FLET #:G0 ASDF:OPERATE))
>  19: (ASDF:OPERATE ASDF:COMPILE-OP :CL-GD)
>  20: (ASDF:OPERATE 2 ASDF:COMPILE-OP :CL-GD)[:EXTERNAL]
>  21: ("DEFSLIMEFUN INTERACTIVE-EVAL")
>  22: (SWANK::CALL-WITH-BUFFER-SYNTAX
>       #<Closure Over Function "DEFSLIMEFUN INTERACTIVE-EVAL" {59401131}>)
>  23: ("DEFUN EVAL-FOR-EMACS")
>  24: ("DEFINTERFACE CALL-WITH-DEBUGGER-HOOK"
>       #<Function SWANK:SWANK-DEBUGGER-HOOK {58E6FA31}>
>       #<Closure Over Function "DEFUN EVAL-FOR-EMACS" {59401019}>)
>  25: ("DEFUN HANDLE-REQUEST")
>  26: ("DEFINTERFACE CALL-WITH-DEBUGGER-HOOK"
>       #<Function SWANK:SWANK-DEBUGGER-HOOK {58E6FA31}>
>       #<Function "DEFUN HANDLE-REQUEST" {58F41831}>)
>  27: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {587F6715}>
>                                      #<Closure Over Function "DEFUN
> CALL-WITH-CONNECTION"
>                                        {59386AE9}>)
>  28: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {587F6715}>
>                                   #<Function "DEFUN HANDLE-REQUEST"
>                                     {58F41831}>)
>  29: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {587F6715}>)
>  30: (SWANK::PROCESS-AVAILABLE-INPUT #<Stream for descriptor 9>
>                                      #<Closure Over Function "DEFUN
> INSTALL-SIGIO-HANDLER"
>                                        {59386A99}>)
>  31: ((FLET SWANK::HANDLER SWANK::INSTALL-SIGIO-HANDLER))
>  32: (SWANK-BACKEND::SIGIO-HANDLER #<#1=unused-arg> #<#1#> #<#1#>)
>  33: ("call_into_lisp+#x8C [#x805560C] /usr/bin/cmucl")
>  34: ("funcall3+#x32 [#x8055422] /usr/bin/cmucl")
>  35: ("interrupt_handle_now+#x105 [#x8050940] /usr/bin/cmucl")
>  36: ("NIL+#x8050E07 [#x8050E07] /usr/bin/cmucl")
>  37: ("Foreign function call land")
>  38: (SYSTEM:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL)
>  39: (LISP::DO-INPUT #<Stream for Standard Input>)
>  40: (LISP::INPUT-CHARACTER #<Stream for Standard Input> NIL
> (LISP::*EOF*))
>  41: (LISP::SYNONYM-IN #<Synonym Stream to SYSTEM:*STDIN*>
>                        NIL
>                        (LISP::*EOF*))
>  42: (LISP::TWO-WAY-IN
>       #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>,
> Output = #<Synonym Stream to SYSTEM:*STDOUT*>>
>       NIL
>       (LISP::*EOF*))
>  43: (READ-CHAR
>       #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>,
> Output = #<Synonym Stream to SYSTEM:*STDOUT*>>
>
> And
>
> Undefined foreign symbol: "gdFontSmall"
>    [Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]
>
> Restarts:
>  0: [CONTINUE] Return NIL from load of #P"/home/andrews/systems/cl-
> gd-0.5.2/strings.x86f".
>  1: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {58391BCD}> on
> #<ASDF:CL-SOURCE-FILE "strings" {5839197D}>.
>  2: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {58391BCD}> on
> #<ASDF:CL-SOURCE-FILE "strings" {5839197D}> as having been successful.
>  3: [ABORT] Return to SLIME's top level.
>  4: [ABORT] Return to Top-Level.
>
> Backtrace:
>   0: (KERNEL:UNDEFINED-FOREIGN-SYMBOL-ERROR-HANDLER "<error finding name>"
>                                                     #.(SYSTEM:INT-SAP
> #x3FFFBB3C)
>                                                     #<Alien (*
>                                                              #) at
> #x3FFFB7B4>
>                                                     (16))
>   1: (KERNEL::INTERNAL-ERROR #.(SYSTEM:INT-SAP #x3FFFB7B4) #<unused-arg>)
>   2: ("call_into_lisp+#x8C [#x805560C] /usr/bin/cmucl")
>   3: ("funcall2+#x2C [#x80553EE] /usr/bin/cmucl")
>   4: ("interrupt_internal_error+#xC3 [#x80506F1] /usr/bin/cmucl")
>   5: ("sigtrap_handler+#x187 [#x8055260] /usr/bin/cmucl")
>   6: ("Foreign function call land")
>   7: ("os_link_one_symbol+#xC3 [#x8056603] /usr/bin/cmucl")
>   8: (LISP::ADD-FOREIGN-LINKAGE "gdFontSmall"
>                                 :DATA #("resolve_linkage_tramp" 1 NIL
>                                         "undefined_tramp" 1 ...)
>                                 #<HASH-TABLE
>                                   :TEST EQUAL :WEAK-P NIL :COUNT 555
>                                   {28073825}>
>                                 ...)
>   9: (LISP::FOREIGN-SYMBOL-ADDRESS-AUX "gdFontSmall" :DATA)
>  10: (LISP::FOP-FOREIGN-DATA-FIXUP)
>  11: (LISP::LOAD-GROUP
>       #<Stream for file "/home/andrews/systems/cl- gd-0.5.2
> /strings.x86f">)
>  12: (LISP::FASLOAD
>       #<Stream for file "/home/andrews/systems/cl-gd-0.5.2/strings.x86f">)
>  13: (LISP::INTERNAL-LOAD
>       #P"/home/andrews/systems/cl- gd-0.5.2/strings.x86f"
>       #P"/home/andrews/systems/cl-gd-0.5.2/strings.x86f"
>       :ERROR :BINARY)
>
> I am using debian linux (sarge), cmucl 19d.
>
> Thank you,
> Andrew
>
> On 3/13/07, Edi Weitz <edi at agharta.de> wrote:
> >
> > On Mon, 12 Mar 2007 22:40:54 -0500, "Andrei Stebakov" <
> > lispercat at gmail.com> wrote:
> >
> > > I've installed the libgd on my linux box (it's in
> > > /usr/local/lib/libgd.so).  I've installed the bindings and now when
> > > I compile it it complained about not being able to find
> > > gdImageCreate and gdSmallFont.
> > >
> > > [snip]
> > >
> > > I checked the libgd.so, looks like the gdImageCreate and the rest of
> > > the functions are there. What could be causing the problem?
> >
> > CL-GD loads libgd.so indirectly through cl-gd-glue.so, so the OS has
> > to be able to find it.  How did you compile cl-gd-glue.so?  Did you
> > get any error messages?  Does the OS look into /usr/local/lib?  Does
> > it work if you put the library into /usr/lib?  Which Lisp are you
> > using?
> > _______________________________________________
> > cl-gd-devel site list
> > cl-gd-devel at common-lisp.net
> > http://common-lisp.net/mailman/listinfo/cl-gd-devel
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-gd-devel/attachments/20070313/028c8ec8/attachment.html>


More information about the Cl-gd-devel mailing list