in reply to perl->c->perl

That error seems to appear when the C library doesn't #include one of the essential Perl header files. Try adding this to the top of the offending library.

#include "EXTERN.h" #include "perl.h" #include "XSUB.h"

It's one of those three, I'll wager.

--
Marvin Humphrey
Rectangular Research ― http://www.rectangular.com