This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Some sort of bug??




Version is slib2c3 I think, which I believe is the latest one. Which one
should I be using?

Anyway, It doesn't seem to be some deep dark slib problem. Is there
something going on here
with modules and namespaces I don't understand? The xscm:vicinity symbol
seems to be
defined, but gives an error when it is accessed in a loaded file. But I
think if I get that strvec.scm
file and cut and paste it into the REPL, it seems to be ok.




mstachow@mit.edu on 10/28/98 04:29:04 AM

To:   chrisb@ans.com.au
cc:   guile@cygnus.com (bcc: Chris Bitmead/CHA)
Subject:  Re: Some sort of bug??





chrisb@ans.com.au writes:
>
> What should I make of this?....
>
> guile> (use-modules (ice-9 slib))
> ;; set up some slib catalogs....
> guile> (load "/usr/local/share/guile/site/xscm-init.scm")
> guile> (require 'stringvector)
> /usr/local/share/guile/site/strvec.scm:4:43: In expression
> (x-scm:vicinity):
> /usr/local/share/guile/site/strvec.scm:4:43: Unbound variable:
> x-scm:vicinity
> ABORT: (misc-error)
>

What version of SLIB are you using? I don't think the latest works
with Guile.

> Type "(backtrace)" to get more information.
> guile> (x-scm:vicinity)
> "/usr/local/share/guile/site"
> guile> x-scm:vicinity
> #<procedure x-scm:vicinity ()>
> guile> ^^D
> $ cat /usr/local/share/guile/site/strvec.scm
> ;; $Id: strvec.scm,v 1.2 1996/04/18 12:15:30 skimu Exp $
> (if (and (defined? 'dynamic-link)
>   (not (defined? 'stringvector)))
>     (let ((shl (dynamic-link (in-vicinity (x-scm:vicinity)
> "libstrvec.so"))))
>       (dynamic-call "init_strvec" shl)))
>

 - Maciej