View previous topic :: View next topic |
Author |
Message |
MiRoSa n00b
Joined: 24 Mar 2014 Posts: 26
|
Posted: Thu Jan 18, 2018 8:30 am Post subject: [SOLVED]poppler breaks building of cups-filters, inkscape... |
|
|
Building of net-print/cups-filters-1.16.4 fails, because of poppler.h errors.
It is app-text/poppler-0.62.0-r1 installed
Code: | ...
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/ -march=core2 -O2 -pipe -Wall -std=gnu11 -D_GNU_SOURCE -c -o gstoraster-gstoraster.o `test -f 'filter/gstoraster.c' || echo './'`filter/gstoraster.c
filter/pdf.cxx: In function ‘void pdf_prepend_stream(pdf_t*, int, char*, size_t)’:
filter/pdf.cxx:132:45: error: invalid conversion from ‘Object*’ to ‘int’ [-fpermissive]
xref->fetch(pageref->num, pageref->gen, &pageobj);
^~~~~~~~
In file included from /usr/include/poppler/PDFDoc.h:49:0,
from filter/pdf.cxx:21:
/usr/include/poppler/XRef.h:147:10: note: initializing argument 3 of ‘Object XRef::fetch(int, int, int)’
Object fetch(int num, int gen, int recursion = 0);
^~~~~
filter/pdf.cxx:133:73: error: no matching function for call to ‘Object::dictLookupNF(const char [9], Object*)’
if (!pageobj.isDict() || !pageobj.dictLookupNF("Contents", &contents)) {
^
In file included from /usr/include/poppler/XRef.h:42:0,
from /usr/include/poppler/PDFDoc.h:49,
from filter/pdf.cxx:21:
/usr/include/poppler/Object.h:365:15: note: candidate: Object Object::dictLookupNF(const char*) const
inline Object Object::dictLookupNF(const char *key) const
^~~~~~
In file included from /usr/include/poppler/PDFDoc.h:49:0,
from filter/pdf.cxx:21:
/usr/include/poppler/XRef.h:147:10: note: initializing argument 3 of ‘Object XRef::fetch(int, int, int)’
Object fetch(int num, int gen, int recursion = 0);
^~~~~
filter/pdf.cxx:141:12: error: ‘class Object’ has no member named ‘initInt’; did you mean ‘isInt’?
lenobj.initInt(len);
^~~~~~~
filter/pdf.cxx:142:10: error: ‘class Object’ has no member named ‘initDict’; did you mean ‘isDict’?
dict.initDict(xref);
^~~~~~~~
filter/pdf.cxx:143:35: error: use of deleted function ‘Object::Object(T) [with T = Object*]’
dict.dictSet("Length", &lenobj);
^
In file included from /usr/include/poppler/XRef.h:42:0,
from /usr/include/poppler/PDFDoc.h:49,
from filter/pdf.cxx:21:
/usr/include/poppler/Object.h:169:24: note: declared here
template<typename T> Object(T) = delete;
^~~~~~
filter/pdf.cxx:144:12: error: ‘class Object’ has no member named ‘initStream’; did you mean ‘isStream’?
stream.initStream(new MemStream(buf, 0, len, &dict));
^~~~~~~~~~
filter/pdf.cxx:144:55: error: use of deleted function ‘Object::Object(T) [with T = Object*]’
stream.initStream(new MemStream(buf, 0, len, &dict));
^
In file included from /usr/include/poppler/XRef.h:42:0,
from /usr/include/poppler/PDFDoc.h:49,
from filter/pdf.cxx:21:
/usr/include/poppler/Object.h:169:24: note: declared here
template<typename T> Object(T) = delete;
^~~~~~
filter/pdf.cxx:147:18: error: ‘class Object’ has no member named ‘initRef’; did you mean ‘isRef’?
streamrefobj.initRef(r.num, r.gen);
^~~~~~~
filter/pdf.cxx:149:11: error: ‘class Object’ has no member named ‘initArray’; did you mean ‘isArray’?
array.initArray(xref);
^~~~~~~~~
filter/pdf.cxx:150:33: error: use of deleted function ‘Object::Object(T) [with T = Object*]’
array.arrayAdd(&streamrefobj);
^
In file included from /usr/include/poppler/XRef.h:42:0,
from /usr/include/poppler/PDFDoc.h:49,
from filter/pdf.cxx:21:
/usr/include/poppler/Object.h:169:24: note: declared here
template<typename T> Object(T) = delete;
^~~~~~
filter/pdf.cxx:153:51: error: no matching function for call to ‘Object::dictLookupNF(const char [9], Object*)’
pageobj.dictLookupNF("Contents", &contents); // streams must be indirect, i.e. not fetch()-ed
^
In file included from /usr/include/poppler/XRef.h:42:0,
from /usr/include/poppler/PDFDoc.h:49,
from filter/pdf.cxx:21:
/usr/include/poppler/Object.h:365:15: note: candidate: Object Object::dictLookupNF(const char*) const
inline Object Object::dictLookupNF(const char *key) const
^~~~~~
... |
Reading thread: https://forums.gentoo.org/viewtopic-t-1067170-start-0.html
i switched to gcc-6.4.0-r1.
What else could be tried?
Last edited by MiRoSa on Thu Jan 18, 2018 9:07 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31355 Location: here
|
Posted: Thu Jan 18, 2018 8:56 am Post subject: |
|
|
You are trying to compile a stable package with another one unstable.
Try to unmask a more recent version of net-print/cups-filters _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
MiRoSa n00b
Joined: 24 Mar 2014 Posts: 26
|
Posted: Thu Jan 18, 2018 9:07 am Post subject: |
|
|
fedeliallalinea wrote: | You are trying to compile a stable package with another one unstable.
Try to unmask a more recent version of net-print/cups-filters |
Thanks for the solving answer! |
|
Back to top |
|
|
|
|
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
|
|