Re: plperl again but different problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marcin Giedz <marcin(dot)giedz(at)eulerhermes(dot)pl>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: plperl again but different problem
Date: 2005-09-13 15:24:17
Message-ID: 23418.1126625057@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Marcin Giedz <marcin(dot)giedz(at)eulerhermes(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Hoover 2005-09-13 15:49:02 Question on vacuuming
Previous Message Marcin Giedz 2005-09-13 15:17:55 Re: plperl again but different problem