id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 6653,PDFium driver build failure,shot2,warmerdam,"vanilla Ubuntu 16.04 x64, gdal-svn-trunk-2016.09.15, pdfium static library built from github's rouault/pdfium {{{ ./configure --without-jpeg12 --with-armadillo --with-dods-root=/usr --with-epsilon --with-gnm --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial --without-jasper --with-liblzma --with-msg --with-mysql --with-python --with-sosi --with-spatialite --with-static-proj4 --with-webp --with-pdfium=/home/admin/pdfium/install make }}} The build fails with the following error, related to frmts/pdf/pdfdataset.cpp: {{{ pdfdataset.cpp: In function 'int LoadPdfiumDocumentPage(const char*, const char*, int, TPdfiumDocumentStruct**, TPdfiumPageStruct**, int*)': pdfdataset.cpp:1144:5: error: 'poDoc' was not declared in this scope poDoc = it->second; ^ pdfdataset.cpp:1148:16: error: 'poDoc' was not declared in this scope int nPages = poDoc->doc->GetPageCount(); ^ ../../GDALmake.opt:647: recipe for target '../o/pdfdataset.lo' failed make[2]: *** [../o/pdfdataset.lo] Error 1 make[2]: Leaving directory '/var/tmp/dmz/gdal-svn-trunk-2016.09.15/frmts/pdf' GNUmakefile:15: recipe for target 'pdf-install-obj' failed make[1]: *** [pdf-install-obj] Error 2 make[1]: Leaving directory '/var/tmp/dmz/gdal-svn-trunk-2016.09.15/frmts' GNUmakefile:88: recipe for target 'frmts-target' failed make: *** [frmts-target] Error 2 }}} It appears a '''poDoc''' declaration is missing from a code block in pdfdataset.cpp. I suspect it occurred after code cleanup/refactoring around r34970, see diff: https://trac.osgeo.org/gdal/changeset?new=34970%40trunk%2Fgdal%2Ffrmts%2Fpdf%2Fpdfdataset.cpp&old=34856%40trunk%2Fgdal%2Ffrmts%2Fpdf%2Fpdfdataset.cpp",defect,closed,normal,2.2.0,default,svn-trunk,minor,fixed,pdfium build,Kurt Schwehr