Re: plperl again but different problem - Mailing list pgsql-admin

From Tom Lane
Subject Re: plperl again but different problem
Date
Msg-id 23418.1126625057@sss.pgh.pa.us
Whole thread Raw
In response to Re: plperl again but different problem  (Marcin Giedz <marcin.giedz@eulerhermes.pl>)
Responses Re: plperl again but different problem  (Marcin Giedz <marcin.giedz@eulerhermes.pl>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Chris Hoover
Date:
Subject: Question on vacuuming
Next
From: Marcin Giedz
Date:
Subject: Re: plperl again but different problem