Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 3016 invoked from network); 24 Jan 2006 19:40:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 19:40:23 -0000 Received: (qmail 45803 invoked by uid 500); 24 Jan 2006 19:40:22 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 45788 invoked by uid 500); 24 Jan 2006 19:40:22 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 45777 invoked by uid 99); 24 Jan 2006 19:40:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 11:40:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [81.0.228.129] (HELO ns.sofist.cz) (81.0.228.129) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 11:40:20 -0800 Received: (qmail 30730 invoked from network); 24 Jan 2006 19:57:16 +0100 Received: from localhost (127.0.0.1) by localhost with SMTP; 24 Jan 2006 19:57:16 +0100 Received: from ns.sofist.cz ([127.0.0.1]) by localhost (ns.sofist.cz [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 29485-12 for ; Tue, 24 Jan 2006 19:57:12 +0100 (CET) Received: (qmail 30720 invoked by uid 201); 24 Jan 2006 18:57:12 -0000 Received: from r3c210.chello.upc.cz (HELO ?192.168.1.9?) (213.220.194.210) by rumcajz.pcv.cz with SMTP; 24 Jan 2006 18:57:12 -0000 Message-ID: <43D68285.4050303@robert.cz> Date: Tue, 24 Jan 2006 20:39:49 +0100 From: RobertCZ User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerald Richter CC: embperl@perl.apache.org Subject: Re: Redefining common tags? (partial solution) References: <20060124183547.8D303412302@lnx1.i.ecos.de> In-Reply-To: <20060124183547.8D303412302@lnx1.i.ecos.de> Content-Type: multipart/alternative; boundary="------------030109070206050504030808" X-Virus-Scanned: amavisd-new at ns.sofist.cz X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------030109070206050504030808 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Gerald Richter wrote: >>Missing directory >>/usr/src/cpan/Embperl-2.1.0/xsbuilder/tables/Embperl at >>/usr/lib/perl5/vendor_perl/5.8.6/ExtUtils/XSBuilder/ParseSourc >>e.pm line 494. >> >> > >A sorry, I forgot that this directory is not part of the tar.gz, please run > perl xsbuilder/source_scan.pl >before > > Hmm, this is starting to be - ehm - fun... Make test is OK, but it refuses to work: [Tue Jan 24 20:40:10 2006] [error] Embperl::Thread object version 2.0.1 does not match bootstrap parameter 2.1.0 at /usr/lib/perl5/site_perl/5.8.6/i386-linux/Embperl.pm line 107.\nCompilation failed in require at /etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nBEGIN failed--compilation aborted at /etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nCompilation failed in require at (eval 2) line 1.\n I can see the old ebuild 2.0.1 version (in .../vendor_perl/ ) is being used together with the 2.1.0 new version (in .../site_perl/). Given site_perl is in @INC before vendor_perl I'm confused why this is happening. Anyway, after uninstalling everything I have hopefully working patched Embperl, now I have: -------------------------- Syntax: ... $self -> AddTagBlock ('h2', ['color'], undef, undef, { perlcode => q{ { $epreq -> component -> curr_esc_mode = 0; _ep_rp(%$x%, " Escape( %&'color%, 2 ) . "&text=" . $epreq -> Escape( XML::Embperl::DOM::Node::iChildsText(%$n%), 2 ) . "\">"); }} }) ; .... ----------------------- hotel_en.html [$ syntax + ParkhotelPruhonice $]

111


222


333


    444


    555




    ... ------------------------ [Tue Jan 24 21:26:08 2006] [error] [23740]ERR: 24: Error in Perl code: Can't modify non-lvalue subroutine call at /home/www/parkhotel-pruhonice/new/hotel_en.html line 4. --------------030109070206050504030808 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Gerald Richter wrote:
    Missing directory 
    /usr/src/cpan/Embperl-2.1.0/xsbuilder/tables/Embperl at 
    /usr/lib/perl5/vendor_perl/5.8.6/ExtUtils/XSBuilder/ParseSourc
    e.pm line 494.
        
    
    A sorry, I forgot that this directory is not part of the tar.gz, please run
     perl xsbuilder/source_scan.pl
    before
      

    Hmm, this is starting to be - ehm - fun... Make test is OK, but it refuses to work:

    [Tue Jan 24 20:40:10 2006] [error] Embperl::Thread object version 2.0.1 does not match bootstrap parameter 2.1.0 at /usr/lib/perl5/site_perl/5.8.6/i386-linux/Embperl.pm line 107.\nCompilation failed in require at /etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nBEGIN failed--compilation aborted at /etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nCompilation failed in require at (eval 2) line 1.\n

    I can see the old ebuild 2.0.1 version (in .../vendor_perl/ ) is being used together with the 2.1.0 new version (in .../site_perl/). Given site_perl is in @INC before vendor_perl I'm confused why this is happening. Anyway, after uninstalling everything I have hopefully working patched Embperl, now I have:

    --------------------------
    Syntax:
    ...
    ��� $self -> AddTagBlock ('h2', ['color'], undef, undef, { perlcode => q{
    ��� ��� ��� { $epreq -> component -> curr_esc_mode = 0;
    ��� ��� ��� ��� _ep_rp(%$x%, "<img src=\"/img/h2.png?color="
    ��� ��� ��� ��� . $epreq -> Escape( %&'color%, 2 )
    ��� ��� ��� ��� . "&text="
    ��� ��� ��� ��� . $epreq -> Escape( XML::Embperl::DOM::Node::iChildsText(%$n%), 2 )
    ��� ��� ��� ��� . "\">");
    ��� ��� ��� }}
    ��� ��� }) ;
    ....
    -----------------------
    hotel_en.html
    [$ syntax + ParkhotelPruhonice $]

    <h2 color="#F00">111</h2><br>
    <h2>222</h2><br>
    <h2>333</h2><br>
    <ul></ul>
    <h2>444</h2><br>
    <h2>555</h2><br>
    <hr>
    <img src="/img/h2.png?color=&text=999"><br>
    ...
    ------------------------

    [Tue Jan 24 21:26:08 2006] [error] [23740]ERR:� 24:� Error in Perl code: Can't modify non-lvalue subroutine call at /home/www/parkhotel-pruhonice/new/hotel_en.html line 4.



    --------------030109070206050504030808--