Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51267 - KGPG 1.0.0 fails to compile (QT error?)
Summary: KGPG 1.0.0 fails to compile (QT error?)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-17 04:27 UTC by Markus Luisser
Modified: 2004-05-17 23:45 UTC (History)
0 users

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 Markus Luisser 2004-05-17 04:27:26 UTC
I can reproduce the following error:

------------------------%<------------------------
# emerge kgpg
[...]
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -fomit-frame-pointer -fno-exceptions -fno-check-new  -c -o searchres.o `test -f 'searchres.cpp' || echo './'`searchres.cpp
keyserver.cpp: In constructor `Keyserver::Keyserver(QWidget*, const char*,
   bool, unsigned int)':
keyserver.cpp:50: error: invalid use of undefined type `struct KComboBox'
keyserver.h:23: error: forward declaration of `struct KComboBox'
keyserver.cpp:52: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KComboBox*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:54: error: invalid use of undefined type `struct KLineEdit'
keyserver.h:24: error: forward declaration of `struct KLineEdit'
keyserver.cpp:56: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KLineEdit*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:82: error: invalid use of undefined type `struct KLineEdit'
keyserver.h:24: error: forward declaration of `struct KLineEdit'
keyserver.cpp:83: error: `setEnabled' undeclared (first use this function)
keyserver.cpp:83: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
keyserver.cpp:84: error: `sizePolicy' undeclared (first use this function)
keyserver.cpp:84: error: `setSizePolicy' undeclared (first use this function)
keyserver.cpp:85: error: `setReadOnly' undeclared (first use this function)
keyserver.cpp:87: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KLineEdit*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:99: error: invalid use of undefined type `struct KComboBox'
keyserver.h:23: error: forward declaration of `struct KComboBox'
keyserver.cpp:101: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KComboBox*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:103: error: invalid use of undefined type `struct KComboBox'
keyserver.h:23: error: forward declaration of `struct KComboBox'
keyserver.cpp:105: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KComboBox*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:115: error: invalid use of undefined type `struct KLineEdit'
keyserver.h:24: error: forward declaration of `struct KLineEdit'
keyserver.cpp:120: error: no matching function for call to `QGridLayout::
   addWidget(KLineEdit*&, int, int)'
/usr/qt/3/include/qlayout.h:331: error: candidates are: void
   QGridLayout::addWidget(QWidget*, int, int, int)
keyserver.cpp:137: error: invalid use of undefined type `struct KListView'
keyserver.h:27: error: forward declaration of `struct KListView'
keyserver.cpp:138: error: `addColumn' undeclared (first use this function)
keyserver.cpp:140: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KListView*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
keyserver.cpp:170: error: no matching function for call to `Keyserver::
   setTabOrder(QTabWidget*&, KComboBox*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:171: error: no matching function for call to `Keyserver::
   setTabOrder(KComboBox*&, KLineEdit*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:172: error: no matching function for call to `Keyserver::
   setTabOrder(KLineEdit*&, QPushButton*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:175: error: no matching function for call to `Keyserver::
   setTabOrder(QPushButton*&, KComboBox*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:176: error: no matching function for call to `Keyserver::
   setTabOrder(KComboBox*&, KComboBox*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:177: error: no matching function for call to `Keyserver::
   setTabOrder(KComboBox*&, KListView*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp:178: error: no matching function for call to `Keyserver::
   setTabOrder(KListView*&, QPushButton*&)'
/usr/qt/3/include/qwidget.h:309: error: candidates are: static void
   QWidget::setTabOrder(QWidget*, QWidget*)
keyserver.cpp: In member function `virtual void Keyserver::languageChange()':
keyserver.cpp:209: error: `header' undeclared (first use this function)
make[3]: *** [keyserver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
searchres.cpp: In constructor `searchres::searchres(QWidget*, const char*,
   bool, unsigned int)':
searchres.cpp:41: error: invalid use of undefined type `struct KListView'
searchres.h:21: error: forward declaration of `struct KListView'
searchres.cpp:42: error: `addColumn' undeclared (first use this function)
searchres.cpp:42: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
searchres.cpp:43: error: `setAllColumnsShowFocus' undeclared (first use this
   function)
searchres.cpp:44: error: `setShowSortIndicator' undeclared (first use this
   function)
searchres.cpp:45: error: `setRootIsDecorated' undeclared (first use this
   function)
searchres.cpp:46: error: `setFullWidth' undeclared (first use this function)
searchres.cpp:48: error: no matching function for call to `QGridLayout::
   addMultiCellWidget(KListView*&, int, int, int, int)'
/usr/qt/3/include/qlayout.h:333: error: candidates are: void
   QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
searchres.cpp:56: error: invalid use of undefined type `struct KLineEdit'
searchres.h:23: error: forward declaration of `struct KLineEdit'
searchres.cpp:57: error: `setMaxLength' undeclared (first use this function)
searchres.cpp:59: error: no matching function for call to `QGridLayout::
   addWidget(KLineEdit*&, int, int)'
/usr/qt/3/include/qlayout.h:331: error: candidates are: void
   QGridLayout::addWidget(QWidget*, int, int, int)
searchres.cpp: In member function `virtual void searchres::languageChange()':
searchres.cpp:90: error: `header' undeclared (first use this function)
make[3]: *** [searchres.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/kgpg-1.0.0/work/kgpg-1.0.0/kgpg/kgpg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kgpg-1.0.0/work/kgpg-1.0.0/kgpg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kgpg-1.0.0/work/kgpg-1.0.0'
make: *** [all] Error 2

!!! ERROR: app-crypt/kgpg-1.0.0 failed.
!!! Function kde_src_compile, Line 129, Exitcode 2
!!! died running emake, kde_src_compile:make
------------------------%<------------------------

earlier today i upgraded QT:

------------------------%<------------------------
# genlop qt
 * x11-libs/qt

     Wed Apr 28 07:18:21 2004 --> x11-libs/qt-3.3.0-r1
     Mon May 17 10:43:38 2004 --> x11-libs/qt-3.3.2

 merged totally 2 ebuilds.
------------------------%<------------------------

which might be a reason but i hadnt kgpg emerged before that so i might be completely on the wrong track.

more info:

------------------------%<------------------------
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6-rc1)
=================================================================
System uname: 2.6.6-rc1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo http://gentoo.inode.at ftp://ftp.gentoo.skynet.be/pub/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb cdr crypt cscope cups dga directfb dvd encode esd ethereal fastcgi fbcon foomaticdb gd gdbm gif gnome gpm gtk gtk2 hardened imagemagick imlib ipv6 java jpeg kde kerberos lcms libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nls odbc oggvorbis oggvorbs opengl oss pam pdflib perl plotutils png python qt quicktime readline samba scanner sdl slang speex spell ssl svga tcpd tetex tiff truetype video_cards_radeon wmf x86 xml2 xmms xv zlib"
------------------------%<------------------------
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-05-17 06:43:49 UTC
I think that you shouldn't use this ebuild becaue it's quite old.

The latest kgpg is included in kdeutils-3.2.X
So try emerging it.

Bye!

Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-05-17 17:37:26 UTC
he's right, plus kgpg isn't in portage anymore.
Comment 3 Markus Luisser 2004-05-17 23:45:01 UTC
hehe - i even had it installed - sometimes i think portage is *too* comfortable - sorry for the bug noise

thx