On Sat, 2 Jun 2012, Moritz Lenz wrote:

> On 06/02/2012 06:48 PM, Bart Wiegmans wrote:
> > The second is that it turns out the symbols for apache are available
> > at runtime, i.e. I can (could) use NCI to call apache functions
> > directly. This works to a point, because NCI will not call anything
> > with even slightly complex arguments (for instance, 2 PMCs together
> > with void result, does not work.). The error is 'No NCI thunk for
> > signature'. I would be much helped if somebody could explain why it
> > doesn't, and if there is a way to fix this.
> 
> I think that parrot's NCI functionality is much enhanced if you have
> libffi installed. If you have, and re-run parrot's Configure.pl, it
> should say
> 
> auto::libffi -        Is libffi
> installed.................................yes.
> 
> If that doesn't work for you, you could use nqp, which bundles 'dyncall'
> (which also happens to compile on Windows much easier than libffi).

It's worth remembering that both ffi and dyncall generally assume gcc on 
Unix-like systems, so their portability is somewhat limited.  (This is 
understandable, since the problem they are trying to address is hard.)  
That may not matter much at this particular stage of this particular 
project, but it's worth keeping in mind for the long run.

-- 
    Andy Dougherty              [email protected]
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to