>> plperl.c: In function `plperl_create_sub':
>> plperl.c:328: `errgv' undeclared (first use in this function)
>> plperl.c:328: (Each undeclared identifier is reported only once
>> plperl.c:328: for each function it appears in.)
>> plperl.c:334: `na' undeclared (first use in this function)
>> plperl.c: In function `plperl_call_perl_func':
>> plperl.c:444: `errgv' undeclared (first use in this function)
>> plperl.c:450: `na' undeclared (first use in this function)
>> plperl.c: In function `plperl_func_handler':
>> plperl.c:654: `na' undeclared (first use in this function)
>> plperl.c: In function `plperl_build_tuple_argument':
>> plperl.c:2192: `na' undeclared (first use in this function)
>> make: *** [plperl.o] Error 1
For recent Perls, you need to configure plperl correctly:
perl Makefile.PL POLLUTE=1
make all
make install
The POLLUTE hack won't be necessary anymore in 7.1, but for now it is.
regards, tom lane