View previous topic :: View next topic |
Author |
Message |
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Tue Aug 07, 2012 11:59 am Post subject: gdal won't build [SEMI-SOLVED] |
|
|
I get the same error with either gdal-1.9.1 or 1.8.1-r1
Here's the error:
Code: | make[2]: Entering directory `/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/frmts/pdf'
i686-pc-linux-gnu-g++ -O2 -march=prescott -pipe -fomit-frame-pointer -fPIC -Wall -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/port -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/gcore -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/alg -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/ogr -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/ogr/ogrsf_frmts -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/port -Iexternal/include -I/usr/ -I/usr//include -DUSE_POPPLER -DPOPPLER_HAS_OPTCONTENT -DPOPPLER_BASE_STREAM_HAS_TWO_ARGS -I/usr/include -I/usr/include/poppler -c -o ../o/pdfdataset.o pdfdataset.cpp
pdfdataset.cpp: In member function ‘virtual CPLErr PDFRasterBand::IReadBlock(int, int, void*)’:
pdfdataset.cpp:329:47: error: no matching function for call to ‘SplashOutputDev::startDoc(XRef*)’
/usr/include/poppler/SplashOutputDev.h:309:8: note: candidate is: void SplashOutputDev::startDoc(PDFDoc*)
pdfdataset.cpp: In static member function ‘static GDALDataset* PDFDataset::Open(GDALOpenInfo*)’:
pdfdataset.cpp:569:45: error: ‘setErrorFunction’ was not declared in this scope
pdfdataset.cpp:599:67: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
make[2]: *** [../o/pdfdataset.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/frmts/pdf'
make[1]: *** [pdf-install-obj] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.9.1/work/gdal-1.9.1/frmts'
make: *** [frmts-target] Error 2
* ERROR: sci-libs/gdal-1.9.1 failed (compile phase):
* emake failed
|
any help appreciated ... TIA _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Last edited by albright on Wed Aug 08, 2012 1:44 pm; edited 1 time in total |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Wed Aug 08, 2012 1:44 pm Post subject: |
|
|
I find that gdal will build with USE=-pdf
since the only program that depends on gdal is googleearth I suppose
this does not matter very much ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
Alan Turing n00b
Joined: 10 Sep 2003 Posts: 53 Location: Freiburg, Baden (Germany)
|
Posted: Fri Aug 10, 2012 11:12 am Post subject: |
|
|
Same problem here.
USE -pdf for sci-libs/gdal-1.8.1-r1 also worked for me.
I guess (but can not check at the moment) that emerging some current version of gdal worked on my amd64 machine at home (this one is a x86 machine, but configured very similar). |
|
Back to top |
|
|
dbeavers n00b
Joined: 02 Jul 2011 Posts: 3
|
Posted: Fri Nov 09, 2012 5:12 pm Post subject: |
|
|
Me too
Thanks! |
|
Back to top |
|
|
Kalin Tux's lil' helper
Joined: 22 Dec 2002 Posts: 130 Location: Germany
|
Posted: Sat Nov 10, 2012 11:07 am Post subject: |
|
|
Unfortunately I want +pdf for qgis :-| |
|
Back to top |
|
|
lindegur Apprentice
Joined: 14 Aug 2004 Posts: 292 Location: Swiss mountains
|
Posted: Sun Dec 02, 2012 5:46 pm Post subject: |
|
|
Code: | =sci-libs/gdal-1.8.1-r1 -pdf | in /etc/portage/package.use will just set -pdf for gdal. Since I hope this will be fixed in the future I have put the gdal version to the file, so this line will become outdated in the future and will be removed when I run portpeek -arf |
|
Back to top |
|
|
fbiazi n00b
Joined: 13 Oct 2007 Posts: 3
|
Posted: Sun Jan 06, 2013 12:05 pm Post subject: May be an issue with version of poppler |
|
|
I've found a similar error with Scribus on the internet, but it is kind of inverted.
The bug report: http://bugs.scribus.net/view.php?id=11201
In Scribus bug:
Code: | /home/czarek/GIT/scribus/Scribus/scribus/plugins/import/pdf/importpdf.cpp: In member function ‘QImage PdfPlug::readThumbnail(QString)’:
/home/czarek/GIT/scribus/Scribus/scribus/plugins/import/pdf/importpdf.cpp:104:25: error: no matching function for call to ‘SplashOutputDev::startDoc(PDFDoc*&)’
/home/czarek/GIT/scribus/Scribus/scribus/plugins/import/pdf/importpdf.cpp:104:25: note: candidate is:
/usr/include/poppler/SplashOutputDev.h:348:8: note: void SplashOutputDev::startDoc(XRef*)
/usr/include/poppler/SplashOutputDev.h:348:8: note: no known conversion for argument 1 from ‘PDFDoc*’ to ‘XRef*’ |
In our case with gdal:
Code: | pdfdataset.cpp: In member function ‘virtual CPLErr PDFRasterBand::IReadBlock(int, int, void*)’:
pdfdataset.cpp:351:47: error: no matching function for call to ‘SplashOutputDev::startDoc(XRef*)’
pdfdataset.cpp:351:47: note: candidate is:
/usr/include/poppler/SplashOutputDev.h:309:8: note: void SplashOutputDev::startDoc(PDFDoc*)
/usr/include/poppler/SplashOutputDev.h:309:8: note: no known conversion for argument 1 from ‘XRef*’ to ‘PDFDoc*’ |
So I think one is expecting an older version of poppler and getting a newer, and the other expecting a newer version of poppler and getting an older.
By readind the response on the link above, it seems that Scribus use the newer calling, if this is right, we have the older one, and need older poppler or wait for an updated version of gdal with the newer calling. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jan 07, 2013 4:21 pm Post subject: |
|
|
It's been reported. The same issue apparently existed in gdal-1.9.1 but a patch was developed to address it. I may take a stab at porting the patch to 1.8.1-r1.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Feb 12, 2013 3:14 pm Post subject: |
|
|
Done. The patch is attached to the bug.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Fri Apr 25, 2014 2:21 pm Post subject: |
|
|
I need gdal for postgis. I tried version 1.9.2 of gdal. It also failed. The solution of -pdf in package.use helped. So, what's going on. The same bugs repeat all over again? |
|
Back to top |
|
|
|