[Larceny-users] FFI error when mixing SRFI 27 and (glut)
Felix Klock
felixluser at pnkfx.org
Mon Dec 28 09:58:53 EST 2009
Thanks Ed!
I just filed the problem in Larceny's bug database as Ticket #659:
https://trac.ccs.neu.edu/trac/larceny/ticket/659
-Felix
On Dec 26, 2009, at 4:26 AM, Eduardo Cavazos wrote:
> Hello,
>
> This program works fine:
>
> ----------------------------------------------------------------------
> (import (rnrs)
> (glut)
> (srfi :27 random-bits))
>
> (glutInit (vector 0) (vector ""))
> ----------------------------------------------------------------------
>
> However, this one:
>
> ----------------------------------------------------------------------
> (import (rnrs)
> (srfi :27 random-bits)
> (glut))
>
> (glutInit (vector 0) (vector ""))
> ----------------------------------------------------------------------
>
> results in an FFI error:
>
> ----------------------------------------------------------------------
> ~ $ rlwrap ~/src/larceny-0.97-bin-native-ia32-linux86/larceny -r6rs
> -program /tmp/test-larceny-gl-b.sps
> Warning: loading source in favor of stale fasl
> file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Standard/time.sch
> Warning: loading source in favor of stale fasl
> file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-i386.sch
> Warning: loading source in favor of stale fasl
> file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-linux-x86.sch
>
> Error: no handler for exception #<record &compound-condition>
> Compound condition has these components:
> #<record &assertion>
> #<record &who>
> who : "ffi/apply"
> #<record &message>
> message : " bad arguments.\n"
>
> Terminating program execution.
> ~ $
> ----------------------------------------------------------------------
>
> Note that the only difference is the order of the imports.
>
> The '(glut)' library is the one I mentioned in my previous message. :-)
>
> Ed
>
>
> _______________________________________________
> Larceny-users mailing list
> Larceny-users at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/larceny-users
More information about the Larceny-users
mailing list