Sat Jan 11 00:31:05 2020 UTC ()
web2c: Fix build with poppler-0.84.0


(ryoon)
diff -r1.90 -r1.91 pkgsrc/print/web2c/Makefile
diff -r1.34 -r1.35 pkgsrc/print/web2c/distinfo
diff -r1.1 -r1.2 pkgsrc/print/web2c/patches/patch-pdftexdir_pdftoepdf-poppler0.75.0.cc
diff -r1.6 -r1.7 pkgsrc/print/web2c/patches/patch-pdftexdir_pdftosrc-newpoppler.cc
diff -r0 -r1.1 pkgsrc/print/web2c/patches/patch-pdftexdir_utils.c

cvs diff -r1.90 -r1.91 pkgsrc/print/web2c/Makefile (expand / switch to unified diff)

--- pkgsrc/print/web2c/Makefile 2019/11/07 12:38:08 1.90
+++ pkgsrc/print/web2c/Makefile 2020/01/11 00:31:05 1.91
@@ -1,37 +1,39 @@ @@ -1,37 +1,39 @@
1# $NetBSD: Makefile,v 1.90 2019/11/07 12:38:08 wiz Exp $ 1# $NetBSD: Makefile,v 1.91 2020/01/11 00:31:05 ryoon Exp $
2 2
3PKGREVISION= 3 3PKGREVISION= 3
4.include "../../print/texlive/Makefile.common" 4.include "../../print/texlive/Makefile.common"
5 5
6PKGNAME= web2c-2019 6PKGNAME= web2c-2019
7CATEGORIES= print 7CATEGORIES= print
8 8
9HOMEPAGE= http://www.tug.org/web2c/ 9HOMEPAGE= http://www.tug.org/web2c/
10COMMENT= TeX implementation translating WEB to C 10COMMENT= TeX implementation translating WEB to C
11 11
12DEPENDS+= kpathsea>=6.2.1:../../print/kpathsea 12DEPENDS+= kpathsea>=6.2.1:../../print/kpathsea
13DEPENDS+= ptexenc>=1.3.7:../../print/ptexenc 13DEPENDS+= ptexenc>=1.3.7:../../print/ptexenc
14 14
15EXTRACT_ELEMENTS+= ${DISTNAME}/texk/web2c 15EXTRACT_ELEMENTS+= ${DISTNAME}/texk/web2c
16 16
17USE_LANGUAGES= c c++11 17USE_LANGUAGES= c c++14
18USE_TOOLS+= gmake lex yacc 18USE_TOOLS+= gmake lex yacc
19GNU_CONFIGURE_STRICT= no # texk/web2c/web2c doesn't know the options 19GNU_CONFIGURE_STRICT= no # texk/web2c/web2c doesn't know the options
20PKGCONFIG_OVERRIDE= synctexdir/synctex.pc.in 20PKGCONFIG_OVERRIDE= synctexdir/synctex.pc.in
21 21
22INFO_FILES= yes 22INFO_FILES= yes
23WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c 23WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
24 24
 25#CXXFLAGS+= -fpermissive
 26
25CONFIGURE_ARGS+= --disable-luatex 27CONFIGURE_ARGS+= --disable-luatex
26CONFIGURE_ARGS+= --disable-luatex53 28CONFIGURE_ARGS+= --disable-luatex53
27CONFIGURE_ARGS+= --disable-luajittex 29CONFIGURE_ARGS+= --disable-luajittex
28CONFIGURE_ARGS+= --disable-mflua 30CONFIGURE_ARGS+= --disable-mflua
29CONFIGURE_ARGS+= --disable-mfluajit 31CONFIGURE_ARGS+= --disable-mfluajit
30CONFIGURE_ARGS+= --disable-xetex 32CONFIGURE_ARGS+= --disable-xetex
31CONFIGURE_ARGS+= --with-x=no 33CONFIGURE_ARGS+= --with-x=no
32CONFIGURE_ARGS+= --without-mf-x-toolkit 34CONFIGURE_ARGS+= --without-mf-x-toolkit
33CONFIGURE_ARGS+= --with-system-kpathsea 35CONFIGURE_ARGS+= --with-system-kpathsea
34CONFIGURE_ARGS+= --with-system-libpng 36CONFIGURE_ARGS+= --with-system-libpng
35CONFIGURE_ARGS+= --with-system-cairo 37CONFIGURE_ARGS+= --with-system-cairo
36CONFIGURE_ARGS+= --with-system-gmp 38CONFIGURE_ARGS+= --with-system-gmp
37CONFIGURE_ARGS+= --with-gmp-includes=${BUILDLINK_PREFIX.gmp}/include 39CONFIGURE_ARGS+= --with-gmp-includes=${BUILDLINK_PREFIX.gmp}/include

cvs diff -r1.34 -r1.35 pkgsrc/print/web2c/distinfo (expand / switch to unified diff)

--- pkgsrc/print/web2c/distinfo 2019/05/14 13:23:10 1.34
+++ pkgsrc/print/web2c/distinfo 2020/01/11 00:31:05 1.35
@@ -1,12 +1,13 @@ @@ -1,12 +1,13 @@
1$NetBSD: distinfo,v 1.34 2019/05/14 13:23:10 adam Exp $ 1$NetBSD: distinfo,v 1.35 2020/01/11 00:31:05 ryoon Exp $
2 2
3SHA1 (texlive-20190410-source.tar.xz) = d700878d3e19b6ad1313791dd5cef4bf0acfd675 3SHA1 (texlive-20190410-source.tar.xz) = d700878d3e19b6ad1313791dd5cef4bf0acfd675
4RMD160 (texlive-20190410-source.tar.xz) = a0cbe56b19b1f3d064315c37f8b5a4b04f82678b 4RMD160 (texlive-20190410-source.tar.xz) = a0cbe56b19b1f3d064315c37f8b5a4b04f82678b
5SHA512 (texlive-20190410-source.tar.xz) = 7759d8e668e53c0c73e48907096da9d8fb6384dd9c3342ddfb05e17d077054c5351d35256cf4e63a6da502de2f09f521979bede7209cdd5bd8ae80eba0efed2e 5SHA512 (texlive-20190410-source.tar.xz) = 7759d8e668e53c0c73e48907096da9d8fb6384dd9c3342ddfb05e17d077054c5351d35256cf4e63a6da502de2f09f521979bede7209cdd5bd8ae80eba0efed2e
6Size (texlive-20190410-source.tar.xz) = 53783408 bytes 6Size (texlive-20190410-source.tar.xz) = 53783408 bytes
7SHA1 (patch-Makefile.in) = ec3cc8f935d7365c90aabcd68be431eb706d970e 7SHA1 (patch-Makefile.in) = ec3cc8f935d7365c90aabcd68be431eb706d970e
8SHA1 (patch-man_Makefile.in) = 8d0cbcd73f113135ea400c0491a4c0cbd0b07c73 8SHA1 (patch-man_Makefile.in) = 8d0cbcd73f113135ea400c0491a4c0cbd0b07c73
9SHA1 (patch-pdftexdir_pdftex-common.h) = 0f82056b5431c0a4718ab8609967f2ec9aeca3a9 9SHA1 (patch-pdftexdir_pdftex-common.h) = 0f82056b5431c0a4718ab8609967f2ec9aeca3a9
10SHA1 (patch-pdftexdir_pdftoepdf-poppler0.75.0.cc) = fed92e4cc1fa8086eb70dd44726371e1df64f79f 10SHA1 (patch-pdftexdir_pdftoepdf-poppler0.75.0.cc) = ac5c44afe5eacd6e7b955ba7acb335f10249d0c3
11SHA1 (patch-pdftexdir_pdftosrc-newpoppler.cc) = ce79bc0fc98756493adb1b57724ccb7f7b2821aa 11SHA1 (patch-pdftexdir_pdftosrc-newpoppler.cc) = ff18cc9bcb0dc665f7981bf06fba753e67117269
 12SHA1 (patch-pdftexdir_utils.c) = 989dc2fe8097d4d31ee2ba03885f00da0f1ab39b
12SHA1 (patch-pdftexdir_writeenc.c) = d2dfedf140c2c2c9143bc701291c09d3a8d3f3a4 13SHA1 (patch-pdftexdir_writeenc.c) = d2dfedf140c2c2c9143bc701291c09d3a8d3f3a4

cvs diff -r1.1 -r1.2 pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftoepdf-poppler0.75.0.cc (expand / switch to unified diff)

--- pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftoepdf-poppler0.75.0.cc 2019/05/14 13:23:10 1.1
+++ pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftoepdf-poppler0.75.0.cc 2020/01/11 00:31:05 1.2
@@ -1,111 +1,78 @@ @@ -1,111 +1,78 @@
1$NetBSD: patch-pdftexdir_pdftoepdf-poppler0.75.0.cc,v 1.1 2019/05/14 13:23:10 adam Exp $ 1$NetBSD: patch-pdftexdir_pdftoepdf-poppler0.75.0.cc,v 1.2 2020/01/11 00:31:05 ryoon Exp $
2 
3Fix building. 
4 2
5--- pdftexdir/pdftoepdf-poppler0.75.0.cc.orig 2019-03-21 06:38:16.000000000 +0000 3--- pdftexdir/pdftoepdf-poppler0.75.0.cc.orig 2019-03-21 06:38:16.000000000 +0000
6+++ pdftexdir/pdftoepdf-poppler0.75.0.cc 4+++ pdftexdir/pdftoepdf-poppler0.75.0.cc
7@@ -275,7 +275,7 @@ static int getNewObjectNumber(Ref ref) 5@@ -22,7 +22,7 @@ This is based on the patch texlive-poppl
8  6 https://git.archlinux.org/svntogit/packages.git/plain/texlive-bin/trunk
9 static void copyObject(Object *); 7 by Arch Linux. A little modifications are made to avoid a crash for
10  8 some kind of pdf images, such as figure_missing.pdf in gnuplot.
11-static void copyName(char *s) 9-The poppler should be 0.75.0 or newer versions.
12+static void copyName(const char *s) 10+The poppler should be 0.83.0 or newer versions.
13 { 11 POPPLER_VERSION should be defined.
14 pdf_puts("/"); 12 */
15 for (; *s != 0; s++) { 13
16@@ -310,7 +310,7 @@ static void copyDict(Object * obj) 14@@ -669,7 +669,7 @@ static void writeEncodings()
17 static void copyFontDict(Object * obj, InObj * r) 15 else
18 { 16 glyphNames[i] = notdef;
19 int i, l; 17 }
20- char *key; 18- epdf_write_enc(glyphNames, r->enc_objnum);
21+ const char *key; 19+ epdf_write_enc(const_cast<const char**>(glyphNames), r->enc_objnum);
22 if (!obj->isDict()) 20 }
23 pdftex_fail("PDF inclusion: invalid dict type <%s>", 21 for (r = encodingList; r != 0; r = n) {
24 obj->getTypeName()); 22 n = r->next;
25@@ -382,7 +382,7 @@ static bool embeddableFont(Object * font 23@@ -710,7 +710,7 @@ static const PDFRectangle *get_pagebox(P
26 return false; 24
27 } 25 int
28  26 read_pdf_info(char *image_name, char *page_name, int page_num,
29-static void copyFont(char *tag, Object * fontRef) 27- int pagebox_spec, int minor_pdf_version_wanted,
30+static void copyFont(const char *tag, Object * fontRef) 28+ int pagebox_spec, /* int major_pdf_version_wanted, */ int minor_pdf_version_wanted,
31 { 29 int pdf_inclusion_errorlevel)
32 Object fontdict, subtype, basefont, fontdescRef, fontdesc, charset, 30 {
33 stemV; 31 PdfDocument *pdf_doc;
34@@ -467,7 +467,7 @@ static void copyFontResources(Object * o 32@@ -723,7 +723,7 @@ read_pdf_info(char *image_name, char *pa
35 pdf_puts(">>\n"); 33 #endif
36 } 34 // initialize
37  35 if (!isInit) {
38-static void copyOtherResources(Object * obj, char *key) 36- globalParams = new GlobalParams();
39+static void copyOtherResources(Object * obj, const char *key) 37+ globalParams = std::make_unique<GlobalParams>();
40 { 38 globalParams->setErrQuiet(false);
41 // copies all other resources (write_epdf handles Fonts and ProcSets), 39 isInit = true;
42  40 }
43@@ -554,8 +554,8 @@ static void copyObject(Object * obj) 41@@ -738,16 +738,16 @@ read_pdf_info(char *image_name, char *pa
44 Object obj1; 42 #ifdef POPPLER_VERSION
45 int i, l, c; 43 pdf_major_version_found = pdf_doc->doc->getPDFMajorVersion();
46 Ref ref; 44 pdf_minor_version_found = pdf_doc->doc->getPDFMinorVersion();
47- char *p; 45- if ((pdf_major_version_found > 1)
48- GString *s; 46+ if ((pdf_major_version_found > /* major_pdf_version_wanted */ 1)
49+ const char *p; 47 || (pdf_minor_version_found > minor_pdf_version_wanted)) {
50+ const GString *s; 48 const char *msg =
51 if (obj->isBool()) { 49- "PDF inclusion: found PDF version <%d.%d>, but at most version <1.%d> allowed";
52 pdf_printf("%s", obj->getBool()? "true" : "false"); 50+ "PDF inclusion: found PDF version <%d.%d>, but at most version <%d.%d> allowed";
53 } else if (obj->isInt()) { 51 if (pdf_inclusion_errorlevel > 0) {
54@@ -655,7 +655,7 @@ static void writeRefs() 52- pdftex_fail(msg, pdf_major_version_found, pdf_minor_version_found, minor_pdf_version_wanted);
55 static void writeEncodings() 53+ pdftex_fail(msg, pdf_major_version_found, pdf_minor_version_found, /* major_pdf_version_wanted, */ minor_pdf_version_wanted);
56 { 54 } else if (pdf_inclusion_errorlevel < 0) {
57 UsedEncoding *r, *n; 55 ; /* do nothing */
58- char *glyphNames[256], *s; 56 } else { /* = 0, give warning */
59+ const char *glyphNames[256], *s; 57- pdftex_warn(msg, pdf_major_version_found, pdf_minor_version_found, minor_pdf_version_wanted);
60 int i; 58+ pdftex_warn(msg, pdf_major_version_found, pdf_minor_version_found, /* major_pdf_version_wanted, */ minor_pdf_version_wanted);
61 for (r = encodingList; r != 0; r = r->next) { 59 }
62 for (i = 0; i < 256; i++) { 60 }
63@@ -685,20 +685,24 @@ static void writeEncodings() 61 #else
64 // get the pagebox according to the pagebox_spec 62@@ -761,7 +761,7 @@ read_pdf_info(char *image_name, char *pa
65 static const PDFRectangle *get_pagebox(Page * page, int pagebox_spec) 
66 { 
67+ const PDFRectangle *ret; 
68+ 
69 if (pagebox_spec == pdfboxspecmedia) 
70- return page->getMediaBox(); 
71+ ret = page->getMediaBox(); 
72 else if (pagebox_spec == pdfboxspeccrop) 
73- return page->getCropBox(); 
74+ ret = page->getCropBox(); 
75 else if (pagebox_spec == pdfboxspecbleed) 
76- return page->getBleedBox(); 
77+ ret = page->getBleedBox(); 
78 else if (pagebox_spec == pdfboxspectrim) 
79- return page->getTrimBox(); 
80+ ret = page->getTrimBox(); 
81 else if (pagebox_spec == pdfboxspecart) 
82- return page->getArtBox(); 
83+ ret = page->getArtBox(); 
84 else 
85 pdftex_fail("PDF inclusion: unknown value of pagebox spec (%i)", 
86 (int) pagebox_spec); 
87- return page->getMediaBox(); // to make the compiler happy 
88+ // ret = page->getMediaBox(); // to make the compiler happy 
89+ 
90+ return const_cast<PDFRectangle*>(ret); 
91 } 
92  
93  
94@@ -761,7 +765,7 @@ read_pdf_info(char *image_name, char *pa 
95 if (link == 0 || !link->isOk()) 63 if (link == 0 || !link->isOk())
96 pdftex_fail("PDF inclusion: invalid destination <%s>", page_name); 64 pdftex_fail("PDF inclusion: invalid destination <%s>", page_name);
97 Ref ref = link->getPageRef(); 65 Ref ref = link->getPageRef();
98- page_num = pdf_doc->doc->getCatalog()->findPage(ref.num, ref.gen); 66- page_num = pdf_doc->doc->getCatalog()->findPage(ref.num, ref.gen);
99+ page_num = pdf_doc->doc->getCatalog()->findPage(ref); 67+ page_num = pdf_doc->doc->getCatalog()->findPage(ref);
100 if (page_num == 0) 68 if (page_num == 0)
101 pdftex_fail("PDF inclusion: destination is not a page <%s>", 69 pdftex_fail("PDF inclusion: destination is not a page <%s>",
102 page_name); 70 page_name);
103@@ -822,7 +826,7 @@ void write_epdf(void) 71@@ -1107,7 +1107,5 @@ void epdf_check_mem()
104 Object groupDict; 72 n = p->next;
105 bool writeSepGroup = false; 73 delete_document(p);
106 Object info; 74 }
107- char *key; 75- // see above for globalParams
108+ const char *key; 76- delete globalParams;
109 char s[256]; 77 }
110 int i, l; 78 }
111 int rotate; 

cvs diff -r1.6 -r1.7 pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftosrc-newpoppler.cc (expand / switch to unified diff)

--- pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftosrc-newpoppler.cc 2019/05/14 13:23:10 1.6
+++ pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_pdftosrc-newpoppler.cc 2020/01/11 00:31:05 1.7
@@ -1,68 +1,90 @@ @@ -1,68 +1,90 @@
1$NetBSD: patch-pdftexdir_pdftosrc-newpoppler.cc,v 1.6 2019/05/14 13:23:10 adam Exp $ 1$NetBSD: patch-pdftexdir_pdftosrc-newpoppler.cc,v 1.7 2020/01/11 00:31:05 ryoon Exp $
2 2
3Fix building. 3Fix building.
4 4
5--- pdftexdir/pdftosrc-newpoppler.cc.orig 2018-12-06 23:31:33.000000000 +0000 5--- pdftexdir/pdftosrc-newpoppler.cc.orig 2018-12-06 23:31:33.000000000 +0000
6+++ pdftexdir/pdftosrc-newpoppler.cc 6+++ pdftexdir/pdftosrc-newpoppler.cc
7@@ -69,7 +69,7 @@ int main(int argc, char *argv[]) 7@@ -20,8 +20,7 @@ with this program. If not, see <http://
8 Stream *s; 8 /*
9 Object srcStream, srcName, catalogDict; 9 This is based on the patch texlive-poppler-0.59.patch <2017-09-19> at
10 FILE *outfile; 10 https://git.archlinux.org/svntogit/packages.git/plain/texlive-bin/trunk
11- char *outname; 11-by Arch Linux. The poppler should be 0.59.0 or newer versions.
12+ const char *outname; 12-It is tested upto the poppler 0.70.1.
13 int objnum = 0, objgen = 0; 13+by Arch Linux. The poppler should be 0.83.0 or newer versions.
14 bool extract_xref_table = false; 14 POPPLER_VERSION should be defined.
15 int c; 15 */
16@@ -110,7 +110,7 @@ int main(int argc, char *argv[]) 16
 17@@ -80,7 +79,7 @@ int main(int argc, char *argv[])
 18 exit(1);
 19 }
 20 fileName = new GString(argv[1]);
 21- globalParams = new GlobalParams();
 22+ globalParams = std::make_unique<GlobalParams>();
 23 doc = new PDFDoc(fileName);
 24 if (!doc->isOk()) {
 25 fprintf(stderr, "Invalid PDF file\n");
 26@@ -100,8 +99,8 @@ int main(int argc, char *argv[])
 27 srcStream = Object(objNull);
 28 if (objnum == 0) {
 29 srcStream = catalogDict.dictLookup("SourceObject");
 30- static char const_SourceFile[] = "SourceFile";
 31- if (!srcStream.isStream(const_SourceFile)) {
 32+ static const char *const_SourceFile = "SourceFile";
 33+ if (!srcStream.isDict(const_SourceFile)) {
 34 fprintf(stderr, "No SourceObject found\n");
 35 exit(1);
 36 }
 37@@ -110,7 +109,7 @@ int main(int argc, char *argv[])
17 fprintf(stderr, "No SourceName found\n"); 38 fprintf(stderr, "No SourceName found\n");
18 exit(1); 39 exit(1);
19 } 40 }
20- outname = (char *)srcName.getString()->getCString(); 41- outname = (char *)srcName.getString()->getCString();
21+ outname = (char *)srcName.getString()->c_str(); 42+ outname = (char *)srcName.getString()->c_str();
22 // We cannot free srcName, as objname shares its string. 43 // We cannot free srcName, as objname shares its string.
23 // srcName.free(); 44 // srcName.free();
24 } else if (objnum > 0) { 45 } else if (objnum > 0) {
25@@ -119,7 +119,7 @@ int main(int argc, char *argv[]) 46@@ -119,7 +118,7 @@ int main(int argc, char *argv[])
26 fprintf(stderr, "Not a Stream object\n"); 47 fprintf(stderr, "Not a Stream object\n");
27 exit(1); 48 exit(1);
28 } 49 }
29- sprintf(buf, "%s", fileName->getCString()); 50- sprintf(buf, "%s", fileName->getCString());
30+ sprintf(buf, "%s", fileName->c_str()); 51+ sprintf(buf, "%s", fileName->c_str());
31 if ((p = strrchr(buf, '.')) == 0) 52 if ((p = strrchr(buf, '.')) == 0)
32 p = strchr(buf, 0); 53 p = strchr(buf, 0);
33 if (objgen == 0) 54 if (objgen == 0)
34@@ -129,7 +129,7 @@ int main(int argc, char *argv[]) 55@@ -129,7 +128,7 @@ int main(int argc, char *argv[])
35 outname = buf; 56 outname = buf;
36 } else { // objnum < 0 means we are extracting the XRef table 57 } else { // objnum < 0 means we are extracting the XRef table
37 extract_xref_table = true; 58 extract_xref_table = true;
38- sprintf(buf, "%s", fileName->getCString()); 59- sprintf(buf, "%s", fileName->getCString());
39+ sprintf(buf, "%s", fileName->c_str()); 60+ sprintf(buf, "%s", fileName->c_str());
40 if ((p = strrchr(buf, '.')) == 0) 61 if ((p = strrchr(buf, '.')) == 0)
41 p = strchr(buf, 0); 62 p = strchr(buf, 0);
42 sprintf(p, ".xref"); 63 sprintf(p, ".xref");
43@@ -157,12 +157,11 @@ int main(int argc, char *argv[]) 64@@ -162,7 +161,7 @@ int main(int argc, char *argv[])
44 (e->type == xrefEntryFree ? "f" : "n")); 
45 else { // e->offset is the object number of the object stream 
46 Stream *str; 
47- Lexer *lexer; 
48 Parser *parser; 
49 Object objStr, obj1, obj2; 65 Object objStr, obj1, obj2;
50 int nObjects, first, n; 66 int nObjects, first, n;
51 int localOffset = 0; 67 int localOffset = 0;
52- Guint firstOffset; 68- Guint firstOffset;
53+ unsigned int firstOffset; 69+ unsigned int firstOffset;
54  70
55 objStr = xref->fetch(e->offset, 0); 71 objStr = xref->fetch(e->offset, 0);
56 assert(objStr.isStream()); 72 assert(objStr.isStream());
57@@ -174,9 +173,8 @@ int main(int argc, char *argv[]) 73@@ -174,9 +173,8 @@ int main(int argc, char *argv[])
58  74
59 // parse the header: object numbers and offsets 75 // parse the header: object numbers and offsets
60 objStr.streamReset(); 76 objStr.streamReset();
61- str = new EmbedStream(objStr.getStream(), Object(objNull), gTrue, first); 77- str = new EmbedStream(objStr.getStream(), Object(objNull), gTrue, first);
62- lexer = new Lexer(xref, str); 78- lexer = new Lexer(xref, str);
63- parser = new Parser(xref, lexer, gFalse); 79- parser = new Parser(xref, lexer, gFalse);
64+ str = new EmbedStream(objStr.getStream(), Object(objNull), true, first); 80+ str = new EmbedStream(objStr.getStream(), Object(objNull), true, first);
65+ parser = new Parser(xref, str, false); 81+ parser = new Parser(xref, str, false);
66 for (n = 0; n < nObjects; ++n) { 82 for (n = 0; n < nObjects; ++n) {
67 obj1 = parser->getObj(); 83 obj1 = parser->getObj();
68 obj2 = parser->getObj(); 84 obj2 = parser->getObj();
 85@@ -204,5 +202,4 @@ int main(int argc, char *argv[])
 86 fprintf(stderr, "Cross-reference table extracted to %s\n", outname);
 87 fclose(outfile);
 88 delete doc;
 89- delete globalParams;
 90 }

File Added: pkgsrc/print/web2c/patches/Attic/patch-pdftexdir_utils.c
$NetBSD: patch-pdftexdir_utils.c,v 1.1 2020/01/11 00:31:05 ryoon Exp $

* Fix a cstdio is not found error.

--- pdftexdir/utils.c.orig	2017-11-14 23:50:55.000000000 +0000
+++ pdftexdir/utils.c
@@ -33,7 +33,6 @@ with this program.  If not, see <http://
 #include "ptexlib.h"
 #include <png.h>
 #ifdef POPPLER_VERSION
-#include <poppler-config.h>
 #define xpdfVersion POPPLER_VERSION
 #define xpdfString "poppler"
 #else