No title

Started by turing2000over 25 years ago4 messagesgeneral
Jump to latest
#1turing2000
turing2000@mail.ru

Sorry for my previos letter, it was wrong.

Deal ( question ) are consist of:

[plperl]# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/plperl
mkdir blib/lib/auto
mkdir blib/lib/auto/plperl
gcc -c -I../../../src/include -I../../../src/backend -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/perl/lib/5.6.0/i686-linux/CORE plperl.c
In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:467: warning: `USE_LOCALE' redefined
../../../src/include/config.h:214: warning: this is the location of the previous definition
In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:2027: warning: `DEBUG' redefined
../../../src/include/utils/elog.h:22: warning: this is the location of the previous definition
plperl.c: In function `plperl_create_sub':
plperl.c:328: `errgv' undeclared (first use in this function)
plperl.c:328: (Each undeclared identifier is reported only once
plperl.c:328: for each function it appears in.)
plperl.c:334: `na' undeclared (first use in this function)
plperl.c: In function `plperl_call_perl_func':
plperl.c:444: `errgv' undeclared (first use in this function)
plperl.c:450: `na' undeclared (first use in this function)
plperl.c: In function `plperl_func_handler':
plperl.c:654: `na' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:2192: `na' undeclared (first use in this function)
make: *** [plperl.o] Error 1

What's that may be?

turing2000

#2Wade D. Oberpriller
oberpwd@anubis.network.com
In reply to: turing2000 (#1)
Re:

I ran into these same errors with Perl-5.6.0. Has anyone built PLPerl with
Perl-5.6.0? (I ended up going back to Perl 5.005_03).

Wade Oberpriller

Show quoted text

Sorry for my previos letter, it was wrong.

Deal ( question ) are consist of:

[plperl]# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/plperl
mkdir blib/lib/auto
mkdir blib/lib/auto/plperl
gcc -c -I../../../src/include -I../../../src/backend -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/perl/lib/5.6.0/i686-linux/CORE plperl.c
In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:467: warning: `USE_LOCALE' redefined
../../../src/include/config.h:214: warning: this is the location of the previous definition
In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:2027: warning: `DEBUG' redefined
../../../src/include/utils/elog.h:22: warning: this is the location of the previous definition
plperl.c: In function `plperl_create_sub':
plperl.c:328: `errgv' undeclared (first use in this function)
plperl.c:328: (Each undeclared identifier is reported only once
plperl.c:328: for each function it appears in.)
plperl.c:334: `na' undeclared (first use in this function)
plperl.c: In function `plperl_call_perl_func':
plperl.c:444: `errgv' undeclared (first use in this function)
plperl.c:450: `na' undeclared (first use in this function)
plperl.c: In function `plperl_func_handler':
plperl.c:654: `na' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:2192: `na' undeclared (first use in this function)
make: *** [plperl.o] Error 1

What's that may be?

turing2000

#3Callis, Adam
acallis@UU.NET
In reply to: Wade D. Oberpriller (#2)
RE:

Hello,
on my Solaris 2.6, Perl 5.6.0 I was able to get it to compile

The commands are as follows ->
perl Makefile.PL POLLUTE=1
gmake
gmake install

Once I get it that far, I have to set my enviroment var

LD_RUN_PATH = /usr/local/pgsql/lib
LD_LIBRARY_PATH = /usr/local/pgsql/lib
PGLIB = /usr/local/pgsql/lib
PGDATA = /usr/local/pgsql/data
Then I run createlang plperl template1

Then I run postmaster and it runs just fine.

I created the default function -> totalcomp and when I run it I get this ->

Can't locate 6.0/.6.0/ in @INC (@INC contains:
/usr/local/lib/perl5/5.6.0/sun4-solaris /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .) at -e
line 1.
ERROR: creation of function failed : (in cleanup) Can't call method "0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .) at -e
line 1.
" without a package or object reference at -e line 1.

Anyone else this far that can help me through it?

Thanks
Adam

-----Original Message-----
From: oberpwd@anubis.network.com
To: turing2000@mail.ru
Cc: pgsql-general@postgresql.org
Sent: 11/27/00 10:30 AM
Subject: Re: [GENERAL]

I ran into these same errors with Perl-5.6.0. Has anyone built PLPerl
with
Perl-5.6.0? (I ended up going back to Perl 5.005_03).

Wade Oberpriller

Sorry for my previos letter, it was wrong.

Deal ( question ) are consist of:

[plperl]# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/plperl
mkdir blib/lib/auto
mkdir blib/lib/auto/plperl
gcc -c -I../../../src/include -I../../../src/backend

-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic
-I/usr/local/perl/lib/5.6.0/i686-linux/CORE plperl.c

In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:467: warning:

`USE_LOCALE' redefined

../../../src/include/config.h:214: warning: this is the location of

the previous definition

In file included from plperl.c:76:
/usr/local/perl/lib/5.6.0/i686-linux/CORE/perl.h:2027: warning:

`DEBUG' redefined

../../../src/include/utils/elog.h:22: warning: this is the location of

the previous definition

Show quoted text

plperl.c: In function `plperl_create_sub':
plperl.c:328: `errgv' undeclared (first use in this function)
plperl.c:328: (Each undeclared identifier is reported only once
plperl.c:328: for each function it appears in.)
plperl.c:334: `na' undeclared (first use in this function)
plperl.c: In function `plperl_call_perl_func':
plperl.c:444: `errgv' undeclared (first use in this function)
plperl.c:450: `na' undeclared (first use in this function)
plperl.c: In function `plperl_func_handler':
plperl.c:654: `na' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:2192: `na' undeclared (first use in this function)
make: *** [plperl.o] Error 1

What's that may be?

turing2000

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Wade D. Oberpriller (#2)
Re:

plperl.c: In function `plperl_create_sub':
plperl.c:328: `errgv' undeclared (first use in this function)
plperl.c:328: (Each undeclared identifier is reported only once
plperl.c:328: for each function it appears in.)
plperl.c:334: `na' undeclared (first use in this function)
plperl.c: In function `plperl_call_perl_func':
plperl.c:444: `errgv' undeclared (first use in this function)
plperl.c:450: `na' undeclared (first use in this function)
plperl.c: In function `plperl_func_handler':
plperl.c:654: `na' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:2192: `na' undeclared (first use in this function)
make: *** [plperl.o] Error 1

For recent Perls, you need to configure plperl correctly:

perl Makefile.PL POLLUTE=1
make all
make install

The POLLUTE hack won't be necessary anymore in 7.1, but for now it is.

regards, tom lane