Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

emerge of tdb fails [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
dave_deu
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Sun Aug 21, 2005 11:23 pm
Location: East Anglia, UK

emerge of tdb fails [SOLVED]

  • Quote

Post by dave_deu » Thu Jul 08, 2010 8:54 pm

Hi, please could someone help me with a problem I've had for a good few months now. When I do a global update emerge tries to compile tdb but fails with the following errors shortly after the build starts:

Code: Select all

Compiling tools/tdbbackup.c                                                                                                   
i686-pc-linux-gnu-gcc -shared -Wl,-Bsymbolic  -Wl,-O1 -o libtdb.so.1.2.1 common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o -Wl,--version-script tdb.exports -Wl,-soname=libtdb.so.1  
i686-pc-linux-gnu-gcc -fPIC -c ./pytdb.c -I./include -Iinclude  -O2 -march=athlon-xp -pipe -fomit-frame-pointer -I./libreplace `/usr/bin/python2.5-config --cflags`                                                                                         
/bin/sh: /usr/bin/python2.5-config: /usr/bin/python2.5: bad interpreter: No such file or directory                            
./pytdb.c:30:20: error: Python.h: No such file or directory                                                                   
./pytdb.c:39: error: expected specifier-qualifier-list before ‘PyObject_HEAD’                                                 
./pytdb.c: In function ‘PyAPI_DATA’:                                                                                          
./pytdb.c:44: error: expected declaration specifiers before ‘PyTdb’                                                           
./pytdb.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token                                        
./pytdb.c:52: error: expected ‘)’ before ‘*’ token                                                                            
./pytdb.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                        
./pytdb.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                        
./pytdb.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:164: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:220: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:271: error: expected specifier-qualifier-list before ‘PyObject_HEAD’                                                
./pytdb.c:274: error: storage class specified for parameter ‘PyTdbIteratorObject’                                             
./pytdb.c:276: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:288: error: expected ‘)’ before ‘*’ token                                                                           
./pytdb.c:294: error: expected declaration specifiers before ‘PyTypeObject’                                                   
./pytdb.c:301: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:321: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_methods’                            
./pytdb.c:358: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:360: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:365: error: expected declaration specifiers or ‘...’ before ‘PyObject’                                              
./pytdb.c:366: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token                                       
./pytdb.c:373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:378: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:383: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_getsetters’                         
./pytdb.c:395: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:397: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token                                       
./pytdb.c:409: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token                                       
./pytdb.c:429: error: expected declaration specifiers or ‘...’ before ‘PyObject’                                              
./pytdb.c:429: error: expected declaration specifiers or ‘...’ before ‘PyObject’                                              
./pytdb.c:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token                                       
./pytdb.c:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_mapping’                            
./pytdb.c:464: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:465: error: expected declaration specifiers before ‘PyTypeObject’                                                   
./pytdb.c:477: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_methods’                                   
./pytdb.c:483: error: expected declaration specifiers before ‘;’ token                                                        
./pytdb.c:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token                                       
./pytdb.c:274: error: declaration for parameter ‘PyTdbIteratorObject’ but no such parameter                                   
./pytdb.c:516: error: expected ‘{’ at end of input                                                                            
make: *** [pytdb.o] Error 1                                                                                                   
make: *** Waiting for unfinished jobs....                                                                                     
 * ERROR: sys-libs/tdb-1.2.1 failed:
When I do "emerge -pv tdb" I get:

Code: Select all

[ebuild  N    ] sys-libs/tdb-1.2.1  USE="python tdbtest tools -static-libs" 0 kB
When I do "eselect python list" I get:

Code: Select all

Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1

Any ideas?

Thanks.
Last edited by dave_deu on Fri Jul 09, 2010 5:28 pm, edited 1 time in total.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Fri Jul 09, 2010 12:52 am

No ideas really. Have you run python-updater?
Top
Hu
Administrator
Administrator
Posts: 24383
Joined: Tue Mar 06, 2007 5:38 am

Re: emerge of tdb fails

  • Quote

Post by Hu » Fri Jul 09, 2010 2:55 am

dave_deu wrote:

Code: Select all

/bin/sh: /usr/bin/python2.5-config: /usr/bin/python2.5: bad interpreter: No such file or directory                            
That looks odd. What is the output of emerge --info? How regularly have you updated Gentoo? When did you upgrade to Python 2.6 and remove Python 2.5?
Top
manywele
l33t
l33t
User avatar
Posts: 743
Joined: Sat Jul 12, 2003 12:48 am
Location: Inside

  • Quote

Post by manywele » Fri Jul 09, 2010 5:53 am

Hey, I think I just ran into this myself doing some major cleanup. I just got rid of python-2.5 (hey, I've been busy) and even though eselect python list showed my python version as 2.6 it was still set up wrong. I think /usr/bin/python was pointing to something wrong instead of /usr/bin/python-wrapper. I just ran

Code: Select all

eselect python set 1
and it fixed the python link.

This is definitely the problem.
/bin/sh: /usr/bin/python2.5-config: /usr/bin/python2.5: bad interpreter: No such file or directory
Top
dave_deu
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Sun Aug 21, 2005 11:23 pm
Location: East Anglia, UK

  • Quote

Post by dave_deu » Fri Jul 09, 2010 12:32 pm

I've tried redoing eselect but that didn't fix it. I've also tried python-updater which I killed after a while because it wasn't finding any more programs and just seemed to have stopped doing anything. Here's the output of python-updater:

Code: Select all

* Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 *   Adding to list: app-office/dia:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: app-office/openoffice-bin:0
 *   Adding to list: dev-libs/boost:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: dev-libs/boost:1.41
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: dev-python/dnspython:0
 *   Adding to list: dev-python/geoip-python:0
etc.

I can't remember when I upgraded python. I update my system weekly.

Here is emerge --info:

Code: Select all

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7 i686)    
=================================================================                              
System uname: Linux-2.6.32-gentoo-r7-i686-AMD_Athlon-tm-_XP_3200+-with-gentoo-1.12.13          
Timestamp of tree: Thu, 08 Jul 2010 10:15:01 +0000                                             
app-shells/bash:     4.0_p37                                                                   
dev-java/java-config: 2.1.11                                                                   
dev-lang/python:     2.6.5-r2, 3.1.2-r3                                                        
dev-util/cmake:      2.6.4-r3                                                                  
sys-apps/baselayout: 1.12.13                                                                   
sys-apps/sandbox:    1.6-r2                                                                    
sys-devel/autoconf:  2.13, 2.65                                                                
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1          
sys-devel/binutils:  2.20.1-r1                                                                 
sys-devel/gcc:       4.3.4, 4.4.3-r2                                                           
sys-devel/gcc-config: 1.4.1                                                                    
sys-devel/libtool:   2.2.6b                                                                    
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext S3TC X a52 aac aalib acl acpi aim alsa arts asf audiofile avahi berkdb bzip2 bzlib cairo cdda cddb cdio cdparanoia cdr cdrom cli consolekit cpudetection cracklib crypt cups custom-optimization cxx dbus dia dirac directfb divx divx4linux doc doomsday dri dv dvd dvdread embedded enblend encode erandom esoob ethereal examples exif extras f77 faac faad fbcon ffmpeg flac fortran fuse gd gdbm gif gmedia gphoto2 gpm gsm gstreamer hal hbci iconv id3tag ieee1394 imagemagick imap inkjar ipv6 irda joystick jpeg jpeg2k kde kerberos lame lcms libcaca libsamplerate libv4l2 live lzma mad madwifi mdnsresponder-compat midi mjpeg mmx mmxext mng modules mozdomi mp3 mpeg mplayer mtp mudflap mysql ncurses nforce2 nls nptl nptlonly nvidia ofx ogg oggvorbis opengl openmp pam pcre pdf perl plasma plotutils png policy postscript ppds pppd pvr python qt3support qt4 quicktime quotes readline realmedia reflection rtsp samba sasl scanner sdl semantic-desktop session shout sift skins spl sql sse ssl stream svg sysfs tcpd tdbtest theora threads thumbnail tidy tiff tools truetype unicode usb uudeview v4l v4l2 vcd videos visualization vlm vorbis webkit win32codecs winbind wmp x264 x86 xine xorg xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vga" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Fri Jul 09, 2010 2:16 pm

Any chance you've got a stale python-config from python 2.5 somewhere ?
That package/ebuild is a bit broken in regard to python.
Top
dave_deu
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Sun Aug 21, 2005 11:23 pm
Location: East Anglia, UK

  • Quote

Post by dave_deu » Fri Jul 09, 2010 3:39 pm

If I look inside the python-config script it points correctly to 2.6:

Code: Select all

#!/usr/bin/env bash
# Gentoo python-config wrapper script

[[ "${EPYTHON}" =~ (/|^python$) ]] && EPYTHON="python2.6"
python_config="${EPYTHON/python/python-config-}"
"${0%/*}/${python_config:-python-config-2.6}" "$@"
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Fri Jul 09, 2010 3:49 pm

Though the error you've posted says something about '/usr/bin/python2.5-config'.
Top
dave_deu
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Sun Aug 21, 2005 11:23 pm
Location: East Anglia, UK

  • Quote

Post by dave_deu » Fri Jul 09, 2010 5:13 pm

In python2.5-config the first line specifies the interpreter as /usr/bin/python2.5 which is why it fails because I no longer have this file on my system.

The question is, why is my system using python2.5-config?
Top
dave_deu
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Sun Aug 21, 2005 11:23 pm
Location: East Anglia, UK

  • Quote

Post by dave_deu » Fri Jul 09, 2010 5:27 pm

Thanks for the tips as always. I solved this problem by simply deleting /usr/bin/python2.5-config. I don't why this works but it does. tdb now emerges fine.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy