[plt-scheme] Re: SLIB with MzScheme

From: Jens Axel Søgaard (js at vgt-gym.dk)
Date: Sun Aug 18 12:55:43 EDT 2002

Since you obviously have installed SLIB and
used slibinit the intended way, I unfortunately
don't know how to help you.

A copy is sent to the plt-scheme mailing list,
perhaps someone there knows what to do.

/Jens Axel Søgaard

"Andrew Tarr" <arc at stuff.gen.nz> wrote in
 news:<87elcwcesw.fsf at stuff.gen.nz>...
> "Jens Axel Søgaard" <usenet at soegaard.net> writes:
> 
> > Andrew Tarr wrote:
> > > Welcome to MzScheme version 200.2, Copyright (c) 1995- 2002 PLT
> > >> (require (lib "load.ss" "slibinit"))
> > 
> > This require is MzScheme's require. It loads the
> > MzScheme specific stuff that it needs to use SLIB.
> > After this line (require 'some-symbol) is the require
> > from SLIB.
> 
> Yes, so I gathered from the help desk. I was trying to work out what 
> happens if you want MzScheme modules and SLIB: I guess you have to 
> load the SLIB moodules last.
> 
> >See also
> >
> >http://www.cs.utah.edu/plt/mailarch/plt-scheme-2002/msg00661.html
> >or 
> >http://lists.debian.org/debian-devel/2002/debian-devel-200205/msg0181
> >6.html
> >
> >(require 'new-catalog) is apparently worth trying.
> 
> yes, I tried that:
> 
> 
> ariel:/home/ajt# mzscheme
> Welcome to MzScheme version 200.2, Copyright (c) 1995-2002 PLT
> > (require (lib "load.ss" "slibinit"))
> > (require 'new-catalog)
> #f
> 
> (that #f doesn't look good. )
> 
> > (require 'yasos)
> reference to undefined identifier: macro:load
> 
> and it still doesn't go.
> 
> Thanks for the links, it seems as though getting debian-packaged 
> schemes to 'just go' with SLIB isn't entirely trivial. However, they 
> seem to suggest that (require 'new-catalog) run as root should fix the 
> problem. My problem doesn't appear to be fixed by this.
> 
> > 
> > >> (require 'yasos)
> > > reference to undefined identifier: macro:load
> > 
> > > Well, it's a new error message, so I've made progress, I guess. 
> > > What happens now?
> > 
> > I'm not sure. I guess the error message comes from SLIB. Have you 
> > tried whether other stuff from SLIB works?
> 
> er, I hadn't, I was thinking the '#f' and something called 'load' not 
> working sounded pretty mission-critical, but as it turns out
> 
> > (require 'logical)
> > (number->string (logand 12 10) 2)
> "1000"
> 
> 'logical works fine. Unfortunately, it's Yasos that I want, not 
> logical :]
> 
> Yasos works OK from SCM, though. So it's definitely some sort of 
> MzScheme plus SLIB problem :]
> 
> > What version of SLIB are you using?
> 
> 2d4-2, apparently.
> 
> > --
> > Jens Axel Søgaard
> 
>  macro:load seems to be defined in a number of SLIB packages, none of 
> which appear to be relevant: yasos requires object, and object doesn't 
> require anything. So the only place that seems to be of issue here 
> which I can find is in SLIB's require.scm. There's a big (apply (case 
> statement which has a line which says ((macro) macro:load) in it as 
> part of the definition of require:require. My best guess is that this 
> will execute macro:load if macro is required, but I can't see anything 
> asking for it. yasyn.scm does use a define-syntax form, but SLIB would 
> have to be pretty smart to try and attempt to load a macro package on 
> the merest attempt to define a macro.
> 
> 
> Andrew.




Posted on the users mailing list.