[Gambas-bugtracker] Bug #1714: gb.pdf fails to build when Poppler 0.84 is present (current Arch/Manjaro version)

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Jan 17 21:30:03 CET 2020


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

Tony MOREHEN reported a new bug.

Summary
-------

gb.pdf fails to build when Poppler 0.84 is present  (current Arch/Manjaro version)

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


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

Here's the output from make:
[tony at server-amd gb.pdf]$ make
make  all-recursive
make[1]: Entering directory '/shared/work/Gambas/packaging/master/src/gam
bas-v3.14.90/gb.pdf'
Making all in src
make[2]: Entering directory '/shared/work/Gambas/packaging/master/src/gam
bas-v3.14.90/gb.pdf/src'
  CXX      gb_pdf_la-main.lo
main.cpp: In function ‘int GB_INIT()’:
main.cpp:59:35: error: no match for ‘operator=’ (operand types are ‘std::
unique_ptr<GlobalParams>’ and ‘GlobalParams*’)
   59 |   globalParams = new GlobalParams();
      |                                   ^
In file included from /usr/include/c++/9.2.0/memory:80,
                 from /usr/include/poppler/PopplerCache.h:18,
                 from /usr/include/poppler/XRef.h:40,
                 from /usr/include/poppler/PDFDoc.h:48,
                 from CPdfDocument.h:29,
                 from main.cpp:26:
/usr/include/c++/9.2.0/bits/unique_ptr.h:297:7: note: candidate: ‘std::un
ique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<
_Tp, _Dp>&&) [with _Tp = GlobalParams; _Dp = std::default_delete<GlobalPa
rams>]’
  297 |       operator=(unique_ptr&& __u) noexcept
      |       ^~~~~~~~
/usr/include/c++/9.2.0/bits/unique_ptr.h:297:30: note:   no known convers
ion for argument 1 from ‘GlobalParams*’ to ‘std::unique_ptr<GlobalParams>
&&’
  297 |       operator=(unique_ptr&& __u) noexcept
      |                 ~~~~~~~~~~~~~^~~
/usr/include/c++/9.2.0/bits/unique_ptr.h:317:2: note: candidate: ‘templat
e<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<s
td::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename 
std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> 
> >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&
>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&)
 [with _Up = _Up; _Ep = _Ep; _Tp = GlobalParams; _Dp = std::default_delet
e<GlobalParams>]’
  317 |  operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
      |  ^~~~~~~~
/usr/include/c++/9.2.0/bits/unique_ptr.h:317:2: note:   template argument
 deduction/substitution failed:
main.cpp:59:35: note:   mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and 
‘GlobalParams*’
   59 |   globalParams = new GlobalParams();
      |                                   ^
In file included from /usr/include/c++/9.2.0/memory:80,
                 from /usr/include/poppler/PopplerCache.h:18,
                 from /usr/include/poppler/XRef.h:40,
                 from /usr/include/poppler/PDFDoc.h:48,
                 from CPdfDocument.h:29,
                 from main.cpp:26:
/usr/include/c++/9.2.0/bits/unique_ptr.h:326:7: note: candidate: ‘std::un
ique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) 
[with _Tp = GlobalParams; _Dp = std::default_delete<GlobalParams>; std::n
ullptr_t = std::nullptr_t]’
  326 |       operator=(nullptr_t) noexcept
      |       ^~~~~~~~
/usr/include/c++/9.2.0/bits/unique_ptr.h:326:17: note:   no known convers
ion for argument 1 from ‘GlobalParams*’ to ‘std::nullptr_t’
  326 |       operator=(nullptr_t) noexcept
      |                 ^~~~~~~~~
make[2]: *** [Makefile:511: gb_pdf_la-main.lo] Error 1
make[2]: Leaving directory '/shared/work/Gambas/packaging/master/src/gamb
as-v3.14.90/gb.pdf/src'
make[1]: *** [Makefile:437: all-recursive] Error 1
make[1]: Leaving directory '/shared/work/Gambas/packaging/master/src/gamb
as-v3.14.90/gb.pdf'
make: *** [Makefile:369: all] Error 2
[tony at server-amd gb.pdf]$


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

[System]
Gambas=current master
OperatingSystem=Linux
Kernel=5.0.5-1-MANJARO
Architecture=x86_64
Distribution=Manjaro Linux
Desktop=XFCE
Theme=Qt5CTProxy
Language=en_CA.utf8
Memory=5907M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.9
GStreamer=libgstreamer-1.0.so.0.1404.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.3
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.86.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.12.2
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-default
DISPLAY=:0
EDITOR=/usr/bin/nano
GB_GUI=gb.qt5
GDMSESSION=xfce-default
GTK2_RC_FILES=<home>/.gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
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/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORMTHEME=qt5ct
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/820,unix/<hostname>:/tmp/.ICE-unix/820
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=882
SSH_AUTH_SOCK=/tmp/ssh-hHW8iRV2yvEY/agent.881
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_CLASS=user
XDG_SESSION_DESKTOP=xfce-default
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=/usr/bin/xfce4-session




More information about the Bugtracker mailing list