Bug 252366 - pykde4/kio compiling error
Summary: pykde4/kio compiling error
Status: RESOLVED UNMAINTAINED
Alias: None
Product: bindings
Classification: Unmaintained
Component: pykde (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 19:18 UTC by Taurnil
Modified: 2018-11-17 05:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
make failure with latest sip, PyQt4 and qscintilla (24.46 KB, application/x-bzip)
2010-09-25 19:18 UTC, Taurnil
Details
This patch, applied to PyQt 4.7.7 should fix this issue. (531 bytes, patch)
2010-10-01 23:03 UTC, Hans-Peter Jansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Taurnil 2010-09-25 19:18:43 UTC
Created attachment 51983 [details]
make failure with latest sip, PyQt4 and qscintilla

Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

This is in relation to Bug; https://bugs.kde.org/show_bug.cgi?id=249740 and using;

Python-2.6.6
sip 4.11
pyqt 4.7.5
qscintilla 2.4.5

And compiled in the order listed.


Reproducible: Always

Steps to Reproduce:
Apply patch from https://api.opensuse.org/public/source/openSUSE:Factory/kdebindings4/build-with-new-python-qt4.diff?rev=1826df0c31ec11923092790bdbabe444

Actual Results:  
This is a small snip (trailing end) of the make;

/usr/src/kdebindings-4.5.1/python/pykde4/sip/kio/kabstractfilemodule.sip: In function 'const sipTypeDef* sipSubClass_KAbstractFileModule(void**)':
/usr/src/kdebindings-4.5.1/python/pykde4/sip/kio/kabstractfilemodule.sip:169:49: warning: 'KCrashBookmarkImporter' is deprecated (declared at /usr/include/kbookmarkimporter_crash.h:36)
/usr/src/kdebindings-4.5.1/python/pykde4/sip/kio/kabstractfilemodule.sip:185:42: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
/usr/src/kdebindings-4.5.1/python/pykde4/sip/kio/kabstractfilemodule.sip:335:46: warning: 'PasswordDialog' is deprecated (declared at /usr/include/kio/passworddialog.h:38)
/usr/include/kio/tcpslavebase.h: In function 'PyObject* slot_KIO_TCPSlaveBase_SslResult___xor__(PyObject*, PyObject*)':
/usr/include/kio/tcpslavebase.h:63:10: error: 'enum KIO::TCPSlaveBase::SslResultDetail' is protected
/usr/share/sip/PyQt4/QtCore/qglobal.sip:320:95: error: within this context
/usr/include/kio/tcpslavebase.h: In function 'PyObject* slot_KIO_TCPSlaveBase_SslResult___or__(PyObject*, PyObject*)':
/usr/include/kio/tcpslavebase.h:63:10: error: 'enum KIO::TCPSlaveBase::SslResultDetail' is protected
/usr/share/sip/PyQt4/QtCore/qglobal.sip:315:95: error: within this context
sipkiopart0.cpp: In function 'PyObject* meth_KIO_SlaveInterface_connection(PyObject*, PyObject*)':
sipkiopart0.cpp:11970:30: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
sipkiopart0.cpp: In function 'PyObject* meth_KIO_SlaveInterface_setConnection(PyObject*, PyObject*)':
sipkiopart0.cpp:12074:27: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
sipkiopart0.cpp: In function 'PyObject* meth_KIO_Scheduler_scheduleJob(PyObject*, PyObject*)':
sipkiopart0.cpp:16243:43: warning: 'static void KIO::Scheduler::scheduleJob(KIO::SimpleJob*)' is deprecated (declared at /usr/include/kio/scheduler.h:128)
make[2]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kio.dir/sip/kio/sipkiopart0.o] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kio.dir/all] Error 2
make: *** [all] Error 2




Attached is a compile log of the whole cmake/make process.
Comment 1 Hans-Peter Jansen 2010-09-26 00:44:11 UTC
I've reported this bug here:

http://www.riverbankcomputing.com/pipermail/pyqt/2010-September/027912.html

This also contains an excerpt of the generated source, where the error occurs.

#line 320 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KIO::TCPSlaveBase::SslResult(*a0 ^ (KIO::TCPSlaveBase::SslResultDetail(a1)));
#line 7221 "sipkiopart0.cpp"

I've no idea, why accessing KIO::TCPSlaveBase::SslResultDetail is not able here, but I'm C++ rookie..

The issue derives from a fix of this issue:

Phil added code into recent sip in order to make enum flags orable without
unnecessarily depending on order or type of flags.

