pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Giedz <marcin.giedz@eulerhermes.pl>
To: pgsql-admin@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: plperl again but different problem
Date: Tue, 13 Sep 2005 18:37:20 +0200
Message-ID: <200509131837.20948.marcin.giedz@eulerhermes.pl> (raw)
In-Reply-To: <23418.1126625057@sss.pgh.pa.us>
References: <200509131418.02818.marcin.giedz@eulerhermes.pl>
	<200509131431.16634.marcin.giedz@eulerhermes.pl>
	<23418.1126625057@sss.pgh.pa.us>

Dnia wtorek, 13 września 2005 17:24, Tom Lane napisał:
> 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.

pgsql2-test:/usr/src/postgresql-snapshot/src/pl/plperl# ldd libplperl.so
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fc7000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7fa4000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f95000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7e60000)
        libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7e33000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
pgsql2-test:/usr/src/postgresql-snapshot/src/pl/plperl#  

I don't see any libperl.so :( But doesn't plperl use shared libperl library? 
"....libperl must have been built as a shared library, which is usually not 
the case in standard installations..." taken from README file

I've changed configure script and put PERL variable as 
PERL=/usr/local/perl/bin/perl - so all things related to perl where taken 
from this place.

>
> 			regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster



view thread (18+ messages)  latest in thread

Message-ID: <200509131837.20948.marcin.giedz@eulerhermes.pl>
Permalink:  ../200509131837.20948.marcin.giedz@eulerhermes.pl/
Also on:    postgresql.org/message-id/200509131837.20948.marcin.giedz@eulerhermes.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: marcin.giedz@eulerhermes.pl, tgl@sss.pgh.pa.us
  Subject: Re: plperl again but different problem
  In-Reply-To: <200509131837.20948.marcin.giedz@eulerhermes.pl>
  References: <200509131418.02818.marcin.giedz@eulerhermes.pl> <200509131431.16634.marcin.giedz@eulerhermes.pl> <23418.1126625057@sss.pgh.pa.us> <200509131837.20948.marcin.giedz@eulerhermes.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox