Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]poppler breaks building of cups-filters, inkscape...
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
MiRoSa
n00b
n00b


Joined: 24 Mar 2014
Posts: 16

PostPosted: Thu Jan 18, 2018 8:30 am    Post subject: [SOLVED]poppler breaks building of cups-filters, inkscape... Reply with quote

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.

ct85711 wrote:
ok, this is a different issue... see bug 626800 - net-print/cups-filters-1.16.0: emake failed after update to app-text/poppler-0.57.0.

Looking at the bug report, it seems if you use gcc-6 it is fine. Overall, this looks like it will probably end up being where you mask poppler-0.57.0 until this is resolved.


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


Joined: 08 Mar 2003
Posts: 19059
Location: here

PostPosted: Thu Jan 18, 2018 8:56 am    Post subject: Reply with quote

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


Joined: 24 Mar 2014
Posts: 16

PostPosted: Thu Jan 18, 2018 9:07 am    Post subject: Reply with quote

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
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