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 22:04:01
Message-ID: 40E87ED1.3020701@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Ok. It's impossible for me to fix this by remote control - I need access
to some box with one of these old versions of perl so I can come up with
a clean solution.

Or did you revert the change that put "#include ppport.h" in SPI.xs?

cheers

andrew

Bruce Momjian wrote:

>Andrew Dunstan wrote:
>
>
>>That is *intensely* annoying. What on earth are these function bodies
>>doing in a .h file anyway? (Remember, I just used the standard utility
>>to generate the file).
>>
>>Anyway, here is a version with all that stuff cut out - I don't believe
>>we need any of it. Does this improve things?
>>
>>
>
>Nope. I get this failure:
>
> 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
> 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
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Jowett 2004-07-04 22:21:26 Re: [Re] Re: PREPARE and transactions
Previous Message Bruce Momjian 2004-07-04 21:58:50 Re: [HACKERS] Compile failure in plperl

Browse pgsql-patches by date

  From Date Subject
Next Message Stephan Szabo 2004-07-04 22:51:21 Re: [JDBC] Error in DatabaseMetaData.getColumns() with Views
Previous Message Bruce Momjian 2004-07-04 21:58:50 Re: [HACKERS] Compile failure in plperl