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

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed May 16 02:06:07 CEST 2018


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

Comment #3 by Benoît MINISINI:

Nope, it's still does not compile with gcc 7.2.0 on Ubuntu 17.10:

[...]
  CXX      gb_pdf_la-CPdfDocument.lo
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:270: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:272: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:276: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:286: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:287: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:288: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:289: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:296: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:307: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;
                          ^~~~~~~
Makefile:508 : la recette pour la cible « gb_pdf_la-CPdfDocument.lo » a échouée
make[2]: *** [gb_pdf_la-CPdfDocument.lo] Erreur 1
make[2] : on quitte le répertoire « /home/benoit/gambas/git/master/gb.pdf/src »
Makefile:436 : la recette pour la cible « all-recursive » a échouée
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/benoit/gambas/git/master/gb.pdf »
Makefile:368 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Benoît MINISINI changed the state of the bug to: Accepted.




More information about the User mailing list