Re: problem with FFI and libsane

2012-06-07 Thread Ganesh Sittampalam
On 07/06/2012 12:08, Simon Marlow wrote: > I don't completely understand what is going wrong here, but it looks > like an interaction between the RTS's use of a timer signal and the > libsane library. You can make it work by turning off GHC's timer with > +RTS -V0. [..] > The signal has always be

Re: problem with FFI and libsane

2012-06-07 Thread Simon Marlow
On 06/06/2012 06:59, Ganesh Sittampalam wrote: I'm having some trouble making Haskell bindings to libsane (a scanner access library: http://www.sane-project.org/) When I build the cut down sample of my code (below) with GHC 7.4.1 with the non-threaded runtime, it hangs at runtime in the call to

problem with FFI and libsane

2012-06-05 Thread Ganesh Sittampalam
Hi, I'm having some trouble making Haskell bindings to libsane (a scanner access library: http://www.sane-project.org/) When I build the cut down sample of my code (below) with GHC 7.4.1 with the non-threaded runtime, it hangs at runtime in the call to c'sane_get_devices (after printing "go"). Pr