Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248472 - kde-base/pykde4-4.1.2 fails to compile (sipkdecorepart7.cpp)
Summary: kde-base/pykde4-4.1.2 fails to compile (sipkdecorepart7.cpp)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 22:44 UTC by Howard B. Golden
Modified: 2009-04-16 03:33 UTC (History)
3 users (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 Howard B. Golden 2008-11-23 22:44:34 UTC
While emerging kde-base/pykde4-4.1.2, the process fails while compiling sipkdecorepart7.cpp. 

The cascade of errors begins with this line:

/usr/share/sip/QtCore/qlist.sip:83: error: 'sipClass_KService_Ptr' was not declared in this scope

Digging deeper, it appears to me that this isn't in any of the .sip files, but it should be.

Reproducible: Always

Steps to Reproduce:
1. emerge kde-base/pykde4

Actual Results:  
Compilation fails during sipkdecorepart7.cpp. First error message:

/usr/share/sip/QtCore/qlist.sip:83: error: 'sipClass_KService_Ptr' was not declared in this scope

All messages including the above:

[ 11%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart7.o                                                                                                    
In file included from /usr/include/python2.5/Python.h:13,                                                  
                 from /usr/include/python2.5/sip.h:28,                                                     
                 from /var/tmp/portage/kde-base/pykde4-4.1.2/work/pykde4_build/python/pykde4/sip/kdecore/sipAPIkdecore.h:11,                                                                                          
                 from /var/tmp/portage/kde-base/pykde4-4.1.2/work/pykde4_build/python/pykde4/sip/kdecore/sipkdecorepart7.cpp:7:                                                                                       
/usr/include/python2.5/pyconfig.h:976:1: warning: "_XOPEN_SOURCE" redefined                                
<command-line>: warning: this is the location of the previous definition                                   
/usr/include/kconfiggroup.h:564: warning: 'virtual const KConfigGroup KConfigGroup::groupImpl(const QByteArray&) const' was hidden                                                                                    
sipkdecorepart7.cpp:4218: warning:   by 'virtual KConfigGroup sipKConfigGroup::groupImpl(const QByteArray&)'                                                                                                          
sipkdecorepart7.cpp: In function 'PyObject* meth_KConfigGroup_changeGroup(PyObject*, PyObject*)':          
sipkdecorepart7.cpp:4635: warning: 'void KConfigGroup::changeGroup(const QString&)' is deprecated (declared at /usr/include/kconfiggroup.h:130)                                                                       
sipkdecorepart7.cpp:4652: warning: 'void KConfigGroup::changeGroup(const char*)' is deprecated (declared at /usr/include/kconfiggroup.h:131)                                                                          
/usr/include/kconfig.h: At global scope:                                                                   
/usr/include/kconfig.h:255: warning: 'virtual const KConfigGroup KConfig::groupImpl(const QByteArray&) const' was hidden                                                                                              
sipkdecorepart7.cpp:8078: warning:   by 'virtual KConfigGroup sipKConfig::groupImpl(const QByteArray&)'    
sipkdecorepart7.cpp: In function 'PyObject* meth_KConfig_setForceGlobal(PyObject*, PyObject*)':            
sipkdecorepart7.cpp:8719: warning: 'void KConfig::setForceGlobal(bool)' is deprecated (declared at /usr/include/kconfig.h:227)                                                                                        
sipkdecorepart7.cpp: In function 'PyObject* meth_KConfig_forceGlobal(PyObject*, PyObject*)':               
sipkdecorepart7.cpp:8747: warning: 'bool KConfig::forceGlobal() const' is deprecated (declared at /usr/include/kconfig.h:234)                                                                                         
/usr/share/sip/QtCore/qlist.sip: In function 'int convertTo_QList_27000600KSharedPtr_0200KService(PyObject*, void**, int*, PyObject*)':                                                                               
/usr/share/sip/QtCore/qlist.sip:83: error: 'sipClass_KService_Ptr' was not declared in this scope          
/usr/share/sip/QtCore/qlist.sip:95: error: 'sipClass_KService_Ptr' was not declared in this scope          
/usr/share/sip/QtCore/qlist.sip: In function 'PyObject* convertFrom_QList_27000600KSharedPtr_0200KService(void*, PyObject*)':                                                                                         
/usr/share/sip/QtCore/qlist.sip:59: error: 'sipClass_KService_Ptr' was not declared in this scope          
sipkdecorepart7.cpp: In function 'void assign_QList_27000600KSharedPtr_0200KService(void*, const void*)':  
sipkdecorepart7.cpp:13457: error: redefinition of 'void assign_QList_27000600KSharedPtr_0200KService(void*, const void*)'                                                                                             
sipkdecorepart7.cpp:11134: error: 'void assign_QList_27000600KSharedPtr_0200KService(void*, const void*)' previously defined here                                                                                     
sipkdecorepart7.cpp: In function 'void release_QList_27000600KSharedPtr_0200KService(void*, int)':         
sipkdecorepart7.cpp:13465: error: redefinition of 'void release_QList_27000600KSharedPtr_0200KService(void*, int)'                                                                                                    
sipkdecorepart7.cpp:11142: error: 'void release_QList_27000600KSharedPtr_0200KService(void*, int)' previously defined here                                                                                            
sipkdecorepart7.cpp: In function 'int convertTo_QList_27000600KSharedPtr_0200KService(PyObject*, void**, int*, PyObject*)':                                                                                           
sipkdecorepart7.cpp:13475: error: redefinition of 'int convertTo_QList_27000600KSharedPtr_0200KService(PyObject*, void**, int*, PyObject*)'                                                                           
sipkdecorepart7.cpp:11152: error: 'int convertTo_QList_27000600KSharedPtr_0200KService(PyObject*, void**, int*, PyObject*)' previously defined here                                                                   
sipkdecorepart7.cpp: In function 'void* forceConvertTo_QList_27000600KSharedPtr_0200KService(PyObject*, int*)':                                                                                                       
sipkdecorepart7.cpp:13523: error: redefinition of 'void* forceConvertTo_QList_27000600KSharedPtr_0200KService(PyObject*, int*)'                                                                                       
sipkdecorepart7.cpp:11201: error: 'void* forceConvertTo_QList_27000600KSharedPtr_0200KService(PyObject*, int*)' previously defined here                                                                               
sipkdecorepart7.cpp: In function 'PyObject* convertFrom_QList_27000600KSharedPtr_0200KService(void*, PyObject*)':                                                                                                     
sipkdecorepart7.cpp:13550: error: redefinition of 'PyObject* convertFrom_QList_27000600KSharedPtr_0200KService(void*, PyObject*)'                                                                                     
sipkdecorepart7.cpp:11228: error: 'PyObject* convertFrom_QList_27000600KSharedPtr_0200KService(void*, PyObject*)' previously defined here                                                                             
sipkdecorepart7.cpp: At global scope:                                                                      
sipkdecorepart7.cpp:13583: error: redefinition of 'sipMappedType sipMappedTypeDef_QList_27000600KSharedPtr_0200KService'                                                                                              
sipkdecorepart7.cpp:11261: error: 'sipMappedType sipMappedTypeDef_QList_27000600KSharedPtr_0200KService' previously defined here                                                                                      
make[2]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart7.o] Error 1

Expected Results:  
Should have compiled successfully.

I am using the following versions of software:
 x11-libs/qt-4.4.2
 kde-base/kdelibs-4.1.3-r1
 dev-python/PyQt4-4.4.4-r1
 dev-python/sip-4.7.9
    
emerge --info:
Portage 2.2_rc15 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5400+-with-glibc2.2.5
Timestamp of tree: Sun, 23 Nov 2008 18:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r6, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb /var/qm
ail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-ph
p5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/l
anguage.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ h
ttp://open-systems.ufl.edu/mirrors/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/dist
files --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/haskell /usr/local/portage/laym
an/vmware /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac accessibility acl acpi alsa amd64 apache2 arts bash-completion berkdb bluetooth branding bsf bzip2 cairo cdb cdparanoia cdr cg
i clamav cli cracklib crypt cscope ctype cups curl curlwrappers cxx dbase dbm dbus dbx device-mapper dga directfb doc dri dssi dvb dvd dvdr dvdread
 eds emboss encode esd evo examples expat fam fastcgi fat ffmpeg firefox foomaticdb fortran ftp gcj gd gdbm gif ginac glade glib glitz glut gnome g
nomecanvas gnutls gphoto2 gpm graphviz gstreamer gtk gtkhtml guile hal haskell hbci hddtemp hdf5 hfs htmlhandbook httpd iconv idn ieee1394 imagemag
ick imap imlib inifile innodb iodbc ipod ipv6 isdnlog jabber jack java java6 javacomm javascript jce jfs jpeg kde kde4 kdeenablefinal kdehiddenvisi
bility kerberos kpathsea ladcca ladspa latex ldap libffi libgda libnotify libwww lm_sensors mad maildir math mbox midi mikmod mime mmap mmx mono mo
zdevelop mp3 mpeg mplayer mudflap multilib mysql mysqli ncurses networking nls nptl nptlonly nsplugin ntfs objc objc++ objc-gc ocaml ocamlduce ocam
lopt odbc odk ofx ogg opengl openmp oracle oscar pam pch pcre pdf perl png posix postgres ppds pppd profile pulseaudio python qmail qt3 qt3support 
qt4 quicktime quotes radius readline reflection reiserfs rss ruby samba sasl sdl seamonkey session sharedext simplexml snmp soap sockets sound sour
ce sourceview spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs syslog tcl tcpd threads tidy tiff timidity tk tokenizer tools tr
uetype unicode usb v4l2 vboxwebsrv vhosts vim-syntax vnc vorbis wddx webdav wmf wxwindows x264 xattr xcb xcomposite xforms xine xinetd xml xmlreade
r xmlrpc xmlwriter xorg xulrunner xv xvid zip zlib" ALSA_CARDS="sbawe hdsp hdspm" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty e
xtplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions a
lias 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 dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cach
e mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DE
VICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" 
USERLAND="GNU" VIDEO_CARDS="vga vesa fbdev nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_O
PTS
Comment 1 STTGentoo 2008-11-29 12:11:56 UTC
I have found this lines that I don't understand them 


cmake package FindKDevPlatform.cmake was not found. The package KDevPlatform is needed to compile all part of this program

cmake package FindOkular.cmake was not found. The package Okular is needed to compile all part of this program.

I have Okular because is a kde depend but when search for FindKDevPlatform i find out that is just a 9999 version 

I had re-emerge Okular but i get the same line  that cmake cannot find it
Comment 2 Daniel J. 2009-01-08 16:22:28 UTC
I'm not sure that comment #1 refers to the same bug reported here.

This bug persists when trying to build pykde4-4.1.3 (not yet in portage).  I'm not sure whether the problem is in pykde4 or dev-python/sip (if I knew which, I'd file a bug upstream).

I don't know much about sip, but it appears that /usr/share/sip/QtCore/qlist.sip is used as a template, and in this case the wrong value (namely sipClass_KService_Ptr) is plugged into the template.  My wild guess would be that it should be sipClass_KService (minus the _Ptr) since that is an entity that appears in multiple other source files.

Has anyone successfully compiled this package?
Comment 3 Daniel J. 2009-01-09 16:38:28 UTC
FWIW, live pykde4 from the kde-crazy overlay solves the problem.  Over the next few days I'll try to see if I can figure out what change fixed it.
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2009-04-14 13:10:12 UTC
Could you attach a full build log.
Comment 5 Howard B. Golden 2009-04-16 03:33:02 UTC
(In reply to comment #4)
> Could you attach a full build log.

I'm now running kde-base/pykde4-4.2.1. I don't have the build log from before and that version is no longer in the tree. Since I don't have the problem with version 4.2.1, which is the oldest version still in the tree, I'm closing the bug.