Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477526 - Failed to build these modules: crypt on LFS 7.3 32bit
Summary: Failed to build these modules: crypt on LFS 7.3 32bit
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-20 18:29 UTC by zjhui
Modified: 2023-01-31 15:52 UTC (History)
0 users

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


Attachments
the build.log (file_477526.txt,171.09 KB, text/plain)
2013-07-20 18:29 UTC, zjhui
Details
error message. (file_477526.txt,27.00 KB, text/plain)
2013-07-21 13:42 UTC, zjhui
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zjhui 2013-07-20 18:29:06 UTC
Created attachment 353730 [details]
the build.log

Hi,all. I tried to install the gentoo prefix on my LFS 7.3 32bit.But it comes error:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _sqlite3           _tkinter        
bsddb185           dl                 nis             
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
crypt 

It comes error at 'emrege -e system'.
I find it has the libcrypt.so on gentoo/usr/lib/ directory.
zjhui [ ~ ]$ ll bootstrap-old/gentoo/usr/lib/libcrypto.so*
lrwxrwxrwx 1 zjhui zjhui   18  7月 13 00:04 bootstrap-old/gentoo/usr/lib/libcrypto.so -> libcrypto.so.1.0.0
-r-xr-xr-x 1 zjhui zjhui 1.7M  7月 13 00:04 bootstrap-old/gentoo/usr/lib/libcrypto.so.1.0.0

If you need any more information, please tell me.
Comment 1 Benda Xu gentoo-dev 2013-07-20 22:47:00 UTC
Are you bootstrapping? If so, try to add -lcrypt to LDFLAGS to circumvent this.


The relavent line in your build.log is,

building 'crypt' extension

i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L/home/zjhui/gentoo/lib -L/home/zjhui/gentoo/usr/lib -L. -Wl,-O1 -L/home/zjhui/gentoo/lib -L/home/zjhui/gentoo/usr/lib -L. -fno-strict-aliasing -O2 -march=i686 -pipe -m32 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/home/zjhui/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Include -I/home/zjhui/gentoo/usr/include build/temp.linux-i686-2.7/home/zjhui/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Modules/cryptmodule.o -L/home/zjhui/gentoo/lib -L/home/zjhui/gentoo/usr/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/crypt.so
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-i686-2.7/crypt.so: undefined symbol: crypt


The cause of missing -lcrypt in linking is not yet known.
Comment 2 zjhui 2013-07-21 13:42:38 UTC
Created attachment 353772 [details]
error message.
Comment 3 zjhui 2013-07-21 13:47:55 UTC
I add the -lcrypt on bootstrap-prefix.sh on line 736 like this: export LDFLAGS="-L$EPREFIX/tmp/usr/lib -lcrypt". But it seems didn't work. The error message is on the new attachment.And the python-2.7.5's build.log is same as before.
Comment 4 zjhui 2013-07-21 13:48:02 UTC
zjhui@zjhui-lfs ~ $ emerge --info '=dev-lang/python-2.7.5'

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/x86/13.0

You may use the following command to upgrade:

        eselect profile set default/linux/x86/13.0

Portage 2.2.01.22124-prefix (prefix/linux/x86, gcc-4.7.2, unavailable, 3.5.2 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.2-i686-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-glibc2.0
KiB Mem:     6225644 total,   2263676 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 20 Jul 2013 18:36:00 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x86-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
DISTDIR="/home/zjhui/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/home/zjhui/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/zjhui/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/zjhui/gentoo/var/tmp"
PORTDIR="/home/zjhui/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pcre prefix readline session ssl tcpd unicode x86 zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 zjhui 2013-07-21 13:49:30 UTC
zjhui@zjhui-lfs ~ $ emerge -pqv '=dev-lang/python-2.7.5'
[ebuild     U ] dev-lang/python-2.7.5 [2.7.3-r3] USE="gdbm* ipv6 ncurses readline* ssl* threads (wide-unicode) xml (-aqua) (-berkdb) -build -doc -examples -hardened% -sqlite -tk -wininst" 

 * IMPORTANT: 4 news items need reading for repository 'gentoo_prefix'.
 * Use eselect news to read news items.
Comment 6 Benda Xu gentoo-dev 2013-07-21 23:45:34 UTC
Have you checked whether your LDFLAGS was effective, i.e. whether the crypt linking command actually have "-lcrypt" appeneded?
Comment 7 zjhui 2013-07-22 14:40:33 UTC
how can i find whether the crypt linking command actually have "-lcrypt" appeneded,from the build.log?