Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile python.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Wed Dec 24, 2008 8:11 am    Post subject: Can't compile python. Reply with quote

I've accidentally unmerged python.

I've downloaded Python-2.5 and try to compile it manually. But during make I've got warning and compilation stops:

Code:
libpython2.5.a(posixmodule.o): In function `posix_tmpnam':
/root/Python-2.5.4/./Modules/posixmodule.c:6858: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.5.a(posixmodule.o): In function `posix_tempnam':
/root/Python-2.5.4/./Modules/posixmodule.c:6813: warning: the use of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
        *-s*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
        *)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
        esac
running build
running build_ext
db.h: found (4, 5) in /usr/include
db lib: using (4, 5) db-4.5
/usr/include/sqlite3.h: version 3.5.9
building 'dbm' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_NDBM_H -I. -I/root/Python-2.5.4/./Include -I. -IInclude -I./Include -I/usr/local/include -I/root/Python-2.5.4/Include -I/root/Python-2.5.4 -c /root/Python-2.5.4/Modules/dbmmodule.c -o build/temp.linux-x86_64-2.5/root/Python-2.5.4/Modules/dbmmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/root/Python-2.5.4/Modules/dbmmodule.o -L/usr/local/lib -lgdbm -o build/lib.linux-x86_64-2.5/dbm.so
*** WARNING: renaming "dbm" since importing it failed: build/lib.linux-x86_64-2.5/dbm.so: undefined symbol: dbm_firstkey
running build_scripts


How python can be installed again?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Dec 24, 2008 4:54 pm    Post subject: Reply with quote

Download http://tinderbox.dev.gentoo.org/default-linux/x86/dev-lang/python-2.5.2-r7.tbz2 and extract it. Afterwards emerge python
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Wed Dec 24, 2008 5:25 pm    Post subject: Reply with quote

Thanks a lot.

I've extracted it, linked /usr/bin/python and emerged python.

But I've got a lot of python libs which doesn't work now and lots of soft (sush as compiz-fusion) doesn't work. How can be rapaired that?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Dec 24, 2008 5:28 pm    Post subject: Reply with quote

begin with running revdep-rebuild
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Wed Dec 24, 2008 5:39 pm    Post subject: Reply with quote

Yes I've run emerge --depclean and then revdep-rebuild.

revdep-rebuild is trying to emerge a lot of packages and the first of them gnome-base/libglade-2.6.3 doesn't finish.

Here is the log:

Code:
dv5 define # revdep-rebuild
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Found existing 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Found existing 2_ldpath.rr.
 * Checking dynamic linking consistency
 * Found existing 3_broken.rr.
 * Assigning files to packages
 * Found existing 4_raw.rr
 * Cleaning list of packages to rebuild
 * Found existing 4_pkgs.rr
 * Assigning packages to ebuilds
 * Found existing 4_ebuilds.rr
 * Evaluating package order
 * Found existing 5_order.rr
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot  app-text/gtkspell:0
app-text/poppler-bindings:0
dev-libs/gdl:0
dev-python/gnome-python:2
dev-python/gnome-python-extras:0
dev-python/pigment-python:0
dev-python/pygtk:2
gnome-base/gail:0
gnome-base/libbonoboui:0
gnome-base/libglade:2.0
gnome-base/libgnomecanvas:0
gnome-base/libgnomeui:0
gnome-base/librsvg:2
gnome-extra/gtkhtml:2
kde-base/kdebase:3.5
media-gfx/gimp:2
media-libs/freeglut:0
media-libs/glitz:0
media-libs/libcaca:0
media-libs/pigment:0
media-sound/amarok:0
media-video/vlc:0
x11-libs/cairo:0
x11-libs/gtkglarea:2
x11-libs/libgksu:2
x11-libs/libnotify:0
x11-libs/libsexy:0
x11-libs/libwnck:0
x11-misc/notification-daemon:0
x11-plugins/compiz-fusion-plugins-extra:0
x11-plugins/compiz-fusion-plugins-main:0
x11-wm/compiz:0
x11-wm/emerald:0
..........
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 40) gnome-base/libglade-2.6.3
 * libglade-2.6.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking libglade-2.6.3.tar.bz2 to /var/tmp/portage/gnome-base/libglade-2.6.3/work
 * Fixing OMF Makefiles ...                                                                                                                            [ ok ]
 * Running elibtoolize in: libglade-2.6.3
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnome-base/libglade-2.6.3/work/libglade-2.6.3 ...
 * Applying Makefile.in.am-2.4.2-xmlcatalog.patch ...                                                                                                  [ ok ]
 * Applying libglade-2.6.3-fix_tests-page_size.patch ...                                                                                               [ ok ]
 * econf: updating libglade-2.6.3/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating libglade-2.6.3/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-gtk-doc --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
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 x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking for library containing strerror... none required
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 build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
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 /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
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
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC 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 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... yes
configure: creating libtool
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.5.0... yes (version 2.12.11)
checking for gtk_plug_get_type... yes
checking for x86_64-pc-linux-gnu-pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBGLADE... yes


