X-Original-To: pgsql-admin@postgresql.org Received: from tidal.ipinc.com (tidal.ipinc.com [198.147.128.166]) by postgresql.org (Postfix) with ESMTP id 7EF5B475AE4; Fri, 21 Mar 2003 12:56:31 -0500 (EST) Received: from ipinc.com ([192.168.16.140]) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id JAA23930; Fri, 21 Mar 2003 09:56:36 -0800 (PST) (envelope-from jliang@ipinc.com) Message-ID: <3E7B5235.8080703@ipinc.com> Date: Fri, 21 Mar 2003 09:56:05 -0800 From: Jie Liang Organization: ipinc.com User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org, tobez@FreeBSD.org, pgsql-hackers-request@postgresql.org Subject: perl 5.6.1 and PostgreSQL7.3.2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/346 X-Sequence-Number: 7986 I tried to use perl 5.6.1+ on PL/Perl, even though I successfully created libperl.so file and get compile done(gmake no complaint), but I still failed at load. Following is my steps: (OS: FreeBSD-4.7, PostgreSQL 7.3.2, Perl 5.6.1) cd /usr/ports/lang/perl5 make cd work/perl-5.6.1 LD_LIBRARY_PATH=`pwd` export LD_LIBRARY_PATH sh Configure -Duseshrplib For every question, I take the default, except: Build a shared libperl.so (y/n) [n] y What name do you want to give to the shared libperl? [libperl.a] libperl.so.5.6.1 after that make make test make install (perl 5.6.1 executable is installed at /usr/local/bin/) make a symbolic like with libperl.so->libperl.so.5.6.1 which is under /usr/local/lib/perl5/5.6.1/mach/CORE/ then install postgresql gmake gmake install (no complaint at all) initdb start postmaster createlang plperl template1 (compliant) EERROR: Load of file /usr/local/pgsql/lib/plperl.so failed: dlopen '/usr/local/pgsql/lib/plperl.so' failed. (/usr/local/pgsql/lib/plperl.so: Undefined symbol "Perl_sv_2pv_flags") ERROR: Load of file /usr/local/pgsql/lib/plperl.so failed: dlopen '/usr/local/pgsql/lib/plperl.so' failed. (/usr/local/pgsql/lib/plperl.so: Undefined symbol "Perl_sv_2pv_flags") createlang: language installation failed What's wrong? -- Jie LIANG Software Engineer St. Bernard Software 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@stbernard.com www.stbernard.com