Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266528 - python-2.6.1-r1 fails to build certain modules (termios gdbm nis etc)
Summary: python-2.6.1-r1 fails to build certain modules (termios gdbm nis etc)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 12:19 UTC by Steven
Modified: 2009-04-19 19:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (dev-lang:python-2.6.1-r1:20090417-120411.log,461.39 KB, text/plain)
2009-04-17 12:21 UTC, Steven
Details
emerge log for python-2.6.2 (dev-lang:python-2.6.2:20090418-232142.log,439.79 KB, text/plain)
2009-04-19 18:56 UTC, Steven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven 2009-04-17 12:19:42 UTC
python-2.6.1-r1 gets installed but it certain important modules are missing.

[ebuild   R   ] dev-lang/python-2.6.1-r1

eselect python set 2

python
Python 2.6.1 (r261:67515, Apr 17 2009, 15:05:37)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>import termios
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named termios

So emerge/portage is unusable with python2.6
From the emerge log:
i686-pc-linux-gnu-gcc -pthread -Wl,-O1 -L. -Xlinker -export-dynamic -o python \
                        Modules/python.o \
                        -L. -lpython2.6 -lpthread -ldl  -lutil   -lm
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/mathmodule.c: In function ‘math_fsum’:
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/mathmodule.c:522: warning: passing argument 1 of ‘PyFPE_dummy’ discards qualifiers from pointer target type
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld:build/temp.linux-i686-2.6/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/shamodule.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld:build/temp.linux-i686-2.6/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/shamodule.o:1: syntax error
collect2: ld returned 1 exit status
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld:build/temp.linux-i686-2.6/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/md5module.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld:build/temp.linux-i686-2.6/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/md5module.o:1: syntax error
collect2: ld returned 1 exit status
..........

Then later:

..........
checking assembler .cfi pseudo-op support... yes
checking whether .eh_frame section should be read-only... yes
checking for __attribute__((visibility("hidden")))... yes
configure: creating ./config.status
config.status: creating include/ffi.h
config.status: creating fficonfig.py
config.status: creating fficonfig.h
config.status: linking /zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/libffi/src/x86/ffitarget.h to include/ffitarget.h
config.status: linking /zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/libffi/include/ffi_common.h to include/ffi_common.h
config.status: executing depfiles commands
config.status: executing include commands
config.status: executing src commands
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/_ctypes.c: In function ‘CDataType_in_dll’:
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/_ctypes.c:608: warning: format not a string literal and no format arguments
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/_ctypes.c: In function ‘CFuncPtr_FromDll’:
/zzz/tmp/portage/dev-lang/python-2.6.1-r1/work/Python-2.6.1/Modules/_ctypes/_ctypes.c:3292: warning: format not a string literal and no format arguments

Failed to find the necessary bits to build these modules:
bsddb185           sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_bsddb             _md5               _sha
_sha256            _sha512            dbm
gdbm               nis                resource
termios

>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/python-2.6.1-r1

>>> Install python-2.6.1-r1 into /zzz/tmp/portage/dev-lang/python-2.6.1-r1/image/ category dev-lang

.........

Though it still builds and installs.

emerge --info
Portage 2.2_rc30 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-AMD_Athlon-tm-_XP_3000+-with-glibc2.0
Timestamp of tree: Fri, 17 Apr 2009 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
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.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-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 /var/lib/hsqldb"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/zzz/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.lug.ro/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ro"
MAKEOPTS="-j2"
PKGDIR="/zzz/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="/zzz/tmp"
PORTDIR="/zzz/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amr apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dri dvd dvdr dvdread encode evo fam gdbm gif glitz gpm gstreamer hal htmlhandbook iconv ipv6 isdnlog jpeg kde kdehiddenvisibility libnotify mad midi mikmod mmx mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline reflection sdl session spl sse ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="intel8x0 usb-audio" 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 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ro" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steven 2009-04-17 12:21:15 UTC
Created attachment 188672 [details]
emerge log
Comment 2 Steven 2009-04-19 18:56:27 UTC
Created attachment 188910 [details]
emerge log for python-2.6.2
Comment 3 Steven 2009-04-19 18:56:53 UTC
Seems to be fixed in python-2.6.2 ...
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-04-19 19:22:15 UTC
(In reply to comment #3)
> Seems to be fixed in python-2.6.2 ...

OK. I'm closing this bug.