libevent-book icon indicating copy to clipboard operation
libevent-book copied to clipboard

PDF does not build

Open tcurdt opened this issue 13 years ago • 3 comments

Seems like there is a problem with asciidoc 8.6.3

  $ make pdf
  a2x -f pdf LibeventBook.txt
  a2x: ERROR: xmllint --nonet --noout --valid /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml returned non-zero exit status 4
  make: *** [LibeventBook.pdf] Error 1

tcurdt avatar Feb 27 '11 17:02 tcurdt

Maybe running with a2x with --verbose and/or --no-xmllint would reveal the problem? "Exit code 4" is not really enough information to figure out what the problem is or what to do about it.

Another way to find the problem would be to check one chapter at a time to find a part that doesn't build, then to try chopping the chapter into pieces until you find a small piece that doesn't build, and so on until the problematic part is isolated.

nmathewson avatar Feb 28 '11 17:02 nmathewson

Sorry for not really useful bug report before. Indeed --version gives more information

  asciidoc: R9_dns_server.c: line 95: filtering: "/usr/local/Cellar/asciidoc/8.6.3/etc/asciidoc/filters/code/code-filter.py" -b docbook -l C
  a2x: executing: xmllint --nonet --noout --valid /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml
  I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
  /Users/tcurdt/Desktop/iProxy3/libevent-book/LibeventBook.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"
                                                                                 ^
  /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml:6: validity error : Validation failed: no DTD found !
  <article lang="en">
                    ^
  a2x: ERROR: xmllint --nonet --noout --valid /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml returned non-zero exit status 4
  make: *** [LibeventBook.pdf] Error 1

Using --no-xmllint indeed gets me further

  a2x: executing: dblatex -t pdf -p /usr/local/Cellar/asciidoc/8.6.3/etc/asciidoc/dblatex/asciidoc-dblatex.xsl -s /usr/local/Cellar/asciidoc/8.6.3/etc/asciidoc/dblatex/asciidoc-dblatex.sty  -V  /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml
  /bin/sh: dblatex: command not found
  a2x: ERROR: dblatex -t pdf -p /usr/local/Cellar/asciidoc/8.6.3/etc/asciidoc/dblatex/asciidoc-dblatex.xsl -s /usr/local/Cellar/asciidoc/8.6.3/etc/asciidoc/dblatex/asciidoc-dblatex.sty  -V  /Users/tcurdt/Desktop/libevent-book/LibeventBook.xml returned non-zero exit status 127

With some luck it just needs http://dblatex.sourceforge.net/

tcurdt avatar Mar 01 '11 00:03 tcurdt

Let's hope so. Also, that "no DTD found !" thing sounds like maybe your docbook installation is missing (or failing to find) some data it needs.

nmathewson avatar Mar 01 '11 02:03 nmathewson