Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I followed these (Linux From Scratch) instructions to test my build of DocBook DSSSL, and I get this:

$ onsgmls -sv test.sgm
onsgmls:I: "OpenSP" version "1.5.2"
onsgmls:test.sgm:1:61:W: cannot generate system identifier for public text "-//Davenport//DTD DocBook V3.0//EN"
onsgmls:test.sgm:1:61:E: reference to entity "CHAPTER" for which no system identifier could be generated
onsgmls:test.sgm:1:0: entity was defined here
onsgmls:test.sgm:1:61:E: DTD did not contain element declaration for document type name
onsgmls:test.sgm:2:8:E: element "CHAPTER" undefined
onsgmls:test.sgm:2:15:E: element "TITLE" undefined
onsgmls:test.sgm:3:5:E: element "PARA" undefined

I have tried to retrace my steps by uninstalling and reinstalling the dependencies... without success.

share|improve this question
Is this still a relevant question or are you past this? – Caleb Jun 20 '11 at 10:50
Am not yet past it. It's a major roadblock to building GNOME on LFS for me. – Tshepang Jun 20 '11 at 10:52
Have you checked the bug tracker for DocBook and OpenSP for anything related? – Caleb Jun 20 '11 at 10:56
I have checked Google, LFS mailing lists and LFS IRC channel. That's all. – Tshepang Jun 20 '11 at 11:03

The LFS page instructs to install DocBook SGML DTD 3.1 and 4.5, but the document you are building evidently uses DocBook SGML DTD 3.0. So you need to get that version (or adjust the test document). The instructions you are following are faulty in that regard.

share|improve this answer

Check if your distribution already has packages for docbook. Looking at Debian/Ubuntu I see packages for docbook, docbook-dsssl, and several others. FreeBSD has Docbook in ports and I'm sure many other Linux distribution have it as well. This will be must easier than installing Docbook from source.

share|improve this answer
You might have missed the part that this is LFS. – Tshepang Apr 20 '11 at 6:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.