Re: FFI on OS X?

2011-03-03 Thread Hans Aberg
On 3 Mar 2011, at 00:03, Ludovic Courtès wrote: scheme@(guile-user) (define libm (dynamic-link /usr/lib/libm.dylib)) ERROR: In procedure dynamic-link: file: /usr/lib/libm.dylib, message: file not found You should omit the extension, which will be automatically inferred by Guile (actually

Re: FFI on OS X?

2011-03-03 Thread Hans Aberg
On 3 Mar 2011, at 00:14, Andreas Rottmann wrote: scheme@(guile-user) (define libm (dynamic-link /usr/lib/libm.dylib)) ERROR: In procedure dynamic-link: file: /usr/lib/libm.dylib, message: file not found You should omit the extension, which will be automatically inferred by Guile (actually

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi Hans, Hans Aberg haber...@telia.com writes: On 3 Mar 2011, at 00:03, Ludovic Courtès wrote: scheme@(guile-user) (define libm (dynamic-link /usr/lib/libm.dylib)) ERROR: In procedure dynamic-link: file: /usr/lib/libm.dylib, message: file not found You should omit the extension, which

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: Another related issue that has come up in IRC is versioning: If I understand correctly, it is currently impossible to specify the version of the shared object to be used (as one cannot even pass a full filename to `dynamic-link'). This

Re: FFI on OS X?

2011-03-03 Thread Hans Aberg
On 3 Mar 2011, at 11:40, Ludovic Courtès wrote: The crux is that on older MacOS X versions ‘.dylib’ are shared libraries (not dlopenable), whereas ‘.so’ are “bundles” (dlopenable). That’s why lt_dlopenext (which is what ‘dynamic-link’ uses) doesn’t try to open ‘.dylib’ files. The shared

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi, Hans Aberg haber...@telia.com writes: On 3 Mar 2011, at 11:40, Ludovic Courtès wrote: The crux is that on older MacOS X versions ‘.dylib’ are shared libraries (not dlopenable), whereas ‘.so’ are “bundles” (dlopenable). That’s why lt_dlopenext (which is what ‘dynamic-link’ uses) doesn’t

Re: Handling of the actively-maintained branches (master, stable-2.0)

2011-03-03 Thread Ludovic Courtès
Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: I wonder how this generally should be handled -- I think the most appropriate way would be to commit any changes that can go into the stable release into stable-2.0 (only), and then, at convenient times (perhaps always before committing

Re: FFI on OS X?

2011-03-03 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: Another related issue that has come up in IRC is versioning: If I understand correctly, it is currently impossible to specify the version of the shared object to be used (as one cannot even pass a

Re: FFI on OS X?

2011-03-03 Thread Hans Aberg
On 3 Mar 2011, at 14:11, Ludovic Courtès wrote: The crux is that on older MacOS X versions ‘.dylib’ are shared libraries (not dlopenable), whereas ‘.so’ are “bundles” (dlopenable). That’s why lt_dlopenext (which is what ‘dynamic-link’ uses) doesn’t try to open ‘.dylib’ files. The shared

google summer of code

2011-03-03 Thread Andy Wingo
Hey Guilers, If GNU gets into Google's summer of code program again, I would be happy to mentor one or two good hackers. So if you're a student, start thinking about it! I'll let the list know if GNU gets in. At that point we would start taking applications. Of course it helps if you've

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi, Andreas Rottmann a.rottm...@gmx.at writes: l...@gnu.org (Ludovic Courtès) writes: Andreas Rottmann a.rottm...@gmx.at writes: Another related issue that has come up in IRC is versioning: If I understand correctly, it is currently impossible to specify the version of the shared object

More detailed examples of ffi

2011-03-03 Thread dsmich
Greetings Guilers! The other day, aidalgol and I were chatting on irc about the new ffi. The question came up about how to define and access nested structures. I couldn't tell from reading the manual if it can be done. Could some more complex examples be put in the manual that more fully

Re: problem with trailing comment in repl

2011-03-03 Thread Andy Wingo
On Sun 13 Feb 2011 22:27, Noah Lavine noah.b.lav...@gmail.com writes: The attached patch does it. I almost hate to commit it because it's such a hack, but this is from my last Guile session: scheme@(guile-user) 'foo $2 = foo scheme@(guile-user) 'foo ; hi there! $3 = foo

Re: More detailed examples of ffi

2011-03-03 Thread Ludovic Courtès
Hi! dsm...@roadrunner.com writes: The other day, aidalgol and I were chatting on irc about the new ffi. The question came up about how to define and access nested structures. I couldn't tell from reading the manual if it can be done. There are ‘parse-c-struct’ and ‘make-c-struct’ examples in

guile-2.0.0 segmentation fault on MacOS X 10.6.

2011-03-03 Thread Steven Wu
All, I've built guile-2.0.0 and tried it out, I got segmentation fault running guile, the shell script starting the interpreter. Is this a known problem? steve