plperl building problem on FreeBSD 4.10 port

From: Ferruccio Zamuner <nonsolosoft(at)diff(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Cc: nonsolosoft(at)diff(dot)org
Subject: plperl building problem on FreeBSD 4.10 port
Date: 2004-11-27 10:56:17
Message-ID: 41A85D51.5000708@diff.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

I was installing a brand new PostgreSQL 7.4.6 on FreeBSD 4.10 using ports:

portinstall postgresql7
portinstall postgresql-pltcl
portinstall p5-postgresql-plperl

but when I was going to install the plperl, I've found following error:

Nov 27 11:06:51 biblio postgres[93190]: [1-1] ERROR: could not load
library "/usr/local/lib/postgresql/plperl.so": dlopen
'/usr/local/lib/postgresql/plperl.so' failed.
Nov 27 11:06:51 biblio postgres[93190]: [1-2]
(/usr/local/lib/postgresql/plperl.so: Undefined symbol "Perl_sv_2pv_flags")
bash-2.05b$ createlang plperlu template1
createlang: language installation failed: ERROR: could not load library
"/usr/local/lib/postgresql/plperl.so": dlopen
'/usr/local/lib/postgresql/plperl.so' failed.
(/usr/local/lib/postgresql/plperl.so: Undefined symbol "Perl_sv_2pv_flags")

On IRC I've found AndrewSN that helped me:

: that's a known build problem
: ok, reinstall as follows: in the port dir, do "make patch" (which
will unpack and patch the tree)
: then modify configure (in the work dir) as follows:
: can you find the main "configure" file it should have extracted
: about 4300 lines down is this line:
: perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
: change that to:
: perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
: then going back to the port dir and doing make; make install should work

In this way it works fine.

It should be usefull if that simple patch was available for BSD port users.

Bye, \fer

Browse pgsql-bugs by date

  From Date Subject
Next Message Honza Rameš 2004-11-27 11:44:41 WinXP bug
Previous Message Ing. Aleš PROCHÁZKA 2004-11-27 10:41:05 Troubles with windows instaler of PostgreSql 8 beta 5