Compiling pl/perl problems.

From: Alan Young <alany(at)harleypig(dot)idiglobal(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Compiling pl/perl problems.
Date: 2001-05-04 10:24:31
Message-ID: 01050405262202.24018@harleypig.idiglobal.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all, I'm having problems compiling pl/perl.

I've compiled perl 5.6.0 and 5.6.1 with and without threads and as shared (as
per the README in the perl distribution).

I've compiled postgresql both 7.0.3 and 7.1.

In all cases I get the following errors when trying to compile:

[ 11:26:33 root(at)zope:/home/src/postgresql-7.1/src/pl/plperl ]# make
make -f Makefile all
make[1]: Entering directory `/home/src/postgresql-7.1/src/pl/plperl'
cc -c -I../../../src/include -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.1/i686-linux-thread-multi/CORE plperl.c
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

Any ideas?

Browse pgsql-general by date

  From Date Subject
Next Message Peter Haworth 2001-05-04 11:49:57 Re: DBD::Pg errstr method doesn't return full error messages
Previous Message Renaud Thonnart 2001-05-04 08:49:40 psql always ends with a SEGV: