threads / discuss / 38640

Build error with current source release

Subject: Build error with current source release

## tl;dr

4 messages between Feb 24, 2015 and Feb 25, 2015.

replies: 3people: 4as markdown or json

J. R. Westmoreland· Feb 24, 2015, 14:23 UTC · lore
Hi
I hope it is okay to ask such a question here.

I cloned the current source tree and tried to build it and I get the following error. Could someone tell me why and if there is an easy way to fix it? I’m running on a Mac and everything ran fine up to this error. Is is an excerpt from my typescript file.

Script started on Mon Feb 23 13:43:01 2015
    XMLTO git-add.1
xmlto: /Users/jr/Documents/projects/git/Documentation/git-add.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/Users/jr/Documents/projects/git/Documentation/git-add.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
                                                                               ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
Document /Users/jr/Documents/projects/git/Documentation/git-add.xml does not validate
make[1]: *** [git-add.1] Error 13
Script done on Mon Feb 23 13:43:33 2015
Thanks in advance for suggestions or solutions.

Best, J. R. Westmoreland

Dan Johnson· Feb 24, 2015, 18:46 UTC · re: J. R. Westmoreland · lore

Re: Build error with current source release

On Tue, Feb 24, 2015 at 9:23 AM, J. R. Westmoreland <jr@jrw.org> wrote:
Show 15 quoted lines
> Hi
>
> I hope it is okay to ask such a question here.
>
> I cloned the current source tree and tried to build it and I get the following error.
> Could someone tell me why and if there is an easy way to fix it?
> I’m running on a Mac and everything ran fine up to this error. Is is an excerpt from my typescript file.
>
> Script started on Mon Feb 23 13:43:01 2015
>     XMLTO git-add.1
> xmlto: /Users/jr/Documents/projects/git/Documentation/git-add.xml does not validate (status 3)
> xmlto: Fix document syntax or use --skip-validation option
> I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
> /Users/jr/Documents/projects/git/Documentation/git-add.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
> D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"

Can you open this link in your browser/do you need a proxy server to connect to the internet? When I navigate to that URL it loads for me; I'm wondering if this is a firewall preventing you from accessing the dtd

Junio C Hamano· Feb 24, 2015, 19:06 UTC · re: J. R. Westmoreland · lore

Re: Build error with current source release

"J. R. Westmoreland" <jr@jrw.org> writes:
> I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
> /Users/jr/Documents/projects/git/Documentation/git-add.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"

It has been long since I had to deal with a problem like this in my set-up but it was a host configuration error that always wanted to download these docbook DTDs by not having proper XML catalog entries (and failing to download them, which as you can see is the error you are getting).

Sorry, no, I do not do Macintoshes, so even if I remember exact steps I took to fix my host configuration error several years ago on my Debian box, I suspect that the solution would not apply to you.

John Szakmeister· Feb 25, 2015, 10:30 UTC · re: J. R. Westmoreland · lore

Re: Build error with current source release

On Tue, Feb 24, 2015 at 9:23 AM, J. R. Westmoreland <jr@jrw.org> wrote:
Show 6 quoted lines
> Hi
>
> I hope it is okay to ask such a question here.
>
> I cloned the current source tree and tried to build it and I get the following error.
> Could someone tell me why and if there is an easy way to fix it?

If you aren't opposed to using Homebrew, then I believe installing the docbook package will help you here. I installed xmlto that way, which automatically brought in the docbook packages for me.

-John

← back to recent threads