Last edited by deF1NE on Wed Dec 24, 2008 6:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Dec 24, 2008 5:44 pm    Post subject: Reply with quote

just post the last 20 lines of the build output and the output of emerge --info. If we really need the entire build log we'll ask for it.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Wed Dec 24, 2008 5:52 pm    Post subject: Reply with quote

Ok, sorry for posting entire log.

Here is emerge --info:

Code:
dv5 define # emerge --info
Portage 2.2_rc18 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-glibc2.2.5
Timestamp of tree: Wed, 24 Dec 2008 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=nocona -march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mtune=nocona -march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/thelinux /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apm berkdb bluetooth branding bzip2 cdr cli cracklib crypt cups dbus djvu dri dvd dvdr dvdread ffmpeg firefox flac fortran gdbm gif gpm hal iconv icq ieee1394 ipv6 isdnlog jabber jack java jpeg kde lirc lm_sensors matroska midi mmx mono mp3 mpeg mplayer mudflap multilib musepack ncurses nls nptl nptlonly nvidia opengl openmp oscar pam pcre pda pdf perl plasma pmu png pppd python qt3 qt4 rdesktop readline reflection samba scanner session smp spl sse sse2 ssl sysfs tcpd tiff unicode utf8 xcb xine xorg xvmc zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Wed Dec 24, 2008 6:22 pm    Post subject: Reply with quote

And here's end of the build log:

Code:
make[2]: *** [libglade-2.0.la] Ошибка 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/libglade-2.6.3/work/libglade-2.6.3/glade'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/libglade-2.6.3/work/libglade-2.6.3'
make: *** [all] Ошибка 2
 *
 * ERROR: gnome-base/libglade-2.6.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2660:  Called gnome2_src_compile
 *             environment, line 2041:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-base/libglade-2.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/libglade-2.6.3/temp/environment'.
 *

>>> Failed to emerge gnome-base/libglade-2.6.3, Log file:

>>>  '/var/tmp/portage/gnome-base/libglade-2.6.3/temp/build.log'

 * Messages for package gnome-base/libglade-2.6.3:

 *
 * ERROR: gnome-base/libglade-2.6.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2660:  Called gnome2_src_compile
 *             environment, line 2041:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-base/libglade-2.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/libglade-2.6.3/temp/environment'.
 *
 *
 * revdep-rebuild failed to emerge all packages.
 * you have the following choices:
 * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
 * - Use /etc/portage/package.keywords to unmask a newer version of the package.
 *   (and remove 5_order.rr to be evaluated again)
 * - Modify the above emerge command and run it manually.
 * - Compile or unmerge unsatisfied packages manually,
 *   remove temporary files, and try again.
 *   (you can edit package/ebuild list first)
 *
 * To remove temporary files, please run:
 * rm /var/cache/revdep-rebuild/*.rr
 * Found some broken files that weren't associated with known packages
 * The broken files are:
 *   /usr/lib64/python2.4/lib-dynload/dbm.so
Back to top
View user's profile Send private message
Captain Newbie
Apprentice
Apprentice


Joined: 22 Dec 2006
Posts: 182
Location: Socal

PostPosted: Wed Dec 24, 2008 9:45 pm    Post subject: Reply with quote

deF1NE wrote:
And here's end of the build log

Precisely what happened is actually above the *** Make: Error lines.
_________________
/* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
"As much as it pains me, we hope that developers know what they're doing." - wolf31o2
Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Thu Dec 25, 2008 5:46 am    Post subject: Reply with quote

Here is complite log on pastebin.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 25, 2008 2:44 pm    Post subject: Reply with quote

Code:

grep: /usr/lib64/libGL.la: No such file or directory

Was it really that hard to find this line ? :roll:
Back to top
View user's profile Send private message
deF1NE
n00b
n00b


Joined: 25 Nov 2008
Posts: 33
Location: Russia

PostPosted: Thu Dec 25, 2008 4:11 pm    Post subject: Reply with quote

VoidMage wrote:
Code:

grep: /usr/lib64/libGL.la: No such file or directory

Was it really that hard to find this line ? :roll:


And how it can be fixed?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Aug 12, 2009 12:11 pm    Post subject: Reply with quote

deF1NE wrote:
VoidMage wrote:
Code:

grep: /usr/lib64/libGL.la: No such file or directory

Was it really that hard to find this line ? :roll:


And how it can be fixed?


++
:(

I "fixed" the following way:

Code:
equery b libGL.la


then copy it over to /usr/lib/

via
Code:
cp -a /usr/lib64/opengl/ati/lib/libGL.la /usr/lib64/

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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