# Build error with current source release

4 messages from 2015-02-24 to 2015-02-25. Participants: J. R. Westmoreland, Dan Johnson, Junio C Hamano, John Szakmeister.
Thread: https://gitlist.dev/t/38640

## J. R. Westmoreland, 2015-02-24 14:23

Subject: Build error with current source release
Message-ID: <03B16590-C319-478F-B19C-7EF3B51952BC@jrw.org>
URL: https://gitlist.dev/e/03B16590-C319-478F-B19C-7EF3B51952BC%40jrw.org

```
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, 2015-02-24 18:46

Subject: Re: Build error with current source release
Message-ID: <CAPBPrnu74X8p=p+dNz+hYOmc5uiuDiQtTbgXdWt5QBYHv=b2Ug@mail.gmail.com>
URL: https://gitlist.dev/e/CAPBPrnu74X8p%3Dp%2BdNz%2BhYOmc5uiuDiQtTbgXdWt5QBYHv%3Db2Ug%40mail.gmail.com
In-Reply-To: <03B16590-C319-478F-B19C-7EF3B51952BC@jrw.org>

```
On Tue, Feb 24, 2015 at 9:23 AM, J. R. Westmoreland <jr@jrw.org> wrote:
> 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, 2015-02-24 19:06

Subject: Re: Build error with current source release
Message-ID: <xmqqvbirqgcx.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqvbirqgcx.fsf%40gitster.dls.corp.google.com
In-Reply-To: <03B16590-C319-478F-B19C-7EF3B51952BC@jrw.org>

```
"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, 2015-02-25 10:30

Subject: Re: Build error with current source release
Message-ID: <CAEBDL5VeKNV-RN-Q8MnC3PYRAdWa2=LbPEfRM+tcywUtFFHvmw@mail.gmail.com>
URL: https://gitlist.dev/e/CAEBDL5VeKNV-RN-Q8MnC3PYRAdWa2%3DLbPEfRM%2BtcywUtFFHvmw%40mail.gmail.com
In-Reply-To: <03B16590-C319-478F-B19C-7EF3B51952BC@jrw.org>

```
On Tue, Feb 24, 2015 at 9:23 AM, J. R. Westmoreland <jr@jrw.org> wrote:
> 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

```
