View previous topic :: View next topic |
Author |
Message |
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 3:02 am Post subject: Emerging cwiid-20110107 Fails |
|
|
I've tried emerging cwiid-20110107 but it keeps failing with this error:
Code: | x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o py_plugin.o py_plugin.c
py_plugin.c:19:20: fatal error: Python.h: No such file or directory
compilation terminated.
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o parser.o parser.c
make[1]: *** [py_plugin.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
make: *** [wminput] Error 2
emake failed
* ERROR: app-misc/cwiid-20110107-r1 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3905: Called die
* The specific snippet of code:
* emake || die "emake failed" |
Here's my emerge --info:
Code: | emerge --info
Portage 2.1.9.45 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.0.2
Timestamp of tree: Sat, 09 Apr 2011 06:15:01 +0000
app-shells/bash: 4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc: 0.8.0
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.10.3, 1.11.1-r1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
virtual/os-headers: 2.6.38 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA atheros-hal BitstreamVera"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
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"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/cwiid /usr/local/portage/layman/mythtv/Gentoo"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 apache2 asf avahi berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus divx4linux dri dts dv dvb dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv iee1394 java javascript joystick jpeg lcms ldap libnotify lirc lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql mysqli mythtv nautilus ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf perl png policykit posix ppds pppd python qt qt3support readline samba sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis x264 xcb xine xml xmms xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" 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 ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="hauppauge" PHP_TARGETS="php5-3" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
How can I build this?
Thanks,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 4:39 am Post subject: |
|
|
What is the output of eselect python list ; ls -l /usr/include/python*? |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 5:13 am Post subject: |
|
|
Thank you for your reply. Here's the output:
Code: | eselect python list ; ls -l /usr/include/python*
Available Python interpreters:
[1] python2.7
[2] python3.1 *
/usr/include/python2.7:
total 672
-rw-r--r-- 1 root root 21113 Apr 9 18:05 Python-ast.h
-rw-r--r-- 1 root root 4329 Apr 9 18:05 Python.h
-rw-r--r-- 1 root root 45017 Apr 9 18:05 abstract.h
-rw-r--r-- 1 root root 1099 Apr 9 18:05 asdl.h
-rw-r--r-- 1 root root 230 Apr 9 18:05 ast.h
-rw-r--r-- 1 root root 792 Apr 9 18:05 bitset.h
-rw-r--r-- 1 root root 912 Apr 9 18:05 boolobject.h
-rw-r--r-- 1 root root 922 Apr 9 18:05 bufferobject.h
-rw-r--r-- 1 root root 1941 Apr 9 18:05 bytearrayobject.h
-rw-r--r-- 1 root root 2804 Apr 9 18:05 bytes_methods.h
-rw-r--r-- 1 root root 1152 Apr 9 18:05 bytesobject.h
-rw-r--r-- 1 root root 2008 Apr 9 18:05 cStringIO.h
-rw-r--r-- 1 root root 651 Apr 9 18:05 cellobject.h
-rw-r--r-- 1 root root 4986 Apr 9 18:05 ceval.h
-rw-r--r-- 1 root root 3002 Apr 9 18:05 classobject.h
-rw-r--r-- 1 root root 2930 Apr 9 18:05 cobject.h
-rw-r--r-- 1 root root 3895 Apr 9 18:05 code.h
-rw-r--r-- 1 root root 5022 Apr 9 18:05 codecs.h
-rw-r--r-- 1 root root 1065 Apr 9 18:05 compile.h
-rw-r--r-- 1 root root 1853 Apr 9 18:05 complexobject.h
-rw-r--r-- 1 root root 8313 Apr 9 18:05 datetime.h
-rw-r--r-- 1 root root 2480 Apr 9 18:05 descrobject.h
-rw-r--r-- 1 root root 6625 Apr 9 18:05 dictobject.h
-rw-r--r-- 1 root root 338 Apr 9 18:05 dtoa.h
-rw-r--r-- 1 root root 253 Apr 9 18:05 enumobject.h
-rw-r--r-- 1 root root 1363 Apr 9 18:05 errcode.h
-rw-r--r-- 1 root root 557 Apr 9 18:05 eval.h
-rw-r--r-- 1 root root 3440 Apr 9 18:05 fileobject.h
-rw-r--r-- 1 root root 5570 Apr 9 18:05 floatobject.h
-rw-r--r-- 1 root root 3183 Apr 9 18:05 frameobject.h
-rw-r--r-- 1 root root 2995 Apr 9 18:05 funcobject.h
-rw-r--r-- 1 root root 891 Apr 9 18:05 genobject.h
-rw-r--r-- 1 root root 1939 Apr 9 18:05 graminit.h
-rw-r--r-- 1 root root 2021 Apr 9 18:05 grammar.h
-rw-r--r-- 1 root root 2221 Apr 9 18:05 import.h
-rw-r--r-- 1 root root 2736 Apr 9 18:05 intobject.h
-rw-r--r-- 1 root root 274 Apr 9 18:05 intrcheck.h
-rw-r--r-- 1 root root 522 Apr 9 18:05 iterobject.h
-rw-r--r-- 1 root root 2513 Apr 9 18:05 listobject.h
-rw-r--r-- 1 root root 3907 Apr 9 18:05 longintrepr.h
-rw-r--r-- 1 root root 5765 Apr 9 18:05 longobject.h
-rw-r--r-- 1 root root 713 Apr 9 18:05 marshal.h
-rw-r--r-- 1 root root 2825 Apr 9 18:05 memoryobject.h
-rw-r--r-- 1 root root 253 Apr 9 18:05 metagrammar.h
-rw-r--r-- 1 root root 3238 Apr 9 18:05 methodobject.h
-rw-r--r-- 1 root root 5024 Apr 9 18:05 modsupport.h
-rw-r--r-- 1 root root 609 Apr 9 18:05 moduleobject.h
-rw-r--r-- 1 root root 890 Apr 9 18:05 node.h
-rw-r--r-- 1 root root 37960 Apr 9 18:05 object.h
-rw-r--r-- 1 root root 13963 Apr 9 18:05 objimpl.h
-rw-r--r-- 1 root root 4601 Apr 9 18:05 opcode.h
-rw-r--r-- 1 root root 942 Apr 9 18:05 osdefs.h
-rw-r--r-- 1 root root 1780 Apr 9 18:05 parsetok.h
-rw-r--r-- 1 root root 1429 Apr 9 18:05 patchlevel.h
-rw-r--r-- 1 root root 253 Apr 9 18:05 pgen.h
-rw-r--r-- 1 root root 1144 Apr 9 18:05 pgenheaders.h
-rw-r--r-- 1 root root 4158 Apr 9 18:05 py_curses.h
-rw-r--r-- 1 root root 2693 Apr 9 18:05 pyarena.h
-rw-r--r-- 1 root root 1679 Apr 9 18:05 pycapsule.h
-rw-r--r-- 1 root root 35782 Apr 9 18:05 pyconfig.h
-rw-r--r-- 1 root root 1253 Apr 9 18:05 pyctype.h
-rw-r--r-- 1 root root 1280 Apr 9 18:05 pydebug.h
-rw-r--r-- 1 root root 11657 Apr 9 18:05 pyerrors.h
-rw-r--r-- 1 root root 2007 Apr 9 18:05 pyexpat.h
-rw-r--r-- 1 root root 8495 Apr 9 18:05 pyfpe.h
-rw-r--r-- 1 root root 306 Apr 9 18:05 pygetopt.h
-rw-r--r-- 1 root root 2989 Apr 9 18:05 pymacconfig.h
-rw-r--r-- 1 root root 7943 Apr 9 18:05 pymactoolbox.h
-rw-r--r-- 1 root root 6525 Apr 9 18:05 pymath.h
-rw-r--r-- 1 root root 4698 Apr 9 18:05 pymem.h
-rw-r--r-- 1 root root 30740 Apr 9 18:05 pyport.h
-rw-r--r-- 1 root root 6333 Apr 9 18:05 pystate.h
-rw-r--r-- 1 root root 463 Apr 9 18:05 pystrcmp.h
-rw-r--r-- 1 root root 1582 Apr 9 18:05 pystrtod.h
-rw-r--r-- 1 root root 7029 Apr 9 18:05 pythonrun.h
-rw-r--r-- 1 root root 1155 Apr 9 18:05 pythread.h
-rw-r--r-- 1 root root 646 Apr 9 18:05 rangeobject.h
-rw-r--r-- 1 root root 3077 Apr 9 18:05 setobject.h
-rw-r--r-- 1 root root 1331 Apr 9 18:05 sliceobject.h
-rw-r--r-- 1 root root 7925 Apr 9 18:05 stringobject.h
-rw-r--r-- 1 root root 2901 Apr 9 18:05 structmember.h
-rw-r--r-- 1 root root 862 Apr 9 18:05 structseq.h
-rw-r--r-- 1 root root 3724 Apr 9 18:05 symtable.h
-rw-r--r-- 1 root root 916 Apr 9 18:05 sysmodule.h
-rw-r--r-- 1 root root 442 Apr 9 18:05 timefuncs.h
-rw-r--r-- 1 root root 1799 Apr 9 18:05 token.h
-rw-r--r-- 1 root root 697 Apr 9 18:05 traceback.h
-rw-r--r-- 1 root root 2175 Apr 9 18:05 tupleobject.h
-rw-r--r-- 1 root root 924 Apr 9 18:05 ucnhash.h
-rw-r--r-- 1 root root 52168 Apr 9 18:05 unicodeobject.h
-rw-r--r-- 1 root root 635 Apr 9 18:05 warnings.h
-rw-r--r-- 1 root root 2428 Apr 9 18:05 weakrefobject.h
/usr/include/python3.1:
total 648
-rw-r--r-- 1 root root 21835 Apr 9 06:43 Python-ast.h
-rw-r--r-- 1 root root 3502 Apr 9 06:43 Python.h
-rw-r--r-- 1 root root 42056 Apr 9 06:43 abstract.h
-rw-r--r-- 1 root root 1038 Apr 9 06:43 asdl.h
-rw-r--r-- 1 root root 230 Apr 9 06:43 ast.h
-rw-r--r-- 1 root root 792 Apr 9 06:43 bitset.h
-rw-r--r-- 1 root root 264 Apr 9 06:43 bltinmodule.h
-rw-r--r-- 1 root root 886 Apr 9 06:43 boolobject.h
-rw-r--r-- 1 root root 1941 Apr 9 06:43 bytearrayobject.h
-rw-r--r-- 1 root root 2950 Apr 9 06:43 bytes_methods.h
-rw-r--r-- 1 root root 4829 Apr 9 06:43 bytesobject.h
-rw-r--r-- 1 root root 651 Apr 9 06:43 cellobject.h
-rw-r--r-- 1 root root 7132 Apr 9 06:43 ceval.h
-rw-r--r-- 1 root root 1615 Apr 9 06:43 classobject.h
-rw-r--r-- 1 root root 1672 Apr 9 06:43 cobject.h
-rw-r--r-- 1 root root 3453 Apr 9 06:43 code.h
-rw-r--r-- 1 root root 5235 Apr 9 06:43 codecs.h
-rw-r--r-- 1 root root 1110 Apr 9 06:43 compile.h
-rw-r--r-- 1 root root 1859 Apr 9 06:43 complexobject.h
-rw-r--r-- 1 root root 8190 Apr 9 06:43 datetime.h
-rw-r--r-- 1 root root 2575 Apr 9 06:43 descrobject.h
-rw-r--r-- 1 root root 6703 Apr 9 06:43 dictobject.h
-rw-r--r-- 1 root root 338 Apr 9 06:43 dtoa.h
-rw-r--r-- 1 root root 253 Apr 9 06:43 enumobject.h
-rw-r--r-- 1 root root 1434 Apr 9 06:43 errcode.h
-rw-r--r-- 1 root root 575 Apr 9 06:43 eval.h
-rw-r--r-- 1 root root 1519 Apr 9 06:43 fileobject.h
-rw-r--r-- 1 root root 4614 Apr 9 06:43 floatobject.h
-rw-r--r-- 1 root root 2830 Apr 9 06:43 frameobject.h
-rw-r--r-- 1 root root 3577 Apr 9 06:43 funcobject.h
-rw-r--r-- 1 root root 891 Apr 9 06:43 genobject.h
-rw-r--r-- 1 root root 1842 Apr 9 06:43 graminit.h
-rw-r--r-- 1 root root 2021 Apr 9 06:43 grammar.h
-rw-r--r-- 1 root root 2235 Apr 9 06:43 import.h
-rw-r--r-- 1 root root 274 Apr 9 06:43 intrcheck.h
-rw-r--r-- 1 root root 567 Apr 9 06:43 iterobject.h
-rw-r--r-- 1 root root 2645 Apr 9 06:43 listobject.h
-rw-r--r-- 1 root root 3636 Apr 9 06:43 longintrepr.h
-rw-r--r-- 1 root root 5806 Apr 9 06:43 longobject.h
-rw-r--r-- 1 root root 713 Apr 9 06:43 marshal.h
-rw-r--r-- 1 root root 2825 Apr 9 06:43 memoryobject.h
-rw-r--r-- 1 root root 253 Apr 9 06:43 metagrammar.h
-rw-r--r-- 1 root root 2894 Apr 9 06:43 methodobject.h
-rw-r--r-- 1 root root 4180 Apr 9 06:43 modsupport.h
-rw-r--r-- 1 root root 1175 Apr 9 06:43 moduleobject.h
-rw-r--r-- 1 root root 890 Apr 9 06:43 node.h
-rw-r--r-- 1 root root 33474 Apr 9 06:43 object.h
-rw-r--r-- 1 root root 13363 Apr 9 06:43 objimpl.h
-rw-r--r-- 1 root root 4709 Apr 9 06:43 opcode.h
-rw-r--r-- 1 root root 869 Apr 9 06:43 osdefs.h
-rw-r--r-- 1 root root 1895 Apr 9 06:43 parsetok.h
-rw-r--r-- 1 root root 1252 Apr 9 06:43 patchlevel.h
-rw-r--r-- 1 root root 253 Apr 9 06:43 pgen.h
-rw-r--r-- 1 root root 1144 Apr 9 06:43 pgenheaders.h
-rw-r--r-- 1 root root 4158 Apr 9 06:43 py_curses.h
-rw-r--r-- 1 root root 2693 Apr 9 06:43 pyarena.h
-rw-r--r-- 1 root root 1680 Apr 9 06:43 pycapsule.h
-rw-r--r-- 1 root root 34815 Apr 9 06:43 pyconfig.h
-rw-r--r-- 1 root root 1253 Apr 9 06:43 pyctype.h
-rw-r--r-- 1 root root 958 Apr 9 06:43 pydebug.h
-rw-r--r-- 1 root root 11308 Apr 9 06:43 pyerrors.h
-rw-r--r-- 1 root root 2007 Apr 9 06:43 pyexpat.h
-rw-r--r-- 1 root root 8495 Apr 9 06:43 pyfpe.h
-rw-r--r-- 1 root root 315 Apr 9 06:43 pygetopt.h
-rw-r--r-- 1 root root 2771 Apr 9 06:43 pymacconfig.h
-rw-r--r-- 1 root root 6771 Apr 9 06:43 pymath.h
-rw-r--r-- 1 root root 4682 Apr 9 06:43 pymem.h
-rw-r--r-- 1 root root 27590 Apr 9 06:43 pyport.h
-rw-r--r-- 1 root root 6727 Apr 9 06:43 pystate.h
-rw-r--r-- 1 root root 436 Apr 9 06:43 pystrcmp.h
-rw-r--r-- 1 root root 1466 Apr 9 06:43 pystrtod.h
-rw-r--r-- 1 root root 7211 Apr 9 06:43 pythonrun.h
-rw-r--r-- 1 root root 1447 Apr 9 06:43 pythread.h
-rw-r--r-- 1 root root 629 Apr 9 06:43 rangeobject.h
-rw-r--r-- 1 root root 3193 Apr 9 06:43 setobject.h
-rw-r--r-- 1 root root 1331 Apr 9 06:43 sliceobject.h
-rw-r--r-- 1 root root 2346 Apr 9 06:43 structmember.h
-rw-r--r-- 1 root root 1014 Apr 9 06:43 structseq.h
-rw-r--r-- 1 root root 4330 Apr 9 06:43 symtable.h
-rw-r--r-- 1 root root 902 Apr 9 06:43 sysmodule.h
-rw-r--r-- 1 root root 442 Apr 9 06:43 timefuncs.h
-rw-r--r-- 1 root root 1859 Apr 9 06:43 token.h
-rw-r--r-- 1 root root 710 Apr 9 06:43 traceback.h
-rw-r--r-- 1 root root 2218 Apr 9 06:43 tupleobject.h
-rw-r--r-- 1 root root 924 Apr 9 06:43 ucnhash.h
-rw-r--r-- 1 root root 59919 Apr 9 06:43 unicodeobject.h
-rw-r--r-- 1 root root 512 Apr 9 06:43 warnings.h
-rw-r--r-- 1 root root 2428 Apr 9 06:43 weakrefobject.h |
|
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Apr 10, 2011 12:27 pm Post subject: |
|
|
That ebuild hasn't been ported yet to multiple python abis and chances are it's incompatible with python3.
Though hard to tell without full log. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 2:37 pm Post subject: |
|
|
Thanks for your reply. Is there a way to specify that it be built with a specific python version? Or do I have to remove python 3.1? I don't really understand all of this.
This box is used specifically for MythTV and as such, doesn't get upgraded very often. This issue (amongst others) is the result of upgrading after 2 years and I need cwiid as it's used as a remote control for MythTV. Wife will be returning home in a few hours and I need to get this working. Thanks for your help!
Cheers,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 5:04 pm Post subject: |
|
|
A system that is two years out-of-date is doing very well to have only one minor package fail like this. However, you should budget at least one full day of work for each year out of date. Depending on how many packages need an update, this estimate may be optimistic.
As an ugly hack to get this working, you could temporarily add a symlink so that /usr/include/python points to python2.7. I have not used app-misc/cwiid, so I have no idea whether this will work. Even if it does work, you should remove the symlink after you are done and seek a proper fix.
If you do not need the Python bindings in app-misc/cwiid, you could set USE=-python for this package, which should get you past this error safely. However, it will remove functionality. I do not know if the removed functionality is relevant to how you use the package. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 5:17 pm Post subject: |
|
|
I've been at it for 4 days.
Thanks for the hint. However it did not work but it did get past the previous error. Here's where it fails now:
Code: | make[3]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput/plugins/nunchuk_stick2btn'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../../../wminput -I../../../libcwiid -fpic -c -o nunchuk_stick2btn.o nunchuk_stick2btn.c
make[3]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput/plugins/nunchuk_acc'
led.c: In function 'wmplugin_exec':
led.c:86:14: warning: assignment from incompatible pointer type
nunchuk_stick2btn.c: In function 'wmplugin_init':
nunchuk_stick2btn.c:51:44: warning: unused parameter 'arg_wiimote'
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -L../libcwiid -rdynamic -o nunchuk_stick2btn.so nunchuk_stick2btn.o -lm
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -L../libcwiid -rdynamic -o led.so led.o
make[3]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput/plugins/nunchuk_stick2btn'
make[3]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput/plugins/led'
make[2]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput/plugins'
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
make: *** [wminput] Error 2
emake failed
* ERROR: app-misc/cwiid-20110107-r1 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3905: Called die
* The specific snippet of code:
* emake || die "emake failed" |
Any other suggestions? I'm pretty sure I need python because I'm using it with a python script to control MythTV.
Thanks,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 5:35 pm Post subject: |
|
|
imacamper wrote: | I've been at it for 4 days. | Then I shall amend my advice in the future. Allot one week for each year out of date.
imacamper wrote: | Code: | make: *** [wminput] Error 2 | Any other suggestions? | Temporarily reduce parallelism or post more output. The output you provided shows that building wminput failed, but due to the output from successful compilations, all the useful error messages were above the point at which you cut the text. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 5:40 pm Post subject: |
|
|
I set MAKEOPTS="j1" in make.conf but it did not help.
Here's the complete build log:
Code: | # cat /var/tmp/portage/app-misc/cwiid-20110107-r1/temp/build.log
* Package: app-misc/cwiid-20110107-r1
* Repository: gentoo
* Maintainer: lxnay@gentoo.org ziapannocchia@gmail.com
* USE: amd64 elibc_glibc kernel_linux multilib python userland_GNU
* FEATURES: sandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.38-gentoo-r1/build
* Found sources for kernel version:
* 2.6.38-gentoo-r1
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking cwiid-20110107.tar.bz2 to /var/tmp/portage/app-misc/cwiid-20110107-r1/work
>>> Source unpacked in /var/tmp/portage/app-misc/cwiid-20110107-r1/work
>>> Preparing source in /var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107 ...
* Running eautoreconf in '/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107' ...
* Running aclocal ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-python --without-ldconfig
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for gawk... gawk
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for python... python
File "<string>", line 1
import sys; print sys.version[:3]
^
SyntaxError: invalid syntax
checking for pthread_create in -lpthread... yes
checking for hci_devid in -lbluetooth... yes
checking for dlopen in -ldl... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for bluetooth/l2cap.h... yes
checking for bluetooth/hci.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking for linux/uinput.h... yes
checking for library containing strerror... none required
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating defs.mak
config.status: creating common/include/lib.mak
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: creating libcwiid/Makefile
config.status: creating libcwiid/cwiid.pc
config.status: creating wmdemo/Makefile
config.status: creating wmgui/Makefile
config.status: creating wminput/Makefile
config.status: creating wminput/plugins/Makefile
config.status: creating wminput/plugins/ir_ptr/Makefile
config.status: creating wminput/plugins/acc/Makefile
config.status: creating wminput/plugins/nunchuk_acc/Makefile
config.status: creating wminput/plugins/led/Makefile
config.status: creating wminput/plugins/nunchuk_stick2btn/Makefile
config.status: creating lswm/Makefile
config.status: creating python/Makefile
config.status: creating common/include/config.h
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107 ...
make -j1
make -C libcwiid
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/libcwiid'
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/libcwiid'
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/libcwiid'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o bluetooth.o bluetooth.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o command.o command.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o connect.o connect.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o interface.o interface.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o process.o process.c
process.c: In function 'process_status':
process.c:43:39: warning: unused parameter 'ma'
process.c: In function 'process_ext':
process.c:175:31: warning: unused parameter 'len'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o state.o state.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o thread.o thread.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fpic -c -o util.o util.c
util.c: In function 'cwiid_err_default':
util.c:42:40: warning: unused parameter 'wiimote'
ar rcs libcwiid.a bluetooth.o command.o connect.o interface.o process.o state.o thread.o util.o
ln -sf libcwiid.so.1.0 libcwiid.so.1
ln -sf libcwiid.so.1 libcwiid.so
x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libcwiid.so.1 -Wl,-O1 -Wl,--as-needed -o libcwiid.so.1.0 \
bluetooth.o command.o connect.o interface.o process.o state.o thread.o util.o -lbluetooth -lpthread -lrt
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/libcwiid'
make -C wmgui
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wmgui'
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wmgui'
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wmgui'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I../libcwiid -c -o main.o main.c
main.c: In function 'message':
main.c:445:2: warning: format not a string literal and no format arguments
main.c: In function 'drawStick_expose_event':
main.c:824:67: warning: unused parameter 'event'
main.c: In function 'cwiid_callback':
main.c:1051:4: warning: enumeration value 'CWIID_EXT_BALANCE' not handled in switch
main.c:1036:69: warning: unused parameter 'timestamp'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I../libcwiid -c -o interface.o interface.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I../libcwiid -c -o support.o support.c
support.c: In function 'create_pixmap':
support.c:77:58: warning: unused parameter 'widget'
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L../libcwiid -o wmgui main.o interface.o support.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lcwiid -lbluetooth -lm
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wmgui'
make -C wminput
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
bison -y -d parser.y
mv -f y.tab.c parser.c
flex -t lexer.l > lexer.c
gawk -f action_enum.awk action_enum.txt > action_enum.c
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o main.o main.c
main.c: In function 'cwiid_err_connect':
main.c:78:40: warning: unused parameter 'wiimote'
main.c: In function 'cwiid_callback':
main.c:403:38: warning: unused parameter 'wiimote'
main.c:404:63: warning: unused parameter 'timestamp'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o conf.o conf.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o c_plugin.o c_plugin.c
c_plugin.c: In function 'wmplugin_err':
c_plugin.c:168:23: warning: unused parameter 'id'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o uinput.o uinput.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o action_enum.o action_enum.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o util.o util.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o py_plugin.o py_plugin.c
py_plugin.c: In function 'set_rpt_mode':
py_plugin.c:592:41: warning: unused parameter 'self'
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o parser.o parser.c
x86_64-pc-linux-gnu-gcc -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/lib64/cwiid/plugins\" -I/usr/include/python -c -o lexer.o lexer.c
<stdout>:1619:16: warning: 'input' defined but not used
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L../libcwiid -rdynamic -o wminput main.o conf.o c_plugin.o uinput.o action_enum.o util.o py_plugin.o parser.o lexer.o -lcwiid -lbluetooth -ldl -lpthread -lpython
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpython
collect2: ld returned 1 exit status
make[1]: *** [wminput] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
make: *** [wminput] Error 2
emake failed
* ERROR: app-misc/cwiid-20110107-r1 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3905: Called die
* The specific snippet of code:
* emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =app-misc/cwiid-20110107-r1',
* the complete build log and the output of 'emerge -pqv =app-misc/cwiid-20110107-r1'.
* The complete build log is located at '/var/tmp/portage/app-misc/cwiid-20110107-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/cwiid-20110107-r1/temp/environment'.
* S: '/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107' |
Thank you for taking the time to look at this. I really appreciate it!
Cheers,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 8:36 pm Post subject: |
|
|
imacamper wrote: | I set MAKEOPTS="j1" in make.conf but it did not help. | I did not expect that to fix anything. It just made the output easier to read. imacamper wrote: | Code: | checking for python... python
File "<string>", line 1
import sys; print sys.version[:3]
^
SyntaxError: invalid syntax |
| You should not set your system Python to Python3 until all your programs have been ported to use it. This one has not been ported.
imacamper wrote: | Code: | x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L../libcwiid -rdynamic -o wminput main.o conf.o c_plugin.o uinput.o action_enum.o util.o py_plugin.o parser.o lexer.o -lcwiid -lbluetooth -ldl -lpthread -lpython
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpython
collect2: ld returned 1 exit status
make[1]: *** [wminput] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput'
make: *** [wminput] Error 2 |
| This is the linker side counterpart to the include failure you saw earlier. In addition to adding a symlink in /usr/include, you will also need a symlink in /usr/lib so that -lpython finds the same version of Python as your include symlink uses. As before, neither of these should persist long term, but they should get you over this failure until the build is fixed properly. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 8:52 pm Post subject: |
|
|
Thank you again for your time. However setting the link in /usr/lib didn't work either. Seems like the same error:
Code: | /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpython
collect2: ld returned 1 exit status
make[1]: *** [wminput] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/wminput' |
But instead of continuing down this path, if I do the eselect python and set back to 2.7, this should work? And after I do that, do I need to run that python updater thing (can't recall the exact command)? Do I have to do anything else to keep my system sane?
Thanks again,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 9:59 pm Post subject: |
|
|
You probably named the link incorrectly. Running eselect python and selecting 2.7 is a good idea in general, but it may not help for packages which still assume that there is exactly one Python ABI on the system, as this one seems to assume. You should only need to run python-updater when you install a new version of Python. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Sun Apr 10, 2011 10:24 pm Post subject: |
|
|
OK, I'll try one more time with links. Here's exactly how my links are named:
Code: | mythfe01 mythtv # ls -ld /usr/lib/pyt*
lrwxrwxrwx 1 root root 18 Apr 10 15:18 /usr/lib/python -> /usr/lib/python2.7
drwxr-xr-x 3 root root 20480 Apr 9 04:13 /usr/lib/python2.5
drwxr-xr-x 24 root root 20480 Apr 9 18:05 /usr/lib/python2.7
drwxr-xr-x 26 root root 20480 Apr 10 01:33 /usr/lib/python3.1
mythfe01 mythtv # ls -ld /usr/include/pyt*
-rw-r--r-- 1 root root 2059 Nov 30 20:01 /usr/include/pytalloc.h
lrwxrwxrwx 1 root root 22 Apr 10 15:18 /usr/include/python -> /usr/include/python2.7
drwxr-xr-x 2 root root 4096 Apr 9 18:05 /usr/include/python2.7
drwxr-xr-x 2 root root 4096 Apr 10 10:12 /usr/include/python3.1 |
Are these links correct?
It fails with those links.
Code: | x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L../libcwiid -rdynamic -o wminput main.o conf.o c_plugin.o uinput.o action_enum.o util.o py_plugin.o parser.o lexer.o -lcwiid -lbluetooth -ldl -lpthread -lpython
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpython
collect2: ld returned 1 exit status
make[1]: *** [wminput] Error 1 |
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Apr 10, 2011 11:57 pm Post subject: |
|
|
If those are the only links, then no, that is not correct. You need to set it up that when the linker looks for an appropriate libpython.so, it finds one. This will probably be done via a link from /usr/lib/libpython.so to libpython2.7.so. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Mon Apr 11, 2011 11:40 pm Post subject: |
|
|
I found my libpython2.7.so in /usr/lib64 and set the link there. I got further but still errors. I think this is the relevant part:
Code: | make -C python
make[1]: Entering directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/python'
python setup.py build_ext -g -I../libcwiid -L../libcwiid
running build_ext
building 'cwiid' extension
creating build
creating build/temp.linux-x86_64-3.1
x86_64-pc-linux-gnu-gcc -pthread -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fPIC -g -I../libcwiid -I/usr/include/python3.1 -c cwiidmodule.c -o build/temp.linux-x86_64-3.1/cwiidmodule.o
cwiidmodule.c: In function 'initcwiid':
cwiidmodule.c:147:3: warning: 'return' with no value, in function returning non-void
cwiidmodule.c:150:2: warning: implicit declaration of function 'Py_InitModule3'
cwiidmodule.c:150:15: warning: assignment makes pointer from integer without a cast
cwiidmodule.c:152:3: warning: 'return' with no value, in function returning non-void
cwiidmodule.c:166:3: warning: 'return' with no value, in function returning non-void
x86_64-pc-linux-gnu-gcc -pthread -g -Wall -W -DHAVE_CONFIG_H -I/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/common/include -fPIC -g -I../libcwiid -I/usr/include/python3.1 -c Wiimote.c -o build/temp.linux-x86_64-3.1/Wiimote.o
Wiimote.c:118:2: warning: missing braces around initializer
Wiimote.c:118:2: warning: (near initialization for 'Wiimote_Type.ob_base.ob_base')
Wiimote.c:118:2: warning: missing initializer
Wiimote.c:118:2: warning: (near initialization for 'Wiimote_Type.ob_base.ob_size')
Wiimote.c:120:2: warning: initialization makes integer from pointer without a cast
Wiimote.c:123:2: warning: initialization from incompatible pointer type
Wiimote.c:138:2: warning: initialization makes pointer from integer without a cast
Wiimote.c:139:2: warning: initialization from incompatible pointer type
Wiimote.c:146:2: warning: initialization from incompatible pointer type
Wiimote.c:148:2: warning: initialization from incompatible pointer type
Wiimote.c:154:2: warning: initialization from incompatible pointer type
Wiimote.c:156:2: warning: initialization from incompatible pointer type
Wiimote.c:157:1: warning: missing initializer
Wiimote.c:157:1: warning: (near initialization for 'Wiimote_Type.tp_is_gc')
Wiimote.c: In function 'Wiimote_new':
Wiimote.c:161:44: warning: unused parameter 'args'
Wiimote.c:161:60: warning: unused parameter 'kwds'
Wiimote.c: In function 'Wiimote_dealloc':
Wiimote.c:182:6: error: 'Wiimote' has no member named 'ob_type'
Wiimote.c: In function 'Wiimote_set_mesg_callback':
Wiimote.c:306:34: warning: unused parameter 'closure'
Wiimote.c: In function 'Wiimote_get_state':
Wiimote.c:458:6: warning: implicit declaration of function 'PyInt_FromLong'
Wiimote.c:458:19: warning: assignment makes pointer from integer without a cast
Wiimote.c:372:57: warning: unused parameter 'closure'
Wiimote.c: In function 'Wiimote_set_led':
Wiimote.c:685:2: warning: implicit declaration of function 'PyInt_AsLong'
Wiimote.c:676:66: warning: unused parameter 'closure'
Wiimote.c: In function 'Wiimote_set_rumble':
Wiimote.c:699:62: warning: unused parameter 'closure'
Wiimote.c: In function 'Wiimote_set_rpt_mode':
Wiimote.c:722:65: warning: unused parameter 'closure'
Wiimote.c: In function 'Wiimote_read':
Wiimote.c:804:2: warning: implicit declaration of function 'PyBuffer_New'
Wiimote.c:804:17: warning: assignment makes pointer from integer without a cast
Wiimote.c: In function 'ConvertMesgArray':
Wiimote.c:946:20: warning: assignment makes pointer from integer without a cast
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/cwiid-20110107-r1/work/cwiid-20110107/python'
make: *** [python] Error 2
emake failed
* ERROR: app-misc/cwiid-20110107-r1 failed (compile phase):
* emake failed |
Any further suggestions?
Thanks,
Drew |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Tue Apr 12, 2011 3:06 am Post subject: |
|
|
Somewhere along the way, this package decided to start using Python 3.1. Given that it does not even cleanly work with multi-ABI Python, I highly doubt it will work with Python 3.1. Try forcing it to use Python 2.7 instead. |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Tue Apr 12, 2011 3:08 am Post subject: |
|
|
OK, how do I force it to 2.7?
Thanks,
Drew |
|
Back to top |
|
|
imacamper n00b
Joined: 09 Apr 2011 Posts: 15
|
Posted: Tue Apr 12, 2011 3:21 am Post subject: |
|
|
I took a shot and did the eselect python command and set to 2.7. It compiled. YAYYYY!!! No to see if it's useful.
Thanks for your help with this!
Cheers,
Drew |
|
Back to top |
|
|
|