Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could not install libxcb-1.7[SLOVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Mon Jan 16, 2012 6:57 am    Post subject: Could not install libxcb-1.7[SLOVED] Reply with quote

Today I install Gentoo,But I have a problem when I try to install libxcb
This is my first time to use gentoo and I cannot find method to solve my problem follow.

This is my /etc/make.conf

    # These settings were set by the catalyst build script that automatically
    # built this stage.
    # Please consult /usr/share/portage/config/make.conf.example for a more
    # detailed example.
    CFLAGS="-march=core2 -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    # WARNING: Changing your CHOST is not something that should be done lightly.
    # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
    CHOST="x86_64-pc-linux-gnu"
    MAKEOPTS="-j8"
    # These are the USE flags that were used in addition to what is provided by the
    # profile used for building.
    USE="-cups -sdl build cjk debug sharedmem exif gd mmx sse sse2 X a52 aac aalib acl acpi adns alsa audiofile bash-completion bcmath bzip2 cairo calendar caps
    cdr cgi cracklib crypt cscope css ctype curl custom-cflag cvs cxx dbus dga directfb djvu dri dvd dvdr
    encode enscript esd evo fbcon ffmpeg flac fltk fontconfig ftp gdbm gif gimp glut gmp gnome gphoto2 gpm gsl gsm
    gstreamer gtk gzip hdf5 iconv icq ieee1394 imagemagick imlib ipv6 java java6 javascript jpeg jpeg2k lame latex lcms
    ldap libnotify lzma lzo mad matroska matrox mbox mhash mikmod mime milter mmap modplug modules mozilla
    mp3 mp4 mpeg mpi mplayer msn multilib musepack mysql mysqli ncurses networkmanager nls nptl nsplugin ogg openal opengl
    pam pch pcntl pcre pdf perl php png posix profile python qt4 raw readline samba seamonkey smp sockets socks5
    sound source ssl syslog szip tcmalloc theora tk udev unicode usb vcd vim-syntax wifi win32codecs wmf xine
    xinetd xml xscreensaver zlib xvid libgda"

    #cjk gd threads cups doc xvid libgda

    GENTOO_MIRRORS="ftp://mirrors.xmu.edu.cn/gentoo"



This is my build.log
     * Package: x11-libs/libxcb-1.7
     * Repository: gentoo
     * USE: amd64 build elibc_glibc kernel_linux multilib userland_GNU
     * FEATURES: sandbox
    >>> Unpacking source...
    >>> Unpacking libxcb-1.7.tar.bz2 to /var/tmp/portage/x11-libs/libxcb-1.7/work
    >>> Source unpacked in /var/tmp/portage/x11-libs/libxcb-1.7/work
    >>> Preparing source in /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7 ...
    * Applying libxcb-1.7-interix.patch ...
     [ ok ]
    * Will autoreconfigure due to patches applied.
    * Autoreconfiguring '/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7' ...
    * Running libtoolize --copy --force --install --automake ...
     [ ok ]
    * Running aclocal ...
     [ ok ]
    * Running autoconf ...
     [ ok ]
    * Running autoheader ...
     [ ok ]
    * Running automake --add-missing --copy --foreign ...
     [ ok ]
    * Running elibtoolize in: libxcb-1.7/
    * Applying portage/1.2.0 patch ...
    * Applying sed/1.5.6 patch ...
    * Applying as-needed/2.2.6 patch ...
    * Running eautoreconf in '/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7' ...
    * Running aclocal ...
     [ ok ]
    * Running libtoolize --copy --force --install --automake ...
     [ ok ]
    * Running aclocal ...
     [ ok ]
    * Running autoconf ...
     [ ok ]
    * Running autoheader ...
     [ ok ]
    * Running automake --add-missing --copy --foreign ...
     [ ok ]
    * Running elibtoolize in: libxcb-1.7/
    * We've already been run in this tree; you should
    * avoid this if possible (perhaps by filing a bug)
    * Applying portage/1.2.0 patch ...
    * Applying sed/1.5.6 patch ...
    * Applying as-needed/2.2.6 patch ...
    >>> Source prepared.
    >>> Configuring source in /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7 ...
    >>> Working in BUILD_DIR: "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7_build"
    * econf: updating libxcb-1.7/config.guess with /usr/share/gnuconfig/config.guess
    * econf: updating libxcb-1.7/config.sub with /usr/share/gnuconfig/config.sub
    /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/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 --docdir=/usr/share/doc/libxcb-1.7 --enable-shared --disable-static --disable-dependency-tracking --disable-build-docs --disable-selinux --enable-xinput
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for a Python interpreter with version >= 2.5... python
    checking for python... /usr/bin/python
    checking for python version... 2.7
    checking for python platform... linux2
    checking for python script directory... ${prefix}/lib64/python2.7/site-packages
    checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
    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 CHECK... no
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking how to print strings... printf
    checking for style of include used by make... GNU
    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 dependency style of x86_64-pc-linux-gnu-gcc... none
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
    checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
    checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
    checking how to recognize dependent libraries... pass_all
    checking for x86_64-pc-linux-gnu-dlltool... no
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
    checking for archiver @FILE support... @
    checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
    checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
    checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
    checking for sysroot... no
    checking for x86_64-pc-linux-gnu-mt... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -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 dlfcn.h... yes
    checking for objdir... .libs
    checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
    checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
    checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
    checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
    checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
    checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
    checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
    checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
    checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
    checking for xsltproc... /usr/bin/xsltproc
    checking for XCBPROTO... yes
    checking for NEEDED... yes
    checking for XDMCP... yes
    checking for XdmcpWrap in -lXdmcp... yes
    checking XCBPROTO_XCBINCLUDEDIR... /usr/share/xcb
    checking XCBPROTO_XCBPYTHONDIR... /usr/lib64/python2.7/site-packages
    checking for ANSI C header files... (cached) yes
    checking for library containing getaddrinfo... none required
    checking for library containing connect... none required
    checking for getaddrinfo... yes
    checking for struct sockaddr_un.sun_len... no
    checking whether x86_64-pc-linux-gnu-gcc supports symbol visibility... yes
    checking whether documentation is built... no
    checking for poll... yes
    checking for launchd... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating doc/Makefile
    config.status: creating src/Makefile
    config.status: creating tests/Makefile
    config.status: creating xcb.pc
    config.status: creating xcb-composite.pc
    config.status: creating xcb-damage.pc
    config.status: creating xcb-dpms.pc
    config.status: creating xcb-dri2.pc
    config.status: creating xcb-glx.pc
    config.status: creating xcb-randr.pc
    config.status: creating xcb-record.pc
    config.status: creating xcb-render.pc
    config.status: creating xcb-res.pc
    config.status: creating xcb-screensaver.pc
    config.status: creating xcb-shape.pc
    config.status: creating xcb-shm.pc
    config.status: creating xcb-sync.pc
    config.status: creating xcb-xevie.pc
    config.status: creating xcb-xf86dri.pc
    config.status: creating xcb-xfixes.pc
    config.status: creating xcb-xinerama.pc
    config.status: creating xcb-xinput.pc
    config.status: creating xcb-xprint.pc
    config.status: creating xcb-xselinux.pc
    config.status: creating xcb-xtest.pc
    config.status: creating xcb-xv.pc
    config.status: creating xcb-xvmc.pc
    config.status: creating doc/xcb.doxygen
    config.status: creating src/config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands

    Package: libxcb 1.7

    Configuration
    XDM support.........: yes
    Build unit tests....: no
    XCB buffer size.....: 16384

    X11 extensions
    Composite...........: yes
    Damage..............: yes
    Dpms................: yes
    Dri2................: yes
    Glx.................: yes
    Randr...............: yes
    Record..............: yes
    Render..............: yes
    Resource............: yes
    Screensaver.........: yes
    selinux.............: no
    Shape...............: yes
    Shm.................: yes
    Sync................: yes
    Xevie...............: yes
    Xfixes..............: yes
    Xfree86-dri.........: yes
    xinerama............: yes
    xinput..............: yes
    xprint..............: yes
    xtest...............: yes
    xv..................: yes
    xvmc................: yes

    Used CFLAGS:
    CPPFLAGS............:
    CFLAGS..............: -march=core2 -O2 -pipe
    Warning CFLAGS......: -Wall -pedantic -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wnested-externs

    Installation:
    Prefix..............: /usr

    >>> Source configured.
    >>> Compiling source in /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7 ...
    >>> Working in BUILD_DIR: "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7_build"
    make -j8
    Making all in src
    make[1]: Entering directory `/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7_build/src'
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/xproto.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/bigreq.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/xc_misc.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/composite.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/damage.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/dpms.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/dri2.xml
    /usr/bin/python /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/glx.xml
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    make[1]: *** [composite.c] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [xc_misc.c] Error 1
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    from _elementtree import *
    ImportError: No module named _elementtree
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    make[1]: *** [bigreq.c] Error 1
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from xml.etree.cElementTree import *
    from _elementtree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    ImportError: No module named _elementtree
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    make[1]: *** [damage.c] Error 1
    make[1]: *** [dri2.c] Error 1
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    make[1]: *** [xproto.c] Error 1
    make[1]: *** [dpms.c] Error 1
    Traceback (most recent call last):
    File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
    File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
    ImportError: No module named _elementtree
    make[1]: *** [glx.c] Error 1
    make[1]: Leaving directory `/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7_build/src'
    make: *** [all-recursive] Error 1
    emake failed
    * ERROR: x11-libs/libxcb-1.7 failed (compile phase):
    * emake failed
    *
    * Call stack:
    * ebuild.sh, line 75: Called src_compile
    * environment, line 5848: Called xorg-2_src_compile
    * environment, line 6649: Called autotools-utils_src_compile
    * environment, line 1207: Called die
    * The specific snippet of code:
    * emake "$@" || die 'emake failed';
    *
    * If you need support, post the output of 'emerge --info =x11-libs/libxcb-1.7',
    * the complete build log and the output of 'emerge -pqv =x11-libs/libxcb-1.7'.
    * The complete build log is located at '/var/tmp/portage/x11-libs/libxcb-1.7/temp/build.log'.
    * The ebuild environment file is located at '/var/tmp/portage/x11-libs/libxcb-1.7/temp/environment'.
    * S: '/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7'


Last edited by buptwugh on Fri Jan 27, 2012 11:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Mon Jan 16, 2012 6:59 am    Post subject: Reply with quote

Forgot to run python-updater?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Mon Jan 16, 2012 8:09 am    Post subject: Reply with quote

franzf wrote:
Forgot to run python-updater?

Well, that or for some odd reason built python[-xml] (which is broken on quite a few occasions).
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Mon Jan 16, 2012 8:22 am    Post subject: Reply with quote

thank you, I am new to gentoo , I do not know how to run python updater
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Mon Jan 16, 2012 10:28 am    Post subject: Reply with quote

Thanks franzf,

I have try to run "python-updater"

but when I run it , it failed on installing libxcb-1.7
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Mon Jan 16, 2012 12:34 pm    Post subject: Reply with quote

I just looked into this:
Code:
from _elementtree import *
ImportError: No module named _elementtree

_elementtree is here:
Code:
$ find /usr/lib64/python2.7 -name "*elementtree*"
/usr/lib64/python2.7/lib-dynload/_elementtree.so

It belongs to
Code:
$ cave owner /usr/lib64/python2.7/lib-dynload/_elementtree.so
dev-lang/python-2.7.2-r3::installed

So if _elementtree is not available, there is an error within your python-package.
Try reinstalling python:2.7 (xml-USE-Flag should be enabled, libxcb depends hard on that)
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Tue Jan 17, 2012 12:38 am    Post subject: Reply with quote

thank you franzf,

Today I try to run
Code:

$ find /usr/lib64/python2.7 -name "*elementtree*"

But it show nothing, There is no _elementtree.so

So I go to reinstall python
Code:

emerge python
[


When I emerge python, It have to install several package, and one
of them is "libxcb", So I failed.

As you see, My "make.conf" is there
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j8"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-cups -sdl build cjk debug sharedmem exif gd mmx sse sse2 X a52 aac aalib acl acpi adns alsa audiofile bash-completion bcmath bzip2 cairo calendar caps
cdr cgi cracklib crypt cscope css ctype curl custom-cflag cvs cxx dbus dga directfb djvu dri dvd dvdr
encode enscript esd evo fbcon ffmpeg flac fltk fontconfig ftp gdbm gif gimp glut gmp gnome gphoto2 gpm gsl gsm
gstreamer gtk gzip hdf5 iconv icq ieee1394 imagemagick imlib ipv6 java java6 javascript jpeg jpeg2k lame latex lcms
ldap libnotify lzma lzo mad matroska matrox mbox mhash mikmod mime milter mmap modplug modules mozilla
mp3 mp4 mpeg mpi mplayer msn multilib musepack mysql mysqli ncurses networkmanager nls nptl nsplugin ogg openal opengl
pam pch pcntl pcre pdf perl php png posix profile python qt4 raw readline samba seamonkey smp sockets socks5
sound source ssl syslog szip tcmalloc theora tk udev unicode usb vcd vim-syntax wifi win32codecs wmf xine
xinetd xml xscreensaver zlib xvid libgda"

#cjk gd threads cups doc xvid libgda

GENTOO_MIRRORS="ftp://mirrors.xmu.edu.cn/gentoo"


I don't know is there any package Conflict
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Tue Jan 17, 2012 12:45 am    Post subject: Reply with quote

Are you sure you've reemerged every installed python version ?
See the output of 'emerge -1pv dev-lang/python:<slot number>' for each.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Tue Jan 17, 2012 10:16 am    Post subject: Reply with quote

Code:
emerge -1 python

just installs the latest available version - python-3.1.4-r3, if you use stable python.
You need to run
Code:
emerge -1 python:2.7

in order to fix this issue.
(You should specify "-1" option - short for "--oneshot". Python is a dependency of many other packages, it should not be written to the worldfile, which -1 inhibits.
If you install new packages, like kdebase-meta, firefox,... you should NOT use this option! read man emerge for further information)

Is this installation really completely new? How did you install gentoo? Which stage-archive did you chose?
Another interesting question would be, why python depends on libxcb (as you say).
Could you post the output of
Code:
emerge -pvt1 python:2.7
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Sun Jan 22, 2012 5:07 am    Post subject: Reply with quote

Hello

I have not solve the libxcb-2.7 problem.

error info is
Code:

File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
from _elementtree import *
ImportError: No module named _elementtree
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
from _elementtree import *
ImportError: No module named _elementtree
make[1]: *** [composite.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [xc_misc.c] Error 1


Here is my emerge --info

Code:

Portage 2.1.10.41 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.1.6-gentoo x86_64)
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 22 Jan 2012 04:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo calendar cdda cdr cjk cli colord consolekit cracklib crypt cscope css ctype curl custom-cflag cvs cxx dbus dga djvu dri dts dvd dvdr eds emboss encode enscript evo exif expat fam ffmpeg firefox flac fltk fortran ftp gd gdbm gdu gif gimp glut gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gzip iconv icq ipv6 java java6 javascript jpeg jpeg2k lame latex lcms ldap libnotify mad milter minimal mmap mmx mng modplug modules mozilla mp3 mp4 mpeg mpi mplayer mudflap multilib musepack mysql nautilus ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcntl pcre pdf perl php png policykit posix ppds pppd profile pulseaudio python qt3support qt4 raw readline samba sasl sdl session smp socialweb sockets spell sse sse2 ssl startup-notification svg sysfs syslog szip tcpd threads tiff tk truetype udev unicode usb vcd vim-syntax vorbis wifi wmf x264 xcb xine xinetd xml xorg xscreensaver xulrunner xv xvid zlib" 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="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 stage tables krita karbon braindump" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


There is "make.conf"

Code:


# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j8"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo"

USE="-cups gdbm cjk mmx sse sse2 a52 aac aalib acl acpi  alsa bash-completion berkdb bzip2 cairo calendar crypt cscope
 css ctype curl custom-cflag cvs cxx dbus dga  djvu  dri dvd dvdr
 encode enscript expat exif ffmpeg flac fltk ftp gdbm gd gif gimp glut gmp gtk gzip iconv icq ipv6 java java6 javascript jpeg jpeg2k
 lame latex milter minimal mmap modplug modules mozilla mp3 mp4 mpeg mpi mplayer multilib musepack mysql ncurses networkmanager
 nls nptl nsplugin ogg opengl pam pcntl pcre pdf perl php png posix profile python qt4 raw readline sasl samba  smp sockets
 ssl syslog szip tk threads tcpd udev unicode usb vcd vim-syntax wifi win32codecs wmf xine xinetd xml xvid xscreensaver  zlib"

INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nv"


When I run "emerge -pvt1 python:2.7" , The information is
Code:


These are the packages that would be merged, in reverse order:

Calculating dependencies  .... done!
[ebuild   R    ] dev-lang/python-2.7.2-r3  USE="berkdb* gdbm ipv6 ncurses readline ssl threads tk (wide-unicode) xml -build* -doc -examples -sqlite -wininst" 0 kB
[ebuild  N     ]  dev-tcltk/blt-2.4z-r10  USE="X jpeg -static-libs" 0 kB
[ebuild  N     ]   dev-lang/tk-8.5.9-r1  USE="threads truetype xscreensaver (-aqua) -debug" 0 kB
[ebuild  N     ]    x11-libs/libXft-2.2.0  USE="-static-libs" 0 kB
[ebuild  N     ]     virtual/ttf-fonts-1  0 kB
[ebuild  N     ]      media-fonts/dejavu-2.33  USE="X -fontforge" 0 kB
[nomerge       ] media-fonts/dejavu-2.33  USE="X -fontforge"
[nomerge       ]  media-libs/fontconfig-2.8.0-r1  USE="-doc"
[ebuild  N     ]   app-admin/eselect-fontconfig-1.1  0 kB
[ebuild  N     ]    media-libs/fontconfig-2.8.0-r1  USE="-doc" 0 kB
[ebuild  N     ]  media-fonts/encodings-1.0.4  0 kB
[ebuild  N     ]  x11-apps/mkfontdir-1.0.6  0 kB
[nomerge       ] x11-libs/libXft-2.2.0  USE="-static-libs"
[ebuild  N     ]  x11-libs/libXrender-0.9.6  USE="-static-libs" 0 kB
[nomerge       ] dev-lang/python-2.7.2-r3  USE="berkdb* gdbm ipv6 ncurses readline ssl threads tk (wide-unicode) xml -build* -doc -examples -sqlite -wininst"
[nomerge       ]  dev-lang/tk-8.5.9-r1  USE="threads truetype xscreensaver (-aqua) -debug"
[ebuild  N     ]   x11-libs/libXScrnSaver-1.2.1  USE="-static-libs" 0 kB
[ebuild  N     ]   x11-libs/libXt-1.1.1  USE="-static-libs" 0 kB
[nomerge       ] media-fonts/encodings-1.0.4
[ebuild  N     ]  x11-apps/mkfontscale-1.0.9-r1  0 kB
[nomerge       ] x11-libs/libXScrnSaver-1.2.1  USE="-static-libs"
[ebuild  N     ]  x11-libs/libXext-1.3.0  USE="-doc -static-libs" 0 kB
[nomerge       ] x11-apps/mkfontdir-1.0.6
[nomerge       ]  x11-apps/mkfontscale-1.0.9-r1
[ebuild  N     ]   media-libs/freetype-2.4.8  USE="X bzip2 -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 0 kB
[ebuild  N     ]    x11-libs/libX11-1.4.4  USE="ipv6 -doc -static-libs -test" 0 kB
[ebuild  N     ]     x11-libs/libxcb-1.7  USE="-doc (-selinux) -static-libs" 0 kB

Total: 18 packages (17 new, 1 reinstall), Size of downloads: 0 kB


Any one have idea, tell me, Thank you.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Sun Jan 22, 2012 7:03 am    Post subject: Reply with quote

:roll:
buptwugh wrote:
[ebuild R ] dev-lang/python-2.7.2-r3 USE="berkdb* gdbm ipv6 ncurses readline ssl threads tk (wide-unicode) xml -build* -doc -examples -sqlite -wininst" 0 kB

I think this output ( '-build' part, to be exact) makes it pretty obvious that this python slot does need rebuild.

Though the order makes it a bit tricky.
Try 'emerge -1O python:2.7' first, if it works, rebuild afterwards, if not, tinker with useflags, till you can temporarily skip libxcb ('-tk', perhaps).
Back to top
View user's profile Send private message
buptwugh
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2012
Posts: 101
Location: Beijing,China

PostPosted: Mon Jan 23, 2012 12:32 am    Post subject: Reply with quote

:D
Thank you VoidMage, I have solve the problem by your method.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum