[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] Compiling on OS-X



I'm trying to compile nbd-server on OS-X with brew.

I get this message (running what autogen.sh runs):

nimrod:man amb$ LC_ALL=C docbook2man nbd-server.1.in.sgml
nbd-server.1.in.sgml:1: parser error : StartTag: invalid element name
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
 ^
nbd-server.1.in.sgml:1: parser error : Extra content at the end of the document
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
 ^
unable to parse nbd-server.1.in.sgml

no element found at line 1, column 0, byte 0 at /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level/XML/Parser.pm line 187.


The first of these is (I think) because '<!doctype ...' should be '<!DOCTYPE ...'

But then I get loads of other errors:

nimrod:man amb$ LC_ALL=C docbook2man nbd-server.1.in.sgml
nbd-server.1.in.sgml:1: parser error : SystemLiteral " or ' expected
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
                                                           ^
nbd-server.1.in.sgml:1: parser error : SYSTEM or PUBLIC, the URI is missing
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
                                                           ^
nbd-server.1.in.sgml:32: parser error : Entity 'dhemail' not defined
      &dhemail;
               ^
nbd-server.1.in.sgml:35: parser error : Entity 'dhfirstname' not defined
      &dhfirstname;
                   ^
nbd-server.1.in.sgml:36: parser error : Entity 'dhsurname' not defined
      &dhsurname;

Fundamentally it doesn't like the multiline DOCTYPE declaration.


On OS-X I'm using

$ docbook2man --version
/usr/local/bin/docbook2man (part of docbook2X 0.8.8)
$Revision: 1.12 $ $Date: 2006/04/14 17:29:04 $
<URL:http://docbook2x.sourceforge.net/>

Copyright (C) 2003-2004 Steve Cheng
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


On Ubuntu Linux (Trusty 14.04) I'm using:

$ docbook2man --version
DocBook-utils version 0.6.14 (jw version 1.1)


These appear to be completely different programs. I can't find the latter in brew.

So

1. Has anyone got this to compile with OS-X?

2. Is there a reason we make man-pages etc. at autogen.sh time, rather than post ./configure, where we could check whether docbook2man works?

-- 
Alex Bligh







Reply to: