Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757585 - [kde overlay] kde-misc/kdeconnect-20.11.90[bluetooth]: bluetoothlinkprovider.cpp:276:101: error: invalid new-expression of abstract class type ‘BluetoothDeviceLink’
Summary: [kde overlay] kde-misc/kdeconnect-20.11.90[bluetooth]: bluetoothlinkprovider....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://mail.kde.org/pipermail/releas...
Whiteboard: fixed in 20.12.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-29 10:53 UTC by Fabio Coatti
Modified: 2020-12-01 07:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2020-11-29 10:53:47 UTC
I tried to install kdeconnect from kde overlay and got the following error:
[30/405] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_KIO -DKCOREADDONS_LIB -DKDECONNECT_BLUETOOTH -DQT_BLUETOOTH_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_NETWORK_
LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DTRANSLATION_DOMAIN=\"kdeconnect-core\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkdeconn
ectcore_EXPORTS -Icore -I/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core -Icore/kdeconnectcore_autogen/include -I/var/tmp/portage/kde-misc/kde
connect-20.11.90/work/kdeconnect-kde-20.11.90 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/l
inux-g++ -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/Qca-qt5/QtCrypto -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KI1
8n -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KService -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5
/QtBluetooth  -DQT_NO_DEBUG -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protecto
r-strong -fstack-clash-protection -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -W
non-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -fPIC -fvisibility=hidden -fvisibility-
inlines-hidden -fPIC -std=gnu++11 -MD -MT core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothlinkprovider.cpp.o -MF core/CMakeFiles/kdeconnectcore.dir/backends/bl
uetooth/bluetoothlinkprovider.cpp.o.d -o core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothlinkprovider.cpp.o -c /var/tmp/portage/kde-misc/kdeconnect-20.11.90/wo
rk/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp
FAILED: core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothlinkprovider.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_KIO -DKCOREADDONS_LIB -DKDECONNECT_BLUETOOTH -DQT_BLUETOOTH_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_
NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DTRANSLATION_DOMAIN=\"kdeconnect-core\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkdeconnectcore_E
XPORTS -Icore -I/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core -Icore/kdeconnectcore_autogen/include -I/var/tmp/portage/kde-misc/kdeconnect-2
0.11.90/work/kdeconnect-kde-20.11.90 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ 
-isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/Qca-qt5/QtCrypto -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KI18n -isyst
em /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KService -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtBlueto
oth  -DQT_NO_DEBUG -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong 
-fstack-clash-protection -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtu
al-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -fPIC -fvisibility=hidden -fvisibility-inlines-h
idden -fPIC -std=gnu++11 -MD -MT core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothlinkprovider.cpp.o -MF core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/b
luetoothlinkprovider.cpp.o.d -o core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothlinkprovider.cpp.o -c /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdecon
nect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp: In member function ‘void BluetoothLinkProvider::
clientIdentityReceived(const QBluetoothAddress&, QSharedPointer<MultiplexChannel>)’:
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp:184:101: error: invalid new-expression of abstrac
t class type ‘BluetoothDeviceLink’
  184 |     BluetoothDeviceLink* deviceLink = new BluetoothDeviceLink(deviceId, this, mSockets[peer], socket);
      |                                                                                                     ^
In file included from /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp:11:
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothdevicelink.h:21:29: note:   because the following virtual functions are pure within ‘BluetoothDeviceLink’:
   21 | class KDECONNECTCORE_EXPORT BluetoothDeviceLink
      |                             ^~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/../pairinghandler.h:11,
                 from /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/../linkprovider.h:13,
                 from /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.h:21,
                 from /var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp:7:
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/../devicelink.h:48:29: note:     ‘virtual QSslCertificate DeviceLink::certificate() const’
   48 |     virtual QSslCertificate certificate() const = 0;
      |                             ^~~~~~~~~~~
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp: In member function ‘void BluetoothLinkProvider::serverDataReceived(const QBluetoothAddress&, QSharedPointer<MultiplexChannel>)’:
/var/tmp/portage/kde-misc/kdeconnect-20.11.90/work/kdeconnect-kde-20.11.90/core/backends/bluetooth/bluetoothlinkprovider.cpp:276:101: error: invalid new-expression of abstract class type ‘BluetoothDeviceLink’
  276 |     BluetoothDeviceLink* deviceLink = new BluetoothDeviceLink(deviceId, this, mSockets[peer], socket);
      |                                                                                                     ^


Reproducible: Always




hobbes ~ # emerge --info
Portage 3.0.11 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r3, 5.9.11-cova x86_64)
=================================================================
System uname: Linux-5.9.11-cova-x86_64-Intel-R-_Core-TM-_i7-6820HQ_CPU_@_2.70GHz-with-gentoo-2.7
KiB Mem:    65681968 total,  57792764 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 29 Nov 2020 08:35:39 +0000
Head commit of repository gentoo: aae3025d33176debca4f02de595788e618bfaa00

sh bash 5.0_p18
ld GNU gold (Gentoo 2.35.1 p2 2.35.1) 1.16
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo, 3.10.0_alpha1::gentoo
dev-util/cmake:           3.19.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            7.5.0-r1::gentoo, 8.4.0-r1::gentoo, 9.3.0-r2::gentoo, 10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/kde.git
    masters: gentoo
    priority: 50

nvidia-docker-overlay
    location: /var/lib/layman/nvidia-docker-overlay
    sync-type: laymansync
    sync-uri: https://github.com/gronastech/nvidia-docker-overlay.git
    masters: gentoo
    priority: 50

local
    location: /usr/overlay
    masters: gentoo
    priority: 51

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -fstack-clash-protection"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -fstack-clash-protection"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_IE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -fstack-clash-protection -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en it de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi activities aim alsa amd64 apng appstream ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo caps cdda cdr cjk cli crypt cups curl dba dbus declarative device-mapper dga divx divx4linux dri dts dv dvb dvd dvdr dvdread eap-sim edl egl emboss encode ethereal evdev exif expat faad fam fame fbcon ffmpeg fftw flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp gmedia gmp gnutls gphoto2 gpm gps gsm gtk gui h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript joystick jpeg kde kipi kontact kvm kwallet lastfm lcms libglvnd libnotify libtirpc libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng mozdevelop mozilla mp3 mp4 mpeg msn mtp multilib mysql ncurses network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds pulseaudio qemu qml qt5 readline real rtc ruby samba sasl sdl seccomp semantic-desktop semantic-destkop sha512 sip slang slp smartcard sndfile snmp sox speex spell split-usr srt sse sse2 ssh ssl ssse3 startup-notification svg symlink systemd tcltk tcpd telepathy theora threads tiff tk touchpad tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vdpaum vhosts video videos vim-syntax virt-network virtualbox vorbis vulkan wav wayland widgets wifi wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xface xft xine xinerama xml xosd xpm xscreensaver xsl xv xvid zeroconf zlib zpm" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en it de en_IE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="i965 intel nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Sturmlechner gentoo-dev 2020-11-29 23:42:45 UTC
https://invent.kde.org/network/kdeconnect-kde/-/jobs/79963
Comment 2 Andreas Sturmlechner gentoo-dev 2020-11-30 22:44:36 UTC
https://invent.kde.org/network/kdeconnect-kde/-/commit/9082ed4699d0c72a96ddc4ef6dfec2b761275f31

Do you actually use the bluetooth option with kdeconnect? From what I hear it is not really working anyway and I tend to maybe drop the option in the future.
Comment 3 Fabio Coatti 2020-12-01 07:39:51 UTC
(In reply to Andreas Sturmlechner from comment #2)
> https://invent.kde.org/network/kdeconnect-kde/-/commit/
> 9082ed4699d0c72a96ddc4ef6dfec2b761275f31
> 
> Do you actually use the bluetooth option with kdeconnect? From what I hear
> it is not really working anyway and I tend to maybe drop the option in the
> future.

Well, honestly I used bluetooth quite a long ago, not recently. I simple noticed the error and reported it. I can very well switch off the use flag, but at least the compilation should complete without errors.