Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to compile python 2.7 on Solaris prefix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
keymon
n00b
n00b


Joined: 02 Aug 2011
Posts: 7

PostPosted: Tue Aug 09, 2011 7:46 pm    Post subject: [SOLVED] Unable to compile python 2.7 on Solaris prefix Reply with quote

Following the instructions in http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml, it fails when I try to recompile the $EPREFIX.

Any idea?

Code:

*** WARNING: renaming "_ctypes" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_ctypes.so: symbol PyUnicodeUCS4_FromEncodedObject: referenced symbol not found

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _sqlite3           _ssl
_tkinter           bsddb185           dbm
gdbm               linuxaudiodev      ossaudiodev
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes            _elementtree       _io
_json              _locale            _multibytecodec
_multiprocessing   _testcapi          array
cmath              cPickle            math
operator           pyexpat            strop
unicodedata

running build_scripts
creating build/scripts-2.7
copying and adjusting /tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Tools/scripts/pydoc -> build/scripts-2.7
copying and adjusting /tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Tools/scripts/idle -> build/scripts-2.7
copying and adjusting /tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Tools/scripts/2to3 -> build/scripts-2.7
copying and adjusting /tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Lib/smtpd.py -> build/scripts-2.7
changing mode of build/scripts-2.7/pydoc from 644 to 755
changing mode of build/scripts-2.7/idle from 644 to 755
changing mode of build/scripts-2.7/2to3 from 644 to 755
changing mode of build/scripts-2.7/smtpd.py from 644 to 755
make: *** [sharedmods] Error 1
emake failed


Code:

$ emerge --info =dev-lang/python-2.7.2
Portage 2.2.01.19011-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.2.4, unavailable, 5.10 i86pc)
=================================================================
                        System Settings
=================================================================
System uname: Solaris-2.10-i86pc-i386-32bit-ELF
Timestamp of tree: Tue, 26 Jul 2011 21:37:23 +0000
app-shells/bash:      4.2_p10
dev-util/pkgconfig:   0.25-r2
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.20.1-r1
sys-devel/gcc:        4.2.4-r01.3
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix
Installed sets:
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-pc-solaris2.10"
CFLAGS=""
CHOST="i386-pc-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/apps/murex/local/SunOS-i386/gentoo/usr/include -I/apps/murex/local/SunOS-i386/gentoo/tmp/usr/include"
CXXFLAGS=""
DISTDIR="/apps/murex/local/SunOS-i386/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-L/apps/murex/local/SunOS-i386/gentoo/usr/lib -R/apps/murex/local/SunOS-i386/gentoo/usr/lib -L/apps/murex/local/SunOS-i386/gentoo/lib -R/apps/murex/local/SunOS-i386/gentoo/lib -L/apps/murex/local/SunOS-i386/gentoo/tmp/usr/lib -R/apps/murex/local/SunOS-i386/gentoo/tmp/usr/lib"
PKGDIR="/apps/murex/local/SunOS-i386/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/apps/murex/local/SunOS-i386/gentoo/"
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="/tmp"
PORTDIR="/apps/murex/local/SunOS-i386/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="bootstrap cracklib cxx modules ncurses prefix readline x86-solaris zlib" 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="SunOS" 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" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Errors are:

Code:

$ grep renaming /tmp/portage/dev-lang/python-2.7.2/temp/build.log
*** WARNING: renaming "array" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/array.so: symbol PyUnicodeUCS4_FromUnicode: referenced symbol not found
*** WARNING: renaming "cmath" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/cmath.so: symbol PyFPE_jbuf: referenced symbol not found
*** WARNING: renaming "math" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/math.so: symbol PyFPE_jbuf: referenced symbol not found
*** WARNING: renaming "strop" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/strop.so: symbol PyFPE_jbuf: referenced symbol not found
*** WARNING: renaming "operator" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/operator.so: symbol _PyUnicodeUCS4_AsDefaultEncodedString: referenced symbol not found
*** WARNING: renaming "_io" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_io.so: symbol PyUnicodeUCS4_EncodeUTF8: referenced symbol not found
*** WARNING: renaming "_json" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_json.so: symbol PyUnicodeUCS4_FromEncodedObject: referenced symbol not found
*** WARNING: renaming "_testcapi" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_testcapi.so: symbol PyUnicodeUCS4_FromString: referenced symbol not found
*** WARNING: renaming "unicodedata" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/unicodedata.so: symbol _PyUnicodeUCS4_ToDigit: referenced symbol not found
*** WARNING: renaming "_locale" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_locale.so: symbol PyUnicodeUCS4_AsWideChar: referenced symbol not found
*** WARNING: renaming "cPickle" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/cPickle.so: symbol PyUnicodeUCS4_AsUTF8String: referenced symbol not found
*** WARNING: renaming "pyexpat" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/pyexpat.so: symbol PyUnicodeUCS4_Decode: referenced symbol not found
*** WARNING: renaming "_elementtree" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_elementtree.so: symbol PyUnicodeUCS4_Decode: referenced symbol not found
*** WARNING: renaming "_multibytecodec" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_multibytecodec.so: symbol PyUnicodeUCS4_Resize: referenced symbol not found
*** WARNING: renaming "_multiprocessing" since importing it failed: No module named cPickle
*** WARNING: renaming "_ctypes" since importing it failed: libc.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.7/_ctypes.so: symbol PyUnicodeUCS4_FromEncodedObject: referenced symbol not found


Last edited by keymon on Fri Aug 19, 2011 3:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
keymon
n00b
n00b


Joined: 02 Aug 2011
Posts: 7

PostPosted: Tue Aug 09, 2011 9:36 pm    Post subject: It is the temporal libpython2.7.a Reply with quote

I discovered that the problem was the previously created temporal python library. You just have to rename it:

Code:
mv $EPREFIX/tmp/usr/lib/libpython2.7.a $EPREFIX/tmp/usr/lib/_libpython2.7.a
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Thu Aug 11, 2011 1:25 am    Post subject: Thanks ! Reply with quote

Thanks; I just hit this myself and was drawing a blank.

PS, could you add [SOLVED] to your subject line to help others ?
_________________
Michael Mounteney
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Sun Dec 04, 2011 7:20 pm    Post subject: Reply with quote

Thanks, I'll add this "fix" to the bootstrap-prefix.sh script. I think the libpython?.?.a is never necessary. We only bootstrap it because we need the python interpreter for Portage.
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Thu Mar 27, 2014 11:49 am    Post subject: Reply with quote

Hi, did that issue appear again? I have some similar error for Prefix on HPUX:
Code:
In file included from /nfs/us04/mo/gentoo.hpux/tmp/var/tmp/python-2.7.3/Python-2.7.3/Modules/_ctypes/libffi/src/dlmalloc.c:1161:
/opt/hp-gcc-4.3.1/lib/gcc/ia64-hp-hpux11.23/4.3.1/include-fixed/stdlib.h:577: error: redefinition of 'struct mallinfo'

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _curses            _curses_panel   
_sqlite3           _ssl               _tkinter       
bsddb185           gdbm               linuxaudiodev   
ossaudiodev        spwd               sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes                                               

The manual guides are gone?? There is only the automatic bootstrap guide today and the manual guide which only means calling the ./bootstrap-prefix.sh with state{1,2,3}. I remember with my first Prefix I also changed some versions of ebuilds from the old manual guides to get it running.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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