[Gambas-user] [Gambas Bug Tracker] Bug #1315: Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun May 13 22:58:07 CEST 2018


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

Tony MOREHEN reported a new bug.

Summary
-------

Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0

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


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

Perhaps this will help :https://stackoverflow.com/questions/35357897/error-invalid-conversion-from-const-int-to-int

The error messages:

make[4]: Entering directory '/home/tony/gambas/gb.pdf/src'
  CXX      gb_pdf_la-CPdfDocument.lo
  CXX      gb_pdf_la-main.lo
CPdfDocument.cpp: In function ‘void aux_return_string_info(void*, const char*)’:
CPdfDocument.cpp:150:28: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
   goo_value = dst.getString();
               ~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘void aux_return_date_info(void*, const char*)’:
CPdfDocument.cpp:195:22: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
   goo = dst.getString();
         ~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘LinkDest* get_dest(LinkAction*)’:
CPdfDocument.cpp:231:52: error: invalid conversion from ‘const LinkDest*’ to ‘LinkDest*’ [-fpermissive]
   case actionGoTo: return ((LinkGoTo*)act)->getDest();
                           ~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp:232:54: error: invalid conversion from ‘const LinkDest*’ to ‘LinkDest*’ [-fpermissive]
   case actionGoToR: return ((LinkGoToR*)act)->getDest();
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘uint32_t aux_get_page_from_action(void*, LinkAction*)’:
CPdfDocument.cpp:254:41: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    name = ((LinkGoTo*)act)->getNamedDest();
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘char* aux_get_target_from_action(LinkAction*)’:
CPdfDocument.cpp:303:38: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    tmp=((LinkGoToR*)act)->getFileName(); break;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp:306:39: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    tmp=((LinkLaunch*)act)->getFileName(); break;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp:309:31: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    tmp=((LinkURI*)act)->getURI(); break;
        ~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp:312:34: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    tmp=((LinkNamed*)act)->getName(); break;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp:316:40: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
    tmp=((LinkMovie*)act)->getAnnotTitle(); break;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘int32_t open_document(void*, char*, int32_t)’:
CPdfDocument.cpp:483:44: error: invalid conversion from ‘const GooList*’ to ‘GooList*’ [-fpermissive]
  if (outline) THIS->index=outline->getItems();
                           ~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘void PDFDOCUMENT_index(void*, void*)’:
CPdfDocument.cpp:718:75: error: invalid conversion from ‘const LinkAction*’ to ‘LinkAction*’ [-fpermissive]
  THIS->action=((OutlineItem*)THIS->index->get(THIS->currindex))->getAction();
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘void PDFINDEX_title(void*, void*)’:
CPdfDocument.cpp:757:38: error: invalid conversion from ‘const Unicode*’ {aka ‘const unsigned int*’} to ‘Unicode*’ {aka ‘unsigned int*’} [-fpermissive]
  return_unicode_string(item->getTitle(), item->getTitleLength());
                        ~~~~~~~~~~~~~~^~
CPdfDocument.cpp:102:44: note:   initializing argument 1 of ‘void return_unicode_string(Unicode*, int)’
 static void return_unicode_string(Unicode *unicode, int len)
                                   ~~~~~~~~~^~~~~~~
CPdfDocument.cpp: In function ‘void PDFINDEX_root(void*, void*)’:
CPdfDocument.cpp:767:44: error: invalid conversion from ‘const GooList*’ to ‘GooList*’ [-fpermissive]
  if (outline) THIS->index=outline->getItems();
                           ~~~~~~~~~~~~~~~~~^~
CPdfDocument.cpp: In function ‘void PDFINDEX_child(void*, void*)’:
CPdfDocument.cpp:815:27: error: invalid conversion from ‘const GooList*’ to ‘GooList*’ [-fpermissive]
  THIS->index=item->getKids();
              ~~~~~~~~~~~~~^~
make[4]: *** [Makefile:507: gb_pdf_la-CPdfDocument.lo] Error 1
make[4]: Leaving directory '/home/tony/gambas/gb.pdf/src'
make[3]: *** [Makefile:435: all-recursive] Error 1
make[3]: Leaving directory '/home/tony/gambas/gb.pdf'
make[2]: *** [Makefile:367: all] Error 2
make[2]: Leaving directory '/home/tony/gambas/gb.pdf'
make[1]: *** [Makefile:438: all-recursive] Error 1
make[1]: Leaving directory '/home/tony/gambas'
make: *** [Makefile:379: all] Error 2


System information
------------------

[System]
Gambas=3.10.90
OperatingSystem=Linux
Kernel=4.16.8-1-MANJARO
Architecture=x86_64
Distribution=Manjaro Linux
Desktop=XFCE
Theme=Gtk
Language=en_CA.utf8
Memory=15044M

[Libraries]
Cairo=libcairo.so.2.11512.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.7
GStreamer=libgstreamer-1.0.so.0.1400.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.75.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.10.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=xfce
DISPLAY=:0
EDITOR=/usr/bin/nano
GB_GUI=gb.qt4
GDMSESSION=xfce
GLADE_CATALOG_PATH=:
GLADE_MODULE_PATH=:
GLADE_PIXMAP_PATH=:
GTK2_RC_FILES=<home>/.gtkrc-2.0
GTK_MODULES=canberra-gtk-module
HOME=<home>
LANG=en_CA.utf8
LC_ADDRESS=en_CA.UTF-8
LC_IDENTIFICATION=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_MONETARY=en_CA.UTF-8
LC_NAME=en_CA.UTF-8
LC_NUMERIC=en_CA.UTF-8
LC_PAPER=en_CA.UTF-8
LC_TELEPHONE=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_QPA_PLATFORMTHEME=qt5ct
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/931,unix/<hostname>:/tmp/.ICE-unix/931
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=/usr/bin/xfce4-session




More information about the User mailing list