I'm trying to write a simple perl interface to P0fq, a tool which
examines network traffic to try to passively determine which OS hosts
are running.  In the P0fq archive, there is a noddy C program to do
this, and my module lifts the guts straight out of that.

When I try to use my module (which is incomplete, but should AFAICT at
least compile the C code) I get errors from the compiler, with it
muttering lots about errors calling Perl_stack_grow - which I don't
mention at all in my code.

Rather than cut and paste the code and the errors here, I've put them on
my web site:

http://www.cantrell.org.uk/david/private/P0fq.pm
http://www.cantrell.org.uk/david/private/build-errors

Any hints would be most gratefully received!

Please note that C is *not* my forte, so I do no serious error checking in
the C code.  I'm going to do all of that in perl before calling the C
function.  I'm using C instead of pure perl because the interface I need
to speak to (a Unix socket) talks by passing C structs around, and so to
be portable (thinking of things like alignment) I can't just use pack
and unpack, as the alignment may vary from compiler to compiler and
platform to platform.

-- 
David Cantrell |  Degenerate  | http://www.cantrell.org.uk/david

  This is nice.  Any idea what body-part it is?

Reply via email to