[Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed May 16 01:19:39 CEST 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4-

vuott VUOTT reported a new bug.

Summary
-------

ERROR with Commit fdf8fa65

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : Unknown


Description
-----------

Hello,
I tried to install commit fdf8fa65, but during "make" I obtained those errors:


make[4]: Entering directory '/home/vuott/gambasdevel/gb.pdf/src'
  CXX      gb_pdf_la-main.lo
  CXX      gb_pdf_la-CPdfDocument.lo
CPdfDocument.cpp: In function ‘void aux_return_string_info(void*, const char*)’:
CPdfDocument.cpp:152:35: error: passing ‘const GooString’ as ‘this’ argument discards qualifiers [-fpermissive]
   if (goo_value->hasUnicodeMarker())
                                   ^
In file included from /usr/include/poppler/Object.h:42:0,
                 from /usr/include/poppler/XRef.h:41,
                 from /usr/include/poppler/PDFDoc.h:46,
                 from CPdfDocument.h:29,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooString.h:163:9: note:   in call to ‘GBool GooString::hasUnicodeMarker()’
   GBool hasUnicodeMarker(void);
         ^
CPdfDocument.cpp: In function ‘void aux_return_date_info(void*, const char*)’:
CPdfDocument.cpp:196:29: error: passing ‘const GooString’ as ‘this’ argument discards qualifiers [-fpermissive]
   if (goo->hasUnicodeMarker())
                             ^
In file included from /usr/include/poppler/Object.h:42:0,
                 from /usr/include/poppler/XRef.h:41,
                 from /usr/include/poppler/PDFDoc.h:46,
                 from CPdfDocument.h:29,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooString.h:163:9: note:   in call to ‘GBool GooString::hasUnicodeMarker()’
   GBool hasUnicodeMarker(void);
         ^
CPdfDocument.cpp: In function ‘const LinkDest* get_dest(const LinkAction*)’:
CPdfDocument.cpp:229:23: error: passing ‘const LinkAction’ as ‘this’ argument discards qualifiers [-fpermissive]
  switch (act->getKind())
                       ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:72:26: note:   in call to ‘virtual LinkActionKind LinkAction::getKind()’
   virtual LinkActionKind getKind() = 0;
                          ^
CPdfDocument.cpp: In function ‘uint32_t aux_get_page_from_action(void*, const LinkAction*)’:
CPdfDocument.cpp:252:21: error: passing ‘const LinkAction’ as ‘this’ argument discards qualifiers [-fpermissive]
   if (act->getKind () == actionGoTo)
                     ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:72:26: note:   in call to ‘virtual LinkActionKind LinkAction::getKind()’
   virtual LinkActionKind getKind() = 0;
                          ^
CPdfDocument.cpp:256:36: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
     dest = THIS->doc->findDest(name);
                                    ^
In file included from CPdfDocument.h:29:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/PDFDoc.h:187:13: note:   initializing argument 1 of ‘LinkDest* PDFDoc::findDest(GooString*)’
   LinkDest *findDest(GooString *name)
             ^
CPdfDocument.cpp:263:22: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
  if (dest->isPageRef() )
                      ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:110:9: note:   in call to ‘GBool LinkDest::isPageRef()’
   GBool isPageRef() { return pageIsRef; }
         ^
CPdfDocument.cpp:265:26: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
   pref= dest->getPageRef();
                          ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:112:7: note:   in call to ‘Ref LinkDest::getPageRef()’
   Ref getPageRef() { return pageRef; }
       ^
CPdfDocument.cpp:269:27: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
   return dest->getPageNum();
                           ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:111:7: note:   in call to ‘int LinkDest::getPageNum()’
   int getPageNum() { return pageNum; }
       ^
CPdfDocument.cpp: In function ‘void aux_get_dimensions_from_action(const LinkAction*, CPDFRECT*)’:
CPdfDocument.cpp:279:26: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
  rect->x = dest->getLeft();
                          ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:113:10: note:   in call to ‘double LinkDest::getLeft()’
   double getLeft() { return left; }
          ^
CPdfDocument.cpp:280:27: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
  rect->w = dest->getRight() - rect->x;
                           ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:115:10: note:   in call to ‘double LinkDest::getRight()’
   double getRight() { return right; }
          ^
CPdfDocument.cpp:281:25: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
  rect->y = dest->getTop();
                         ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:116:10: note:   in call to ‘double LinkDest::getTop()’
   double getTop() { return top; }
          ^
CPdfDocument.cpp:282:28: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
  rect->h = dest->getBottom() - rect->y;
                            ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:114:10: note:   in call to ‘double LinkDest::getBottom()’
   double getBottom() { return bottom; }
          ^
CPdfDocument.cpp: In function ‘double aux_get_zoom_from_action(const LinkAction*)’:
CPdfDocument.cpp:289:24: error: passing ‘const LinkDest’ as ‘this’ argument discards qualifiers [-fpermissive]
   return dest->getZoom();
                        ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:117:10: note:   in call to ‘double LinkDest::getZoom()’
   double getZoom() { return zoom; }
          ^
CPdfDocument.cpp: In function ‘char* aux_get_target_from_action(const LinkAction*)’:
CPdfDocument.cpp:300:23: error: passing ‘const LinkAction’ as ‘this’ argument discards qualifiers [-fpermissive]
  switch (act->getKind())
                       ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:72:26: note:   in call to ‘virtual LinkActionKind LinkAction::getKind()’
   virtual LinkActionKind getKind() = 0;
                          ^
CPdfDocument.cpp:327:28: error: passing ‘const GooString’ as ‘this’ argument discards qualifiers [-fpermissive]
  if (tmp->hasUnicodeMarker())
                            ^
In file included from /usr/include/poppler/Object.h:42:0,
                 from /usr/include/poppler/XRef.h:41,
                 from /usr/include/poppler/PDFDoc.h:46,
                 from CPdfDocument.h:29,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooString.h:163:9: note:   in call to ‘GBool GooString::hasUnicodeMarker()’
   GBool hasUnicodeMarker(void);
         ^
CPdfDocument.cpp: In function ‘void PDFDOCUMENT_has_index(void*, void*)’:
CPdfDocument.cpp:710:57: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  GB.ReturnBoolean(THIS->index && THIS->index->getLength());
                                                         ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:51:7: note:   in call to ‘int GooList::getLength()’
   int getLength() { return length; }
       ^
CPdfDocument.cpp: In function ‘void PDFDOCUMENT_index(void*, void*)’:
CPdfDocument.cpp:718:62: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  THIS->action=((OutlineItem*)THIS->index->get(THIS->currindex))->getAction();
                                                              ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:60:9: note:   in call to ‘void* GooList::get(int)’
   void *get(int i) { return data[i]; }
         ^
CPdfDocument.cpp: In function ‘void PDFINDEX_count(void*, void*)’:
CPdfDocument.cpp:725:42: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  GB.ReturnInteger(THIS->index->getLength());
                                          ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:51:7: note:   in call to ‘int GooList::getLength()’
   int getLength() { return length; }
       ^
CPdfDocument.cpp: In function ‘void PDFINDEX_has_children(void*, void*)’:
CPdfDocument.cpp:733:57: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  item = (OutlineItem *)THIS->index->get (THIS->currindex);
                                                         ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:60:9: note:   in call to ‘void* GooList::get(int)’
   void *get(int i) { return data[i]; }
         ^
CPdfDocument.cpp: In function ‘void PDFINDEX_is_open(void*, void*)’:
CPdfDocument.cpp:742:57: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  item = (OutlineItem *)THIS->index->get (THIS->currindex);
                                                         ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:60:9: note:   in call to ‘void* GooList::get(int)’
   void *get(int i) { return data[i]; }
         ^
CPdfDocument.cpp: In function ‘void PDFINDEX_title(void*, void*)’:
CPdfDocument.cpp:756:57: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  item = (OutlineItem *)THIS->index->get (THIS->currindex);
                                                         ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:60:9: note:   in call to ‘void* GooList::get(int)’
   void *get(int i) { return data[i]; }
         ^
CPdfDocument.cpp: In function ‘void PDFINDEX_next(void*, void*)’:
CPdfDocument.cpp:785:63: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  if ( (THIS->currindex+1) >= (uint32_t)THIS->index->getLength() )
                                                               ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:51:7: note:   in call to ‘int GooList::getLength()’
   int getLength() { return length; }
       ^
CPdfDocument.cpp: In function ‘void PDFINDEX_child(void*, void*)’:
CPdfDocument.cpp:797:57: error: passing ‘const GooList’ as ‘this’ argument discards qualifiers [-fpermissive]
  item = (OutlineItem *)THIS->index->get (THIS->currindex);
                                                         ^
In file included from CPdfDocument.h:32:0,
                 from CPdfDocument.cpp:26:
/usr/include/poppler/goo/GooList.h:60:9: note:   in call to ‘void* GooList::get(int)’
   void *get(int i) { return data[i]; }
         ^
CPdfDocument.cpp: In function ‘void PDFPAGELINKDATA_parameters(void*, void*)’:
CPdfDocument.cpp:1071:28: error: passing ‘const LinkAction’ as ‘this’ argument discards qualifiers [-fpermissive]
  if (THIS->action->getKind() != actionLaunch )
                            ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:72:26: note:   in call to ‘virtual LinkActionKind LinkAction::getKind()’
   virtual LinkActionKind getKind() = 0;
                          ^
CPdfDocument.cpp: In function ‘void PDFPAGELINKDATA_type(void*, void*)’:
CPdfDocument.cpp:1114:52: error: passing ‘const LinkAction’ as ‘this’ argument discards qualifiers [-fpermissive]
  GB.ReturnInteger ( (int32_t)THIS->action->getKind() );
                                                    ^
In file included from CPdfDocument.cpp:45:0:
/usr/include/poppler/Link.h:72:26: note:   in call to ‘virtual LinkActionKind LinkAction::getKind()’
   virtual LinkActionKind getKind() = 0;
                          ^
Makefile:508: recipe for target 'gb_pdf_la-CPdfDocument.lo' failed
make[4]: *** [gb_pdf_la-CPdfDocument.lo] Error 1
make[4]: Leaving directory '/home/vuott/gambasdevel/gb.pdf/src'
Makefile:436: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/vuott/gambasdevel/gb.pdf'
Makefile:368: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/vuott/gambasdevel/gb.pdf'
Makefile:439: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/vuott/gambasdevel'
Makefile:380: recipe for target 'all' failed
make: *** [all] Error 2






More information about the User mailing list