Re: PL/Perl without shared libperl.a - Mailing list pgsql-general

From Alan Young
Subject Re: PL/Perl without shared libperl.a
Date
Msg-id 01051114220300.01047@harleypig.idiglobal.com
Whole thread Raw
In response to Re: PL/Perl without shared libperl.a  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Fri, 11 May 2001, Tom Lane wrote:
> I believe you could actually use a non-shared libperl.a on Intel Linux;
> just dike out the test for shared-ness in plperl's Makefile.PL.
> The reason it's there is we couldn't think of a direct test for
> position-independent code, which is the real requirement...

Can you tell me how to fix this particular problem in compiling plperl?  I've
tried both a threading and non-threading compile of perl as well as a
shared and non-shared compile (both 5.6.0 and 5.6.1) and get the same response
everytime.

The only hint I can find says that you can't do a threaded and shared perl at
the same time, but none of the discussions mentioned plperl and it was 2 years
old.

Thanks for your time.

In file included from plperl.c:80:
/usr/lib/perl5/5.6.1/i686-linux-thread-multi/CORE/perl.h:469: warning: `USE_LOCALE' redefined
../../../src/include/config.h:38: warning: this is the location of the previous definition
In file included from plperl.c:80:
/usr/lib/perl5/5.6.1/i686-linux-thread-multi/CORE/perl.h:2155: warning: `DEBUG' redefined
../../../src/include/utils/elog.h:23: warning: this is the location of the previous definition
plperl.c: In function `plperl_init_all':
plperl.c:195: `my_perl' undeclared (first use in this function)
plperl.c:195: (Each undeclared identifier is reported only once
plperl.c:195: for each function it appears in.)
plperl.c: In function `plperl_init_safe_interp':
plperl.c:243: warning: passing arg 2 of `perl_parse' from incompatible pointer type
plperl.c:251: `my_perl' undeclared (first use in this function)
plperl.c: In function `plperl_create_sub':
plperl.c:320: `my_perl' undeclared (first use in this function)
plperl.c: In function `plperl_init_shared_libs':
plperl.c:387: `my_perl' undeclared (first use in this function)
plperl.c:387: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type
plperl.c:388: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type
plperl.c: In function `plperl_call_perl_func':
plperl.c:399: `my_perl' undeclared (first use in this function)
plperl.c: In function `plperl_func_handler':
plperl.c:500: `my_perl' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:2159: `my_perl' undeclared (first use in this function)
make[1]: *** [plperl.o] Error 1
make[1]: Leaving directory `/home/src/postgresql-7.1/src/pl/plperl'
make: *** [all] Error 2

pgsql-general by date:

Previous
From: "Kurt Miller"
Date:
Subject: 7.0.2 backend churning out messages
Next
From: "David Stevenson"
Date:
Subject: Question on Starting Postgres for the first time