Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499760 - net-im/pidgin-2.10.8-r1 fails to compile with PYTHON_SINGLE_TARGET="python3_*"
Summary: net-im/pidgin-2.10.8-r1 fails to compile with PYTHON_SINGLE_TARGET="python3_*"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2014-01-30 09:14 UTC by ta2002
Modified: 2014-02-18 08:11 UTC (History)
3 users (show)

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


Attachments
build log (20140130-080227.log.bz2,14.10 KB, application/bzip2)
2014-01-30 20:19 UTC, ta2002
Details
pidgin-python3.patch (python3.patch,575 bytes, patch)
2014-02-07 23:44 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2014-01-30 09:14:41 UTC
Don't know what this means at all, but maybe pidgin is not ready for python 3.3 (or it has to be built with the same python version as some component that was built with python 2.7):

/bin/sh ../../libtool --silent  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/ncursesw/ -Wall  -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Werror=format-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -I/usr/include/libxml2  -I/usr/include/python3.3   -g -O2 -pipe -march=core2 -c -o gntwindow.lo gntwindow.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
gntutils.c:1:0: note: this is the location of the previous definition
/bin/sh ../../libtool --silent  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/ncursesw/ -Wall  -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Werror=format-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -I/usr/include/libxml2  -I/usr/include/python3.3   -g -O2 -pipe -march=core2 -c -o gntwm.lo gntwm.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
gntwm.c:1:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
gntwindow.c:1:0: note: this is the location of the previous definition
/bin/sh ../../libtool --silent  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/ncursesw/ -Wall  -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Werror=format-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -I/usr/include/libxml2  -I/usr/include/python3.3   -g -O2 -pipe -march=core2 -c -o gntws.lo gntws.c
/bin/sh ../../libtool --silent  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/ncursesw/ -Wall  -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Werror=format-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -I/usr/include/libxml2  -I/usr/include/python3.3   -g -O2 -pipe -march=core2 -c -o gntmain.lo gntmain.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
gntws.c:1:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
gntmain.c:1:0: note: this is the location of the previous definition
gntwm.c: In function 'dump_file_save':
gntwm.c:779:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
gntwm.c: In function 'toggle_clipboard':
gntwm.c:1147:12: warning: variable 'maxy' set but not used [-Wunused-but-set-variable]
gntwm.c:1147:6: warning: variable 'maxx' set but not used [-Wunused-but-set-variable]
gntmain.c: In function 'gnt_init':
gntmain.c:511:2: warning: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
gntwm.c: In function 'python_script_selected':
gntwm.c:1284:2: error: implicit declaration of function 'PyString_FromString' [-Werror=implicit-function-declaration]
gntwm.c:1284:52: warning: initialization makes pointer from integer without a cast [enabled by default]
gntwm.c: In function 'gnt_wm_class_init':
gntwm.c:1575:3: warning: passing argument 1 of 'Py_SetProgramName' from incompatible pointer type [enabled by default]
In file included from /usr/include/python3.3/Python.h:113:0,
                 from gntwm.c:26:
