Re: [PHP-GTK-DOC] Build error - Variable 'class' has not been declared

[email protected] (Jared Hurn) Thu, 11 Oct 2007 08:53:13 -0700 (PDT)
Newsgroups php.gtk.doc
Message-ID <[email protected]>
Is there any plan to support a build on a newer version of xsltproc, or should I just drop the xsltproc package and compile an older version? Or is there at least a way to make the newer version work, just so I can verify my patches build?
 
- Jared

----- Original Message ----
From: Fernando Correa da Conceição <[email protected]>
To: Jared Hurn <[email protected]>
Cc: [email protected]
Sent: Wednesday, October 10, 2007 6:55:49 PM
Subject: Re: [PHP-GTK-DOC] Build error - Variable 'class' has not been declared


Jared Hurn escreveu:
> I have been trying to get together a patch to submit to the list for review, however I can't get the manual to build from a clean check out. Below is a step by step walk through of what I'm doing and what I'm getting:
>
>   
>>> cvs -d :pserver:[email protected]:/repository co -P php-gtk-doc
>>> cd php-gtk-doc
>>> autoconf
>>> ./configure
>>>       
> checking for xsltproc... /usr/bin/xsltproc
> checking for php... /usr/bin/php
> checking for language... en (default)
> checking whether to build silently... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating ./scripts/manual.xml
> config.status: creating ./scripts/mtoc.xml
> config.status: creating ./scripts/testmanual.xml
> config.status: creating ./stylesheets/html/chunk.xsl
> config.status: creating ./stylesheets/html/phpweb.xsl
> config.status: creating ./stylesheets/html/updates.xsl
> config.status: creating ./scripts/genchapterents.php
> creating chapters.ent
> creating name_to_id.xsl
>   
>>> make
>>>       
> /usr/bin/xsltproc --param base.dir "'build/en/html/'" --xinclude ./stylesheets/html/chunk.xsl ./scripts/manual
> .xml
> Writing build/en/html/copyright.html for legalnotice
> Writing build/en/html/preface.html for book
> Writing build/en/html/tutorials.installation.windows.html for sect1
> Writing build/en/html/tutorials.installation.linux.html for sect1
> Writing build/en/html/tutorials.installation.macosx.html for sect1
> Writing build/en/html/tutorials.installation.macosx-stepbystep.html for sect1
> Writing build/en/html/tutorials.installation.html for chapter
> runtime error: file stylesheets/html/name_to_id.xsl line 52 element choose
> Variable 'class' has not been declared.
> make: *** [build/en/html/index.html] Error 10
>
>
>
> This is a clean checkout from the repository, I haven't modified any files. I was able to get the manual to build by modifying the name_to_id.xsl file, however, I was told that I shouldn't have to modify this file to get the manual to build properly. Below is how my xsltproc is linked:
>
>   
>>> ldd /usr/bin/xsltproc
>>>       
>         libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00002ba28dc76000)
>         libexslt.so.0 => /usr/lib/libexslt.so.0 (0x00002ba28dead000)
>         libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00002ba28e0bf000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x00002ba28e311000)
>         libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00002ba28e52a000)
>         libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00002ba28e72d000)
>         libm.so.6 => /lib/libm.so.6 (0x00002ba28ea6e000)
>         libc.so.6 => /lib/libc.so.6 (0x00002ba28ecf1000)
>         libdl.so.2 => /lib/libdl.so.2 (0x00002ba28f042000)
>         libz.so.1 => /usr/lib/libz.so.1 (0x00002ba28f246000)
>         /lib64/ld-linux-x86-64.so.2 (0x00002ba28da59000)
>
>   
You will not build the documentations with any recent version of 
xsltproc. If you use an old version of xsltproc it build without any 
error. I am using 1.1.0 and works well for me. The version on ubuntu 
dapper works well too, but I do not remember the number.

Fernando Correa da Conceição

-- 
PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php