Marcin Giedz <marcin.giedz@eulerhermes.pl> writes:
>> createlang: language installation failed: ERROR: could not load library
>> "/usr/local/postgresql-8.0.3/lib/plperl.so":
>> /usr/local/postgresql-8.0.3/lib/plperl.so: undefined symbol: Perl_croak
I think you've got some kind of mismatch between the compilation options
for Perl proper and those for plperl. IIRC, Perl can spell its exported
function names in several different ways (eg, with or without the Perl_
prefix). It looks like plperl is expecting a different convention than
what the libperl.so file was actually built with.
Use ldd on plperl.so to double check which libperl it's trying to link
to. Double check that the Perl header files you compiled plperl against
came from the same Perl build that produced libperl.so.
regards, tom lane