#6653 closed defect (fixed)
PDFium driver build failure
Reported by: | shot2 | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.0 |
Component: | default | Version: | svn-trunk |
Severity: | minor | Keywords: | pdfium build |
Cc: | Kurt Schwehr |
Description
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
Change History (7)
comment:1 by , 8 years ago
Cc: | added |
---|
comment:2 by , 8 years ago
Cc: | added; removed |
---|
comment:7 by , 8 years ago
No action left for you Kurt. I fixed the issue, and the other build issues related to the conf of the Travis-CI instance.
Kurt, could you look at this ?
(normally my "trunk_gcc4.8_stdc11" Travis-CI branch should have caught this, but I see that for some reason https://s3.amazonaws.com/archive.travis-ci.org/jobs/160351309/log.txt pdfium detection at configure time no longer works in it, hence it went unnoticed. Which is a different issue)