http://www.riverbankcomputing.com/pipermail/pyqt/2010-September/027728.html
Comment 2 Hans-Peter Jansen 2010-10-01 23:03:11 UTC
Created attachment 52154 [details]
This patch, applied to PyQt 4.7.7 should fix this issue.
Comment 3 renato gallo 2010-10-03 11:56:43 UTC
i can confirm that applying the patch solves the issue. I hope that it can be included in the source soon
Comment 4 renato gallo 2010-10-03 12:03:25 UTC
System uname: Linux-2.6.35-gentoo-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 02 Oct 2010 09:00:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     9999
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.51.0.11
sys-devel/gcc:       4.3.3-r2, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /var/bind /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en no nb"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib abyss accessibility acl ads alsa amd64 amr apache2 applet archive artworkextra async asyncns authdaemond authfile authlib autoipd automount autotrace avahi ban bash-completion beagle berkdb bluetooth bookmarks branding bugzilla build bzip2 cairo capi caps case cdda cdr celt cgi cifsupcall cisco cjk clamav clamdtop cleartype cli connection-sharing consolekit contrast courier cpusets cracklib crypt ctype cups curl cvs cxx dbus deflate deskbar device-mapper dga dhclient dhcpcd dirac directfb diskio djvu dlz dmx dns dri dtmf dvb dvd dvdr dvi dynamicplugin elf elisp emacs emacs22icons emf encode esd eurephia examples exchange exif expat extensible extensions extra-tools extras faac faad fam fax fbcon fbcondecor ffmpeg fftw filter flac fontconfig fontforge fortran fpx ftp fuse fusion galago gcdmaster gd gdbm gdu geoip ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm graphviz gs gsf gsm gstreamer gtk guile gzip-el h224 h281 h323 hal hdri hesiod heterogeneous howl-compat http http-forms http-server iax iconv icu idn ieee1394 ifsession imagemagick imap imlib iproute2 ipv6 ivr ixj java jbig jpeg jpeg2k json kdrive kerberos krb5 lame lasi lcms ldap ldirectord lensfun libcaca libnotify libsamplerate lid lilo lirc lm_sensors lqr lzo mad maildir management mdnsresponder-compat mfd-rewrites mhash milter ming mmap mmx mng modules mono moonlight motif mozsha1 mp3 mpeg mpi mudflap multilib mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nas nat nat-transport nautilus ncurses net network networking networkmanager nls nntp nptl nptlonly nsplugin nss odbc ogg old-daemons openexr opengl openmp openntpd openssl opensslcrypt oss overlays pam parse-clocks passwordsave pbs pccts pcre pdf perl php pic pipechan pkcs11 plotutils png policykit poll pop posix ppds pppd pst pulseaudio python python3 q32 q8 qt3support qt4 quotas radius rar raw razor readline reflection resolvconf rewrite rle romio rpm rrdcgi ruby samba sample sasl sbc schroedinger sdb-ldap sdl secure-delete semantic-desktop sendmail sensord server session shaper sidebar sip sipim sitemisc slang slp smp smux snmp sockets socks5 softquota sound spamassassin speex spell spl sql sqlite srtp sse sse2 ssl startup-notification stats subversion svg swat swig sysfs syslog t1lib taglib tcl tcpd test-programs theora threads tiff timezone tk toolbar toolkit-scroll-bars tools tracker truetype tslib unicode unrar ups urandom usb utils v4l v4l2 vcd vda vdpau vhook vhosts vim-syntax vorbis vpb vroot vt vxml wav wavpack webdav webkit wicd winbind wmf wxwidgets x264 xcb xemacs xen xft xine xinerama xinetd xml xmlreader xmlrpc xmlwriter xmp xorg xpm xscreensaver xsl xv xvid xvmc zeroconf zlib zsh-completion" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cgi cgid actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="event" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse acecad aiptek elographics fpit hyperpen joystick mutouch penmount synaptics tslib virtualbox vmmouse void " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en no nb" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 Andrea Scarpino 2010-10-23 12:50:43 UTC
(In reply to comment #2)
> Created an attachment (id=52154) [details]
> This patch, applied to PyQt 4.7.7 should fix this issue.
this patch is no more needed. I successfully built kdebindings applying the patch from #249740
Comment 6 Hans-Peter Jansen 2010-10-23 13:48:17 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > Created an attachment (id=52154) [details] [details]
> > This patch, applied to PyQt 4.7.7 should fix this issue.
> this patch is no more needed. I successfully built kdebindings applying the
> patch from #249740

Probably because you build it with PyQt 4.8 which has this fix included of course, or an earlier version.
Comment 7 Andrew Crouthamel 2018-11-17 05:25:14 UTC
Hello, unfortunately this bug is being closed as unmaintained, per request of einar77.