[Po4a-devel] Error building 0.41 on FreeBSD

Denis Barbier bouzim at gmail.com
Wed Dec 29 12:54:52 UTC 2010


On 2010/12/29 Renato Botelho wrote:
> On Tue, Dec 28, 2010 at 3:27 PM, Denis Barbier <bouzim at gmail.com> wrote:
>> On 2010/12/27 Renato Botelho wrote:
>>> I'm trying to update po4a to 0.41 on FreeBSD ports collection, but
>>> i got following error when i try to build it:
>>>
>>> Discard _build/pod/3/ru/lib/Locale/Po4a/Xml.pm (36 of 161 strings;
>>> only 22.36% translated; need 80%).
>>> Processing untranslated files for po4a-build.xml (1). . .
>>> I/O error : Attempt to load network entity
>>> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
>>> warning: failed to load external entity
>>> "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
>>> cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
>>> Died at Po4aBuilder.pm line 32.
>>> *** Error code 2
>>>
>>> If I run manually a wget
>>> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
>>> i can download it without problems.
>>>
>>> BTW, it's not common to download stuffs during configure or
>>> build time on FreeBSD ports, is there a way i can download
>>> those files before build process start?
>>
>> Hello,
>>
>> That's strange, we run xsltproc with the --nonet option in order to
>> not download stylesheets.
>> Can you please run
>>  sh -x ./share/po4a-build -f po4a-build.conf
>> to see which command barfs?
>
> It's really using --nonet option as you mentioned, but it seems to be trying
> to download anyway, maybe it's a xsltproc problem?
>
> + [ po4a = po4a ]
> + eval_gettext 'Processing untranslated files for $X (1). . .'
> + gettext 'Processing untranslated files for $X (1). . .'
> + envsubst --variables 'Processing untranslated files for $X (1). . .'
> + export PATH X
> + envsubst 'Processing untranslated files for $X (1). . .'
> Processing untranslated files for po4a-build.xml (1). . .+ echo
>
> + MANDIR=_build/po4a/man/man1/
> + XML_CATALOG_FILES=/etc/xml/catalog xsltproc -o _build/po4a/man/man1/
> --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> share/doc//po4a-build.xml
> I/O error : Attempt to load network entity
> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> warning: failed to load external entity
> "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
> cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> Died at Po4aBuilder.pm line 32.
> *** Error code 2

I can reproduce this error message when setting a wrong path in
XML_CATALOG_FILES; it is likely that your XML catalogs are not located
in /etc/xml/catalog.  I do not understand why this variable is set,
xsltproc should normally know about system catalogs. You can try to
remove all lines setting this variable in share/po4a-build.

Denis



More information about the Po4a-devel mailing list