Re: Compile failure in plperl - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Compile failure in plperl
Date
Msg-id 200407042023.i64KNPk23073@candle.pha.pa.us
Whole thread Raw
In response to Compile failure in plperl  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Compile failure in plperl
List pgsql-hackers
Andrew Dunstan wrote:
>
> 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).

With your patch I now 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 
    ar cr libplperl.a `lorder plperl.o spi_internal.o SPI.o | tsort`
    ranlib libplperl.a
    gcc -O2 -fno-strict-aliasing -O1 -Wpointer-arith -Wcast-align -fpic -shared -Wl,-x,-soname,libplperl.so.0 plperl.o
spi_internal.oSPI.o -L../../../src/port -L/usr/local/lib -L/usr/contrib/lib -L/usr/X11/lib -L/usr/local/lib
/usr/libdata/perl5/5.00503/i386-bsdos/auto/DynaLoader/DynaLoader.a-L/usr/libdata/perl5/5.00503/i386-bsdos/CORE -lperl
-ldl-lm -lc  -Wl,-rpath,/usr/libdata/perl5/5.00503/i386-bsdos/CORE -lc -Wl,-rpath,/usr/local/pgsql/lib -o
libplperl.so.0.0
    spi_internal.o: In function `Perl_grok_numeric_radix':
    spi_internal.o(.text+0x128): multiple definition of `Perl_grok_numeric_radix'
    plperl.o(.text+0x128): first defined here
    spi_internal.o: In function `Perl_grok_number':
    spi_internal.o(.text+0x1e8): multiple definition of `Perl_grok_number'
    plperl.o(.text+0x1e8): first defined here
    SPI.o: In function `Perl_grok_numeric_radix':
    SPI.o(.text+0x128): multiple definition of `Perl_grok_numeric_radix'
    plperl.o(.text+0x128): first defined here
    SPI.o: In function `Perl_grok_number':
    SPI.o(.text+0x1e8): multiple definition of `Perl_grok_number'
    plperl.o(.text+0x1e8): first defined here
    gmake[3]: *** [libplperl.so.0.0] 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

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers by date:

Previous
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: [Re] Re: PREPARE and transactions
Next
From: Andrew Dunstan
Date:
Subject: Re: Compile failure in plperl