kde-base/dcoppython-3.5.5 fails with the following error: marshaller.cpp: In member function 'bool PythonDCOP::Marshaller::marshalDict(const PythonDCOP::PCOPType&, const PythonDCOP::PCOPType&, PyObject*, QDataStream*) const': marshaller.cpp:129: error: cannot convert 'ssize_t*' to 'int*' for argument '2' to 'int PyDict_Next(PyObject*, int*, PyObject**, PyObject**)' marshaller.cpp:138: error: cannot convert 'ssize_t*' to 'int*' for argument '2' to 'int PyDict_Next(PyObject*, int*, PyObject**, PyObject**)' make[4]: *** [pcop_la.all_cpp.lo] Error 1 make[4]: Leaving directory `/usr/var/tmp/portage/kde-base/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/var/tmp/portage/kde-base/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/var/tmp/portage/kde-base/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/var/tmp/portage/kde-base/dcoppython-3.5.5/work/dcoppython-3.5.5' make: *** [all] Error 2
same error for me, on amd64 too.
Same for me. Before the error showed in the first post there's this warinig: -------------- config.status: creating config.h config.status: executing depfiles commands A C# compiler wasn't found. The Qt# bindings need either Mono, Portable.NET or Rotor. You will need three things to compile the Qt# bindings: 1. A C# compiler -- Mono's mcs, DotGNU/Portable.NET's cscc, or Rotors csc. 2. A CLR JIT. Mono's works the best right now. Qt# will work somewhat with DotGNU/Portable.NET's ilrun and with Rotor's JIT. 3. Portable.NET's csant tool. This is a Java ANT like build tool for C# programs. You can find these tools at the following locations: http://www.southern-storm.com.au/portable_net.html http://go-mono.org http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?URL=/MSDN-FILES/028/000/123/topic.xml make all-recursive make[1]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5' Making all in dcoppython make[2]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython' Making all in shell make[3]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' /usr/bin/python ./gen_marshal_code.py ./marshal_funcs.data marshal_funcs.h marshal_funcs_doc.xml make all-am make[4]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' creating pcop_la.all_cpp.cpp ... /bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/python2.4 -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o pcop_la.all_cpp.lo pcop_la.all_cpp.cpp In file included from /usr/include/python2.4/Python.h:13, from pcop.h:14, from pcop.cpp:12, from pcop_la.all_cpp.cpp:2: /usr/include/python2.4/pyconfig.h:847:1: warning: "_XOPEN_SOURCE" redefined <command line>:1:1: warning: thisconfig.status: creating config.h config.status: executing depfiles commands A C# compiler wasn't found. The Qt# bindings need either Mono, Portable.NET or Rotor. You will need three things to compile the Qt# bindings: 1. A C# compiler -- Mono's mcs, DotGNU/Portable.NET's cscc, or Rotors csc. 2. A CLR JIT. Mono's works the best right now. Qt# will work somewhat with DotGNU/Portable.NET's ilrun and with Rotor's JIT. 3. Portable.NET's csant tool. This is a Java ANT like build tool for C# programs. You can find these tools at the following locations: http://www.southern-storm.com.au/portable_net.html http://go-mono.org http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?URL=/MSDN-FILES/028/000/123/topic.xml make all-recursive make[1]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5' Making all in dcoppython make[2]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython' Making all in shell make[3]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' /usr/bin/python ./gen_marshal_code.py ./marshal_funcs.data marshal_funcs.h marshal_funcs_doc.xml make all-am make[4]: se ingresa al directorio `/var/tmp/portage/dcoppython-3.5.5/work/dcoppython-3.5.5/dcoppython/shell' creating pcop_la.all_cpp.cpp ... /bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/python2.4 -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o pcop_la.all_cpp.lo pcop_la.all_cpp.cpp In file included from /usr/include/python2.4/Python.h:13, from pcop.h:14, from pcop.cpp:12, from pcop_la.all_cpp.cpp:2: /usr/include/python2.4/pyconfig.h:847:1: warning: "_XOPEN_SOURCE" redefined <command line>:1:1: warning: this is the location of the previous definition pcop.cpp:701: warning: unused parameter 'self' marshaller.cpp: In member function 'bool PythonDCOP::Marshaller::marshalDict(const PythonDCOP::PCOPType&, const PythonDCOP::PCOPType&, PyObject*, QDataStream*) const': is the location of the previous definition pcop.cpp:701: warning: unused parameter 'self' marshaller.cpp: In member function 'bool PythonDCOP::Marshaller::marshalDict(const PythonDCOP::PCOPType&, const PythonDCOP::PCOPType&, PyObject*, QDataStream*) const':
I updated my stable dev-lang/mono-1.1.13.8.1 and dev-dotnet/libgdiplus-1.1.13.2 to ~amd64 v1.2, just in case, but then re-emerging dcoppython-3.5.5 failed the same way. I also tried installing ml-pnet, to no avail. Re-emerging python wasn't good, neither. What can we try? My emerge info: ========================= Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.6 Last Sync: Tue, 14 Nov 2006 07:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="es_ES.UTF-8" LC_ALL="es_ES.UTF-8" LINGUAS="en es es_ES" PKGDIR="/home/ramiro/usr/local/portage/pkgdir-backup/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns aim alsa amd ao aotuv apache2 apm applet ares arts asf async atlas auctex audacious audiofile auth authdaemond authfile authlib automount background bash-completion bcmath bdf beagle berkdb bidi bindist binfilter bitmap-fonts bl bmpx bonjour bonobo bootsplash branding bzip2 cairo caps catalogs cdda cddb cdinstall cdio cdparanoia cdr cdrom chm chroot clamav clamd cli corba cpudetection cracklib crypt css ctype cups curl curlwrappers dba dbase dbm dbus dbx dga dio directfb disk-cache diskio dlloader dpms dri dts dv dvd dvdr dvdread dxr3 dynagraph edl effects elibc_glibc emboss emul-linux-x86 encode epson erandom escreen esd ethereal evo exif expat extensions fam fame fastcgi fat fbcon ffmpeg fftw firefox flac flash flatfile floppyboot font-server fontconfig foomaticdb fortran fpx ftp fuse gd gdbm geoip gif gimp ginac glibc-omitfp glitz glut gmail gmailtimestamps gmp gnome gnome-print gnustep gnutls gphoto2 gpm gs gsnd gstreamer gtk gtk2 gtkhtml guile gzip hal hddtemp hfs hpn httpd hyperwave-api i8x0 iconv icq id3 idea idled idn ieee1394 imagemagick imap imlib imlib2 immqt-bc inifile inkjar innodb input_devices_keyboard input_devices_mouse intl iodbc ipv6 isdnlog jabber jack java javacomm javascript jbig jce jfs jikes jit jpeg jpeg2k justify kde kdeenablefinal kernel_linux kipi ladspa lame lash lcms ldap ldapsam lesstif libcaca libclamav libg++ libgda libwww lids linguas_en linguas_es linguas_es_ES live lm_sensors logitech-mouse logrotate lua lzo m17n-lib mad maildir mailwrapper math matroska mbox mcve md5sum mdb memlimit mikmod milter mime mjpeg mmap mng mod mono mounts-check mouse mozilla moznoirc moznomail mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpi mplayer mpm-prefork msession msn multiuser musepack musicbrainz mysql mysqli nas ncurses neXt net netboot netcdf network new-login nfs nis nls nptl nptlonly nsplugin ntfs ntlm nvidia oav oci8 octave ofx ogg ole on-the-fly-crypt openal openbabel openexr opengl openssh openssl opera oracle oracle7 osc oscar oss pam pango parse-clocks pcntl pcre pdf perl player plotutils pmu png portaudio posix postfix postgres povray ppds prelude profile pymol python qdbm qt3 qt4 quicktime quotas rar rdesktop readline recode reiser4 reiserfs rtc rtsp ruby samba sametime sasl savedconfig sblive scanner screen sdk sdl seamonkey session sharedext shout simplexml skey skins slang slp sndfile snmp soap sockets socks5 source sox speex spell spl ssl stream svg swat sysfs syslog sysvipc szip tcl tcltk tcpd tetex theora tidy tiff tk tokenizer truetype truetype-fonts type1-fonts ucs2 udev unicode usb userland_GNU userlocales v4l vcd vhosts video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vlm vorbis wddx webdav winbind wmf wxwindows xface xine xml xml2 xmlrpc xorg xpm xprint xscreensaver xsl xv xvid yahoo zeo zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 101960 [details, diff] patch to fix compile Attached is a patch that at least allows this package to compile. I can't verify whether the package works or not. I think this is an amd64 error.
Thanks for your efforts. Much appreciated. The ebuild compiled just fine, and I can finally finish my KDE update. Only time will say if the package does work or doesn't. All I wanted was to be able to update my stable system. In case this package produce errors, I can happily live awaiting a future fix.
I think this bug is connected to de Python 2.5 compatibility-patch. With the 3.5.0-ebuild (without this patch) the package compiles fine (I have Python 2.4.3)
That patch is indeed the culprit. A better patch would use Py_ssize_t instead of ssize_t and define this to int for older pythons. More details are at http://www.python.org/dev/peps/pep-0353/. Basically: #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #endif and patch "c" to be of type Py_ssize_t instead of int (the current code patches it from int to ssize_t). I could cook up a patch but I do not have enough of kde installed to actually test it, so would appreciate it if someone else did.
Shouldn't this be added to the ebuild in portage?
@Jon Hood I think in your patch you miss a c2=0 inside the if (str) Secondly I would appreciate someone adding the patch to atleast the ~amd64-branch as I would like to get closer to solving this bug...
The patched ebuild should be added to portage.
Did we ever find a suitable patch for this issue, does this issue still affect 3.5.7 which is targeted for stabilisation? It seems to have compiled correctly here on my ~amd64 development workstation.
It also built fine here on my ~amd64 system and dcoppython-3.5.7 has been / is being marked stable on bug #176297