Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdal won't build [SEMI-SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2084
Location: Near Toronto

PostPosted: Tue Aug 07, 2012 11:59 am    Post subject: gdal won't build [SEMI-SOLVED] Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2084
Location: Near Toronto

PostPosted: Wed Aug 08, 2012 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alan Turing
n00b
n00b


Joined: 10 Sep 2003
Posts: 50
Location: Freiburg, Baden (Germany)

PostPosted: Fri Aug 10, 2012 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
dbeavers
n00b
n00b


Joined: 02 Jul 2011
Posts: 3

PostPosted: Fri Nov 09, 2012 5:12 pm    Post subject: Reply with quote

Me too

Thanks!
Back to top
View user's profile Send private message
Kalin
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2002
Posts: 109
Location: Japan

PostPosted: Sat Nov 10, 2012 11:07 am    Post subject: Reply with quote

Unfortunately I want +pdf for qgis :-|
Back to top
View user's profile Send private message
lindegur
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 257
Location: Swiss mountains

PostPosted: Sun Dec 02, 2012 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbiazi
n00b
n00b


Joined: 13 Oct 2007
Posts: 3

PostPosted: Sun Jan 06, 2013 12:05 pm    Post subject: May be an issue with version of poppler Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7719
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jan 07, 2013 4:21 pm    Post subject: Reply with quote

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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7719
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Feb 12, 2013 3:14 pm    Post subject: Reply with quote

Done. The patch is attached to the bug.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1549

PostPosted: Fri Apr 25, 2014 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum