Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B4D29B5DC0C for ; Sun, 4 Sep 2011 19:57:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 21686-10 for ; Sun, 4 Sep 2011 22:57:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from elizabeth.gransy.com (elizabeth.gransy.com [89.187.132.199]) by mail.postgresql.org (Postfix) with ESMTP id C22C7B5DC09 for ; Sun, 4 Sep 2011 19:57:34 -0300 (ADT) Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id 5087315E42EF; Mon, 5 Sep 2011 00:57:33 +0200 (CEST) Received: from 78.45.133.255 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Mon, 5 Sep 2011 00:57:33 +0200 Message-ID: <6afa8296cbdb5921ea9b5da4103aebbb.squirrel@sq.gransy.com> In-Reply-To: References: <201109041948.p84Jmk0h003490@wwwmaster.postgresql.org> Date: Mon, 5 Sep 2011 00:57:33 +0200 Subject: Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils) From: "Tomas Vondra" To: "Alex Hunsaker" Cc: "init-po fails for plperl due to invalid xsubpp path" , pgsql-bugs@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/20 X-Sequence-Number: 31037 On 5 Září 2011, 0:27, Alex Hunsaker wrote: > On Sun, Sep 4, 2011 at 13:48, init-po fails for plperl due to invalid > xsubpp path wrote: >> >> Description:        init-po fails for plperl due to invalid xsubpp path >> (contains ExtUtils) >> Details: >> >> When I try to prepare a fresh .pot file for plpgsql, it fails like this >> >>  $ ./configure --enable-nls=cs >>  $ cd src/pl/plperl >>  $ gmake init-po >>  '/usr/bin/perl' /ExtUtils/xsubpp -typemap /ExtUtils/typemap SPI.xs >> >SPI.c >>  Can't open perl script "/ExtUtils/xsubpp": Directory or file does not >> exist. >>  gmake: *** [SPI.c] Error 2 >>  gmake: *** Deleting file `SPI.c' >> >> This is due to invalid xsubpp/typemap paths - the xsubpp is available >> here >> >>  $ which xsubpp >>  /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 OK, this returns /usr/lib/perl5/5.12.3 .... MM_VOS.pm MM_Win32.pm MM_Win95.pm MY.pm Packlist.pm ParseXS.pm testlib.pm typemap xsubpp So yes, it's almost the same as your results. >> After changing to >> >>  xsubpp -typemap >> /usr/src/linux-2.6.38-gentoo-r6/tools/perf/scripts/perl/Perf-Trace-Util/type >> 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? Well, basically yes - I've searched and used the file that matched the kernel. But the correct version is obviously in the /usr/lib/perl5/5.12.3 directory. Aha! When I run configure like this $ ./configure --with-perl --enable-nls=cs then it works, so obviously the "--with-perl" option is required. Shouldn't this behave a bit differently, e.g. not allowing "enable-nls" without "with-perl"? Allowing that and getting not-fully-working tree is not a good thing I guess ... Tomas