smuellerDD / libkcapi

Linux Kernel Crypto API User Space Interface Library
http://www.chronox.de/libkcapi
Other
164 stars 70 forks source link

make pdf fails #186

Open ZoltanFridrich opened 1 month ago

ZoltanFridrich commented 1 month ago

Running make pdf fails with the following error:

Makefile:2021: warning: overriding recipe for target 'lib/doc/bin/docproc'
Makefile:994: warning: ignoring old recipe for target 'lib/doc/bin/docproc'
/usr/bin/mkdir -p doc/pdf
HOME=/home/zfridric/upstream/libkcapi/doc/pdf /usr/bin/db2pdf -o doc/pdf lib/doc/libkcapi.xml
Using catalogs: /etc/sgml/xml-docbook.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /home/zfridric/upstream/libkcapi/lib/doc/libkcapi.xml
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:42:30:E: "1D6C2" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:43:30:E: "1D6C3" is not a character number in the document character set
.
.
.
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:84:30:E: "1D6C7" is not a character number in the document character set
make: *** [Makefile:2031: pdf-stamp] Error 8

This issue is caused by commit 5595ccacb8cafee35cfdd55d06c5fb9a75ee1a47 This seems to be caused by Jade not supporting Unicode-4 that Docbook 4.4 introduced.

smuellerDD commented 1 month ago

Am Donnerstag, 25. Juli 2024, 17:14:54 MESZ schrieb Zoltán Fridrich:

Hi Zoltán,

Running make pdf fails with the following error:

Makefile:2021: warning: overriding recipe for target 'lib/doc/bin/docproc' Makefile:994: warning: ignoring old recipe for target 'lib/doc/bin/docproc' /usr/bin/mkdir -p doc/pdf HOME=/home/zfridric/upstream/libkcapi/doc/pdf /usr/bin/db2pdf -o doc/pdf lib/doc/libkcapi.xml Using catalogs: /etc/sgml/xml-docbook.cat Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print Working on: /home/zfridric/upstream/libkcapi/lib/doc/libkcapi.xml jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:42:30:E: "1D6C2" is not a character number in the document character set jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:43:30:E: "1D6C3" is not a character number in the document character set . . . jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:84:30:E: "1D6C7" is not a character number in the document character set make: *** [Makefile:2031: pdf-stamp] Error 8

Thanks for reporting the issue. But I cannot reproduce it, albeit I had to change the invocation from db2pdf to docbook2pdf

$ rpm -qf /usr/bin/docbook2pdf docbook-utils-0.6.14-241.2.noarch

With this change, I can create the PDF nicely.

Can you check:

AC_PATH_PROG([DB2PDF], [docbook2pdf]) AC_PATH_PROG([DB2PS], [docbook2ps])

Thanks

This issue is caused by commit 5595ccacb8cafee35cfdd55d06c5fb9a75ee1a47 This seems to be caused by openjade not supporting Unicode-4 that Docbook 4.4 introduced.

Ciao Stephan

ZoltanFridrich commented 1 month ago

I tried the steps you suggested but it still fails for me with the same error.

$ rpm -qf /usr/bin/docbook2pdf docbook-utils-pdf-0.6.14-60.fc40.noarch

  1. cleaned up repository
  2. changed configure.ac as you mentioned
  3. ran $ autoreconf -i && ./configure && make pdf got the same error. I am using f40, the same error happens on c10s and probably on fedora rawhide too
smuellerDD commented 1 month ago

Am Donnerstag, 1. August 2024, 15:03:08 MESZ schrieb Zoltán Fridrich:

Hi Zoltán,

I tried the steps you suggested but it still fails for me with the same error.

$ rpm -qf /usr/bin/docbook2pdf docbook-utils-pdf-0.6.14-60.fc40.noarch

  1. cleaned up repository
  2. changed configure.ac as you mentioned
  3. ran $ autoreconf -i && ./configure && make pdf got the same error. I am using f40, the same error happens on c10s and probably on fedora rawhide too

Uhm, now I am unsure how to handle that. You said you found the offending character? Perhaps we can replace it?

Ciao Stephan

WOnder93 commented 1 month ago

I already reported this in the Fedora Bugzilla against docbook-utils, but it seems to be a tricky bug: https://bugzilla.redhat.com/show_bug.cgi?id=2258240

It might be best to stick with an older Docbook schema or to switch to a different format.