Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils) - Mailing list pgsql-bugs

From Alex Hunsaker
Subject Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils)
Date
Msg-id CAFaPBrSUnaVPuWA1H5ALUr0dz=q5VUHqdsswV5C5pDNciMKaRw@mail.gmail.com
Whole thread Raw
In response to BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils)  ("init-po fails for plperl due to invalid xsubpp path" <tv@fuzzy.cz>)
Responses Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils)  ("Tomas Vondra" <tv@fuzzy.cz>)
List pgsql-bugs
On Sun, Sep 4, 2011 at 13:48, init-po fails for plperl due to invalid
xsubpp path <tv@fuzzy.cz> wrote:
>
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0init-po fails for plperl due to i=
nvalid xsubpp path
> (contains ExtUtils)
> Details:
>
> When I try to prepare a fresh .pot file for plpgsql, it fails like this
>
> =C2=A0$ ./configure --enable-nls=3Dcs
> =C2=A0$ cd src/pl/plperl
> =C2=A0$ gmake init-po
> =C2=A0'/usr/bin/perl' /ExtUtils/xsubpp -typemap /ExtUtils/typemap SPI.xs =
>SPI.c
> =C2=A0Can't open perl script "/ExtUtils/xsubpp": Directory or file does n=
ot
> exist.
> =C2=A0gmake: *** [SPI.c] Error 2
> =C2=A0gmake: *** Deleting file `SPI.c'
>
> This is due to invalid xsubpp/typemap paths - the xsubpp is available here
>
> =C2=A0$ which xsubpp
> =C2=A0/usr/bin/xsubpp
>
> but the GNUmakefile contains this:
>
> $(PERL) $(perl_privlibexp)/ExtUtils/xsubpp -typemap
> $(perl_privlibexp)/ExtUtils/typemap $< >$@


Erm... we have been using perl_privlibexp basically forever... What
version of perl is this? It might be helpful if you could provide the
output of the following:
$ perl -e 'use Config; print "$Config{privlibexp}\n";'
$ ls `perl -e 'use Config; print "$Config{privlibexp}\n";'`/ExtUtils

I get:
$ perl -e 'use Config; print "$Config{privlibexp}\n";'
/usr/share/perl5/core_perl

$ ls `perl -e 'use Config; print "$Config{privlibexp}\n";'`/ExtUtils
.... [ snip ]
MM_VOS.pm
MM_Win32.pm
MM_Win95.pm
MY.pm
Packlist.pm
ParseXS.pm
testlib.pm
typemap
xsubpp

Here we can see both typemap and xsubpp where we expect them.

> After changing to
>
> =C2=A0xsubpp -typemap
> /usr/src/linux-2.6.38-gentoo-r6/tools/perf/scripts/perl/Perf-Trace-Util/t=
ype
> map $< >$@

Why are you using that for the typemap? it looks like you just used
find and decided to use the first file it found named 'typemap'... It
would be interesting to know where the real typemap file is. Maybe you
could paste the output of find /usr -name typemap?

pgsql-bugs by date:

Previous
From: "init-po fails for plperl due to invalid xsubpp path"
Date:
Subject: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils)
Next
From: "Tomas Vondra"
Date:
Subject: Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils)