dbTalk Databases Forums  

[BUGS] plperl building problem on FreeBSD 4.10 port

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] plperl building problem on FreeBSD 4.10 port in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ferruccio Zamuner
 
Posts: n/a

Default [BUGS] plperl building problem on FreeBSD 4.10 port - 11-27-2004 , 05:00 AM






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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.