chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] undefined reference to `C_syntax_case_toplevel'


From: felix winkelmann
Subject: Re: [Chicken-users] undefined reference to `C_syntax_case_toplevel'
Date: Mon, 26 Sep 2005 07:55:52 +0200

On 9/25/05, Shawn Rutledge <address@hidden> wrote:
> Well the new egg doesn't compile and install sdl-csi at all; in sdl.setup,
> (install-program 'sdl-csi '("sdl-csi"))
> is not there anymore, and adding it back is not enough to make it
> compile sdl-csi.
>
> So going back to the old egg, and removing (uses syntax-case), allows
> it to compile.  Then at runtime:
>
> [proton][12:30:16 PM] sdl-csi
> ALSA lib pcm_dmix.c:802:(snd_pcm_dmix_open) unable to open slave
> unix_connect: can't connect to server
> (unix:/tmp/mcop-root/proton_quantum_int-285c-4324b904)
> Error: unbound variable: install-highlevel-macro-system
>
> sdl-csi.scm: 8    require
> sdl-csi.scm: 9    require
> sdl.scm: 42   require
> sdl.scm: 43   require
> sdl.scm: 44   require
> sdl.scm: 50   ##sys#call-with-values
> sdl.scm: 50   heap-functor
> sdl.scm: 49   values
> sdl.scm: 176  ##sys#register-record-printer
> sdl.scm: 206  ##sys#register-record-printer
> sdl.scm: 222  ##sys#register-record-printer
> sdl.scm: 348  ##sys#call-with-values
> sdl.scm: 350  make-timer-queue
> sdl.scm: 50   empty-heap
> sdl.scm: 50   values
> sdl.scm: 368  ##sys#register-record-printer
> sdl.scm: 624  ##sys#register-record-printer
> sdl.scm: 653  ##sys#register-record-printer
> sdl.scm: 780  ##sys#register-record-printer
> sdl.scm: 818  ##sys#register-record-printer
> sdl.scm: 898  ##sys#register-record-printer
> ##sys#peek-c-string
> sdl-csi.scm: 13   install-highlevel-macro-system        <--
>
> so I removed that line from sdl-csi as well, for now, but where was it
> supposed to come from?

It used the syntax-case unit (which is now obsolete). You can safely
remove that line.

>
> Anyway I don't understand the difference between uses, require,
> require-extension, when to use which one, etc.
>

The `uses' declaration is for static linking. You normally shouldn't
worry about it, since `require-extension' does in most cases the right
thing.
`require' searches and loads files (source or compiled) at runtime.
Once loaded the same file will not be loaded again.
`require-extension' handles syntactic extensions proplery and
recognizes "builtin" extensions (like utils, ...). Otherwise it is equivalent
to `require'.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]