Source: derivations
Version: 0.52.20100310-1
Severity: serious
Justification: fails to build from source

After fixing incompatibility with GCC 4.5 (see bug #615671), derivations still FTBFS:
| /usr/bin/make -C PDF PDF.o
| make[4]: Entering directory 
`/build/derivations-j8_fZI/derivations-0.52.20100310/btool/PDF'
| g++ -Wall -Wextra   -O2 -c PDF.cc -o PDF.o
| PDF.cc: In function 'int PDF::offset_last_xref_table(const PDF::PDF&)':
| PDF.cc:11:25: error: 'class XRef' has no member named 'getLastXRefPos'
| PDF.cc:12:1: warning: control reaches end of non-void function [-Wreturn-type]
| make[4]: *** [PDF.o] Error 1
| make[4]: Leaving directory 
`/build/derivations-j8_fZI/derivations-0.52.20100310/btool/PDF'
| make[3]: *** [PDF/PDF.o] Error 2
| make[3]: Leaving directory 
`/build/derivations-j8_fZI/derivations-0.52.20100310/btool'
| make[2]: *** [../btool/complete-pdf] Error 2
| make[1]: *** [tex/derivations.pdf] Error 2
| make: *** [build-stamp] Error 2
| dpkg-buildpackage: error: debian/rules build gave error exit status 2
| make[2]: Leaving directory 
`/build/derivations-j8_fZI/derivations-0.52.20100310/tex'
| make[1]: Leaving directory 
`/build/derivations-j8_fZI/derivations-0.52.20100310'

The attached patch fixed this. (Albeit, in order to access a method that is declared as private, it resorts to an ugly hack.)

--
Jakub Wilk
--- derivations-0.52.20100310.orig/btool/PDF/PDF.cc
+++ derivations-0.52.20100310/btool/PDF/PDF.cc
@@ -1,14 +1,17 @@
+#define private public
 
 #include "PDF.h"
 #include <sys/stat.h>
 #include "PDF_rep.h"
 
+#undef private
+
 int PDF::file_length( const PDF &pdf ) {
   return pdf.rep->file_length1;
 }
 
 int PDF::offset_last_xref_table( const PDF &pdf ) {
-  return pdf.rep->xref->getLastXRefPos();
+  return pdf.rep->pdfdoc->getStartXRef();
 }
 
 PDF::Iref PDF::iref_catalog( const PDF &pdf ) {

Reply via email to