1/24/2011

Compile Bochs with 10.4

之前在VitrualBox上安裝了ubuntu 9.10, compile和run都沒什麼太大問題.

但今天想在10.4重新安裝, 依照前一次的筆記照做, 發現在compile docbook時發生error :

Working on: /home/dicky/1Work/c-square/bochs-2.4.5/doc/docbook/./user/user.dbk
openjade:/home/dicky/1Work/c-square/bochs-2.4.5/doc/docbook/./user/user.dbk:3863:72:E: character "_" is not allowed in the value of attribute "LINKEND"
openjade:/home/dicky/1Work/c-square/bochs-2.4.5/doc/docbook/./user/user.dbk:3921:25:E: character "_" is not allowed in the value of attribute "ID"
openjade:/home/dicky/1Work/c-square/bochs-2.4.5/doc/docbook/./user/user.dbk:3960:25:E: character "_" is not allowed in the value of attribute "ID"
openjade:/home/dicky/1Work/c-square/bochs-2.4.5/doc/docbook/./user/user.dbk:3968:66:E: character "_" is not allowed in the value of attribute "LINKEND"
make[1]: *** [user/index.html] Error 8

滿明顯是"_"這個底線造成了錯誤, 可能是哪裡的文件沒定義該符號的使用

去官方網站查了一下, 才知道原來這是己知Bug, 但他們並不絕得是很大的問題所以並沒有在2.4.5 加入Fix.....(可能是覺得這是SGML的錯誤...跟他們沒關係= =)

Tracker:Bugs

上面有提供關於SGML的error & waring排除錯誤的網址, 其中有兩行解釋的很明白 :

value of attribute "LINKEND" must be a single token:


the label you used for a section contains spaces. Change spaces to, say, underscores or dashes.

value of attribute "ID" must be a single token:


you used a cross-reference to a label that contains spaces. Do not change the cross-reference. Change the label: change spaces to, say, underscores or dashes.



依照上面的解釋...把底線改成"-" or "~"就可以了 :)

No comments:

Post a Comment