Compilation of Python 3.5.1 fails on Solaris 8 sparc

bthk55 at gmail.com bthk55 at gmail.com
Fri Feb 19 06:49:01 EST 2016


When I try to compile the python from source on Solaris 8. I getting the following error 



"""

Modules/_localemodule.o: In function PyIntl_gettext': Modules/_localemodule.o(.text+0xb60): undefined reference to libintl_gettext' Modules/_localemodule.o: In function PyIntl_dgettext': Modules/_localemodule.o(.text+0xba8): undefined reference to libintl_dgettext' Modules/_localemodule.o: In function PyIntl_dcgettext': Modules/_localemodule.o(.text+0xbf8): undefined reference to libintl_dcgettext' Modules/_localemodule.o: In function PyIntl_textdomain': Modules/_localemodule.o(.text+0xc38): undefined reference to libintl_textdomain' Modules/_localemodule.o: In function PyIntl_bindtextdomain': Modules/_localemodule.o(.text+0xcec): undefined reference to libintl_bindtextdomain' Modules/_localemodule.o: In function PyIntl_bind_textdomain_codeset': Modules/_localemodule.o(.text+0xde0): undefined reference to libintl_bind_textdomain_codeset' collect2: ld returned 1 exit status make: *** [Programs/_freeze_importlib] Error 1


"""



The steps that I followed :

CPPFLAGS="-I/usr/local/include"
 export CPPFLAGS
 LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib'
 export LD_OPTIONS
 LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
 export LDFLAGS
 CC=/usr/local/bin/gcc OPT="-O2" ./configure  --prefix=/opt/soe/local/Python-3.5.1




More information about the Python-list mailing list