Re: FFI on OS X?

2011-03-09 Thread Andy Wingo
On Thu 03 Mar 2011 18:50, l...@gnu.org (Ludovic Courtès) writes: > Do Fedora & co. move ‘.so’ to dev packages too? Yep. Andy -- http://wingolog.org/

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi, Andreas Rottmann writes: > l...@gnu.org (Ludovic Courtès) writes: > >> Andreas Rottmann 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 ca

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’ fil

Re: FFI on OS X?

2011-03-03 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: > Hi Andreas, > > Andreas Rottmann 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 fi

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi, Hans Aberg 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 t

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. >> >

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi Andreas, Andreas Rottmann 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 has two (IMHO)

Re: FFI on OS X?

2011-03-03 Thread Ludovic Courtès
Hi Hans, Hans Aberg 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,

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 infer

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 inferr

Re: FFI on OS X?

2011-03-02 Thread Andreas Rottmann
Hans Aberg writes: > On 2 Mar 2011, at 21:44, 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 a

Re: FFI on OS X?

2011-03-02 Thread Ludovic Courtès
Hi, Hans Aberg writes: > On 2 Mar 2011, at 21:44, 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

Re: FFI on OS X?

2011-03-02 Thread Hans Aberg
On 2 Mar 2011, at 21:44, 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 > Gu

Re: FFI on OS X?

2011-03-02 Thread Ludovic Courtès
Hi, Michael Ellis writes: > 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 ltdl) depending