Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650808 - =net-p2p/ktorrent-5.1.0 with >=dev-util/cmake-3.11.0_rc3: error: field ‘update_timer’ has incomplete type ‘QTimer’
Summary: =net-p2p/ktorrent-5.1.0 with >=dev-util/cmake-3.11.0_rc3: error: field ‘updat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-18 18:02 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2018-04-24 08:48 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,22.83 KB, application/x-xz)
2018-03-18 18:03 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-18 18:02:17 UTC
[ 96%] Building CXX object ktorrent/CMakeFiles/ktorrent_app.dir/ktorrent_app_autogen/mocs_compilation.cpp.o
cd /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent && /usr/bin/x86_64-pc-linux-gnu-g++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEA
RRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_TO_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -
I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent -I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0/ktorrent -I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_
autogen/i
nclude -I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0/libktcore -I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/libktcore -I/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KCMUtils -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KParts -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem /usr/include/KF5/Solid -isystem /usr/include/KF5/libktorrent -isystem /usr/include/KF5/KArchive -isystem /usr/include/KF5/KCrash -isystem /usr/include/KF5/KDBusAddons -isystem /usr/include/KF5/KIconThemes -isystem /usr/include/KF5/KIOFileWidgets -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KItemViews -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KNotifyConfig -isystem /usr/include/KF5/KWindowSystem   -DQT_NO_DEBUG -DNDEBUG -march=native -mtune=native -O2 -pipe -std=c++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -fexceptions -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/ktorrent_app.dir/ktorrent_app_autogen/mocs_compilation.cpp.o -c /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/mocs_compilation.cpp
In file included from /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/moc_torrentcreatordlg.cpp:9:0,
                 from /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/mocs_compilation.cpp:10:
/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/../../../../ktorrent-5.1.0/ktorrent/dialogs/torrentcreatordlg.h:86:16: error: field ‘update_timer’ has incomplete type ‘QTimer’
         QTimer update_timer;
                ^~~~~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qwidget.h:44:0,
                 from /usr/include/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/qt5/QtWidgets/QDialog:1,
                 from /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/../../../../ktorrent-5.1.0/ktorrent/dialogs/addpeersdlg.h:25,
                 from /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/moc_addpeersdlg.cpp:9,
                 from /var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build/ktorrent/ktorrent_app_autogen/mocs_compilation.cpp:2:
/usr/include/qt5/QtGui/qwindowdefs.h:76:7: note: forward declaration of ‘class QTimer’
 class QTimer;
       ^~~~~~
make[2]: *** [ktorrent/CMakeFiles/ktorrent_app.dir/build.make:706: ktorrent/CMakeFiles/ktorrent_app.dir/ktorrent_app_autogen/mocs_compilation.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build'
make[1]: *** [CMakeFiles/Makefile2:1862: ktorrent/CMakeFiles/ktorrent_app.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-p2p/ktorrent-5.1.0/work/ktorrent-5.1.0_build'
make: *** [Makefile:130: all] Error 2
 * ERROR: net-p2p/ktorrent-5.1.0::gentoo failed (compile phase):
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-18 18:03:19 UTC
Created attachment 524286 [details]
build.log.xz

# emerge --info ktorrent
Portage 2.3.24 (python 3.6.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0-asneeded, glibc-2.26-r6, 4.14.27 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.27-x86_64-AMD_Opteron-tm-_Processor_6328-with-gentoo-2.4.1
KiB Mem:   132000900 total,  98230240 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 17 Mar 2018 23:30:01 +0000
Head commit of repository gentoo: 8d9802f10404e661b9ff37d732cc4d307442082c
Timestamp of repository poly-c: Sat, 17 Mar 2018 20:33:23 +0000
sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::poly-c, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.11.0_rc3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.254/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

thabairne
    location: /var/lib/layman/thabairne
    masters: gentoo
    priority: 0

poly-c
    location: /usr/local/portage
    masters: gentoo
    priority: 1

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n --fuzzy-search=n --dynamic-deps=n --changed-deps-report=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/init.d/functions.sh /usr/lib/modules-load.d/virtualbox.conf"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de de@1901 en"
MAKEOPTS="-j16"
PKGDIR="/opt/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2 -q"
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 X a52 aac aacs acl acpi activities alsa amd64 berkdb bluetooth bluray branding bzip2 c++0x cairo caps cdda cdr cli consolekit crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac ffmpeg flac gcrypt gdbm gif glamor gmp gnutls gstreamer gtk iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi kwallet lame lcms libcanberra libnotify linguas_de lzma mac mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 quicktime readline rtmp schroedinger sdl seccomp slang speex spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx vulkan widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid xvmc zlib zsh-completion" ABI_X86="64" 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="access_compat alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers http2 include info log_config mime mime_magic rewrite socache_shmcb status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-p2p/ktorrent-5.1.0::gentoo was built with the following:
USE="bwscheduler -debug downloadorder handbook infowidget ipfilter kross logviewer magnetgenerator mediaplayer -rss scanfolder search shutdown stats -test upnp zeroconf" ABI_X86="(64)"
Comment 2 Andreas Sturmlechner gentoo-dev 2018-03-18 18:08:42 UTC
What version of Qt?
Comment 3 Larry the Git Cow gentoo-dev 2018-03-18 18:36:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6610dcce6753bb78526d1c159f8010e64aa70e4d

commit 6610dcce6753bb78526d1c159f8010e64aa70e4d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-03-18 18:32:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-03-18 18:36:22 +0000

    net-p2p/ktorrent: Fix build with Qt 5.11
    
    Bug: https://bugs.gentoo.org/650808
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../ktorrent/files/ktorrent-5.1.0-qt-5.11.patch    | 53 ++++++++++++++++++++++
 net-p2p/ktorrent/ktorrent-5.1.0.ebuild             |  4 +-
 2 files changed, 56 insertions(+), 1 deletion(-)}
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-18 18:47:30 UTC
(In reply to Andreas Sturmlechner from comment #2)
> What version of Qt?

current ~amd64 qt from ::gentoo
Comment 5 Larry the Git Cow gentoo-dev 2018-04-24 08:48:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1968a7bbb830347f73a27c1b98eca3cd8bca9c1d

commit 1968a7bbb830347f73a27c1b98eca3cd8bca9c1d
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-04-24 08:48:14 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-04-24 08:48:49 +0000

    net-p2p/ktorrent: Fixed compilation with cmake-3.11
    
    commit permission kindly granted by asturm
    
    Closes: https://bugs.gentoo.org/650808
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 net-p2p/ktorrent/files/ktorrent-5.1.0-cmake-3.11.patch | 13 +++++++++++++
 net-p2p/ktorrent/ktorrent-5.1.0.ebuild                 |  5 ++++-
 2 files changed, 17 insertions(+), 1 deletion(-)