/usr/include/python3.3/pythonrun.h:25:18: note: expected 'wchar_t *' but argument is of type 'char *'
cc1: some warnings being treated as errors
make[5]: *** [gntwm.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8/finch/libgnt'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8/finch/libgnt'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8/finch/libgnt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8/finch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8'
make: *** [all] Error 2
 * ERROR: net-im/pidgin-2.10.8-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-im/pidgin-2.10.8-r1'`,
 * the complete build log and the output of `emerge -pqv '=net-im/pidgin-2.10.8-r1'`.
 * The complete build log is located at '/var/log/portage/net-im:pidgin-2.10.8-r1:20140130-080227.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-im/pidgin-2.10.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-im/pidgin-2.10.8-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8'
 * S: '/var/tmp/portage/net-im/pidgin-2.10.8-r1/work/pidgin-2.10.8'

>>> Failed to emerge net-im/pidgin-2.10.8-r1, Log file:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-30 09:18:54 UTC
Please attach the full build.log file to this bug and post your "emerge --info".
Comment 2 ta2002 2014-01-30 20:05:41 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> Please attach the full build.log file to this bug and post your "emerge
> --info".

Build log will follow.

# emerge -p --info
Portage 2.2.7 (default/linux/amd64/13.0/no-multilib, gcc-4.7.3, glibc-2.17, 3.10.17-gentoo x86_64)
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8019324 total,    618732 free
KiB Swap:    1047548 total,    332672 free
Timestamp of tree: Thu, 30 Jan 2014 06:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="64bit R X a52 aac aalib accessibility acoustid acpi additions aio alsa amd64 ap asf aspell audio audiofile blksha1 bookmarks bwscheduler bzip2 cairo caps cdda cdio cdr chm chroot client consolekit cpumining cracklib crypt cryptsetup css cups cxx dbus device-mapper dga directfb djvu downloadorder dri dvd dvdnav dvdr ebook egl eigen encode espeak exceptions exif expat fam fbcon ffmpeg flac fluidsynth fontconfig fortran gcj gcrypt ggi gif git glib glibc-omitfp gmp gpg gphoto2 gpm gsm gstreamer gtk handbook hardcoded-tables hddtemp hpn iconv idea imap infowidget inotify iostats ipc ipfilter ipv6 jabber jbig jit joystick jpeg jsbsim kdcraw kde kmod lame lcms less libass libkms libwww live lm_sensors logviewer lzma mad matroska mbox mdns-bundled memlimit midi minizip mmx mmxext mp3 mp4 mpeg mta mudflap nas ncurses net netapi network nls no-old-linux nodrm nptl ntfsprogs ntp ocamlopt offlinehelp ofx ogg okular opencl opengl openmedia openmp oscar osdmenu p2p pcre pdf pm-utils png policykit portmon ps qt3support quotes raptor readline real recursion-limit redland rtc rtmp savedconfig scanfolder scanner scrypt sdl search secure-delete sensord server shared-glapi shm silc smbclient smtp sndfile sound speex spell sse sse2 sse2_4way sse2check sse4 ssl ssse3 stats subversion svg sysfs taglib tcpd theora threads threadsafe tiff tls-heartbeat tremor truetype udev udisks unicode upnp upower urandom usb userlocales utils v4l2 vdpau video vorbis wav webdav-neon webinterface x264 xcb xinerama xml xmp xpdf-headers xslt xv xvid yahoo zlib zrtp" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias 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 cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 3 ta2002 2014-01-30 20:19:17 UTC
Created attachment 369158 [details]
build log
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-03 13:51:37 UTC
Confirmed. Although they worked on the python3 front it seems like they still didn't fix all issues.
Any chance you can report this error to upstream? If yes please post the ticket URL to this bug.
Comment 5 Ed Catmur 2014-02-07 23:44:40 UTC
Created attachment 369836 [details, diff]
pidgin-python3.patch

This should be enough to get it to build.  Will try to upstream at some point.
Comment 6 ta2002 2014-02-12 01:34:57 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #4)
> Any chance you can report this error to upstream? If yes please post the
> ticket URL to this bug.

https://developer.pidgin.im/ticket/15969
Comment 7 ta2002 2014-02-14 09:51:00 UTC
A fix was committed upstream which will appear in the 2.10.10 release.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-18 08:11:37 UTC
+  18 Feb 2014; Lars Wendler <polynomial-c@gentoo.org> pidgin-2.10.9.ebuild,
+  pidgin-2.10.9-r1.ebuild, +files/pidgin-2.10.9-fix-gtkmedia.patch,
+  +files/pidgin-2.10.9-python3_fix1.patch,
+  +files/pidgin-2.10.9-python3_fix2.patch:
+  Fixed compilation with python3 (bug #499760) and some undefined reference to
+  gtkmedia (bug #500762).
+