Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sorin Schwimmer

    #1

    Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

    Hi All,

    After a disaster in which I lost my whole harddrive,
    I decided to install the newest everything that I use.
    I put the latest Gentoo Linux, with gcc 4.1.1,
    installed
    tcl/tk 8.4.14 and tried Python 2.5. I tried with and
    without the suggested -fwrapv compiler option, and
    make
    gave me the same:

    <code>
    # make
    case $MAKEFLAGS in \
    *-s*) CC='gcc -pthread -fwrapv' LDSHARED='gcc
    -pthread -fwrapv -shared' OPT='-DNDEBUG -g -O3 -Wall
    -Wstrict-prototypes' ./python -E ./setup.py -q build;;
    \
    *) CC='gcc -pthread -fwrapv' LDSHARED='gcc -pthread
    -fwrapv -shared' OPT='-DNDEBUG -g -O3 -Wall
    -Wstrict-prototypes' ./python -E ./setup.py build;; \
    esac
    running build
    running build_ext
    db.h: found (4, 2) in /usr/include
    db lib: using (4, 2) db-4.2
    building 'dbm' extension
    gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
    -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
    -DHAVE_GDBM_NDBM _H -I.
    -I/plus/install/Python-2.5/./Include -I./Include -I.
    -I/usr/local/include
    -I/plus/install/Python-2.5/Include
    -I/plus/install/Python-2.5 -c
    /plus/install/Python-2.5/Modules/dbmmodule.c -o
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/dbmmodule.o
    gcc -pthread -fwrapv -shared
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/dbmmodule.o
    -L/usr/local/lib -lgdbm -o
    build/lib.linux-i686-2.5/dbm.so
    *** WARNING: renaming "dbm" since importing it failed:
    build/lib.linux-i686-2.5/dbm.so: undefined symbol:
    dbm_firstkey
    building '_tkinter' extension
    gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
    -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
    -DWITH_APPINIT=1 -I/usr/X11R6/include -I.
    -I/plus/install/Python-2.5/./Include -I./Include -I.
    -I/usr/local/include
    -I/plus/install/Python-2.5/Include
    -I/plus/install/Python-2.5 -c
    /plus/install/Python-2.5/Modules/_tkinter.c -o
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/_tkinter.o
    gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
    -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
    -DWITH_APPINIT=1 -I/usr/X11R6/include -I.
    -I/plus/install/Python-2.5/./Include -I./Include -I.
    -I/usr/local/include
    -I/plus/install/Python-2.5/Include
    -I/plus/install/Python-2.5 -c
    /plus/install/Python-2.5/Modules/tkappinit.c -o
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/tkappinit.o
    gcc -pthread -fwrapv -shared
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/_tkinter.o
    build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/tkappinit.o
    -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib
    -ltk8.4 -ltcl8.4 -lX11 -o
    build/lib.linux-i686-2.5/_tkinter.so
    *** WARNING: renaming "_tkinter" since importing it
    failed: libtk8.4.so: cannot open shared object file:
    No such file or directory
    running build_scripts
    </code>

    I have libtk:

    <code>
    # ls -l /usr/local/lib/libtk8.4.so
    -r-xr-xr-x 1 root root 906285 Jan 10 16:08
    /usr/local/lib/libtk8.4.so
    </code>

    I can start wish.

    I need Tkinter for sure, and I'll like to have dbm.
    How should I proceed?

    Thanks for your advice,
    Sorin



    _______________ _______________ _______________ _______________ _______________ _________
    Have a burning question?
    Go to www.Answers.yahoo.com and get answers from real people who know.
  • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

    #2
    Re: Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

    Sorin Schwimmer schrieb:
    *** WARNING: renaming "_tkinter" since importing it
    failed: libtk8.4.so: cannot open shared object file:
    No such file or directory
    running build_scripts
    >
    I have libtk:
    >
    # ls -l /usr/local/lib/libtk8.4.so
    -r-xr-xr-x 1 root root 906285 Jan 10 16:08
    /usr/local/lib/libtk8.4.so
    >
    I need Tkinter for sure, and I'll like to have dbm.
    How should I proceed?
    Did you add /usr/local/lib to /etc/ld.so.conf?

    Regards,
    Martin

    Comment

    Working...