Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Compile failure in plperl

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>,Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>,"Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Compile failure in plperl
Date: 2004-07-04 13:55:04
Message-ID: 40E80C38.6060802@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
The problem is your old version of perl.

Please see if the attached patch fixes it (The one I sent in previously 
didn't apply cleanly - this one should).

thanks

andrew


Bruce Momjian wrote:

>I am getting a CVS HEAD compile failure in plperl:
>	
>	gmake[4]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/pl/tcl/modules'
>	gmake[3]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/pl/tcl'
>	gmake[3]: Entering directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/pl/plperl'
>	gcc -O2 -fno-strict-aliasing -O1 -Wpointer-arith -Wcast-align -fpic -I. -I/usr/libdata/perl5/5.00503/i386-bsdos/CORE -I../../../src/include -I/usr/local/include/readline -I/usr/contrib/include  -c -o plperl.o plperl.c
>	plperl.c: In function `plperl_get_keys':
>	plperl.c:417: warning: passing arg 3 of `Perl_av_store' makes pointer from integer without a cast
>	plperl.c: In function `plperl_get_elem':
>	plperl.c:452: warning: passing arg 2 of `Perl_hv_exists_ent' makes pointer from integer without a cast
>	plperl.c: In function `plperl_func_handler':
>	plperl.c:930: warning: passing arg 3 of `Perl_av_store' makes pointer from integer without a cast
>	gcc -O2 -fno-strict-aliasing -O1 -Wpointer-arith -Wcast-align -fpic -I. -I/usr/libdata/perl5/5.00503/i386-bsdos/CORE -I../../../src/include -I/usr/local/include/readline -I/usr/contrib/include  -c -o spi_internal.o spi_internal.c
>	/usr/bin/perl /usr/libdata/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/libdata/perl5/5.00503/ExtUtils/typemap SPI.xs >SPI.c
>	gcc -O2 -fno-strict-aliasing -O1 -Wpointer-arith -Wcast-align -fpic -I. -I/usr/libdata/perl5/5.00503/i386-bsdos/CORE -I../../../src/include -I/usr/local/include/readline -I/usr/contrib/include  -c -o SPI.o SPI.c
>	SPI.xs: In function `XS__spi_exec_query':
>	SPI.xs:51: `aTHX_' undeclared (first use in this function)
>	SPI.xs:51: (Each undeclared identifier is reported only once
>	SPI.xs:51: for each function it appears in.)
>	SPI.xs:51: syntax error before string constant
>	gmake[3]: *** [SPI.o] Error 1
>	gmake[3]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/pl/plperl'
>	gmake[2]: *** [all] Error 2
>	gmake[2]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/pl'
>	gmake[1]: *** [all] Error 2
>	gmake[1]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src'
>	gmake: *** [all] Error 2
>
>This is Perl version:
>
>	This is perl, version 5.005_03 built for i386-bsdos
>
>  
>

Attachment: ppport.patch
Description: text/x-patch (36.3 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Kaare RasmussenDate: 2004-07-04 16:41:33
Subject: Re: LinuxTag wrapup
Previous:From: Jean-Luc LachanceDate: 2004-07-04 12:53:55
Subject: Re: [GENERAL] Major PG news article

pgsql-patches by date

Next:From: Andrew DunstanDate: 2004-07-04 17:56:26
Subject: plperl spi_exec_query patch
Previous:From: Bruce MomjianDate: 2004-07-04 10:50:25
Subject: Compile failure in plperl

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group