This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Python libcrypt build problem on Solaris 8, 9, 10 and OpenSolaris
Type: compile error Stage: resolved
Components: Build Versions: Python 3.4, Python 3.5, Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: csernazs, eggert, enchanter, grobian, illumino, iritkatriel, jcea
Priority: normal Keywords: needs review, patch

Created on 2006-04-17 20:02 by eggert, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
diff.patch.txt eggert, 2006-04-17 20:02
python-2.7-solaris64-crypt.patch grobian, 2010-01-16 19:34
python-2.6.2-solaris64-crypt.patch grobian, 2010-01-16 19:34
Messages (6)
msg28263 - (view) Author: Paul Eggert (eggert) Date: 2006-04-17 20:02
Python 2.5a1 and Python 2.4.3 both build incorrectly on
Solaris 8 when compiled in 64-bit mode, using Sun
Studio 11 cc.  Here is the diagnostic:

cc -O -xarch=v9 -G
-L/u/cs/fac/eggert/seasnet/prefix/lib -lcrypt -o
ld: fatal: library -lcrypt: not found
ld: fatal: File processing errors. No output written to

The problem is that looks at 32-bit libraries
when trying to decide whether a 64-bit build will work.
 Using LIBS=' -lcrypt_i' does not work around the
problem, since the LIBS setting is not exported to the
module build.  I'll attach a proposed patch to the
README file to warn about the problem.
msg63507 - (view) Author: Tim Mooney (enchanter) Date: 2008-03-13 15:51
Paul, your comment in your patch, about this being fixed post Solaris 9,
doesn't appear to be correct.  I have x86_64-sun-solaris2.10 with all
patches applied and the problem exists there too.  I'm using Workshop 12.
msg97899 - (view) Author: Fabian Groffen (grobian) Date: 2010-01-16 19:34
I use this patch, which just always uses crypt_i on Solaris to work around the problem.
msg228040 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-10-01 00:00
I've no idea whether or not the patches are still valid after all this time.
msg250873 - (view) Author: Peter Bray (illumino) Date: 2015-09-17 02:37
While I have not tested the patch provided, the following ls(1) command on Sun Solaris 10 Update 8 and Oracle Solaris 10 Update 11, show that on (at least) X86 systems, there is no -lcrypt for 64-bit builds. So a patch is required on 64-bit builds, and possibly 32-bit builds if library variant (_d vs _i) consistency is required.

% ls -l /usr/lib/**/libcrypt* | sed -e 's/ 1 root .* 20.. //'

lrwxrwxrwx  /usr/lib/amd64/ -> ./
-rwxr-xr-x  /usr/lib/amd64/
lrwxrwxrwx  /usr/lib/amd64/ ->
-rwxr-xr-x  /usr/lib/amd64/
lrwxrwxrwx  /usr/lib/amd64/ ->
-rwxr-xr-x  /usr/lib/amd64/
lrwxrwxrwx  /usr/lib/ ->
lrwxrwxrwx  /usr/lib/ ->
lrwxrwxrwx  /usr/lib/ -> ./
-rwxr-xr-x  /usr/lib/
lrwxrwxrwx  /usr/lib/ -> ./
-rwxr-xr-x  /usr/lib/
lrwxrwxrwx  /usr/lib/ -> ./
-rwxr-xr-x  /usr/lib/

PS: Solaris 11.2 (X86) on the other hand does have a -lcrypt for both 32-bit and 64-bit libraries ( -> ./
msg411320 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-23 00:49
Python 2.4 and 2.5 are no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9).
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43231
2022-01-23 00:49:48iritkatrielsetstatus: open -> closed
resolution: out of date
stage: patch review -> resolved
2022-01-23 00:49:39iritkatrielsetnosy: + iritkatriel
messages: + msg411320
2019-02-24 22:38:57BreamoreBoysetnosy: - BreamoreBoy
2015-09-17 02:37:17illuminosetnosy: + illumino
messages: + msg250873
2014-10-01 00:00:43BreamoreBoysetnosy: + BreamoreBoy, jcea

messages: + msg228040
versions: + Python 3.4, Python 3.5, - Python 3.1, Python 3.2
2010-08-22 09:35:02BreamoreBoysetstage: test needed -> patch review
versions: + Python 3.1, Python 3.2, - Python 2.6
2010-02-11 14:17:12csernazssetnosy: + csernazs
2010-01-16 19:39:23brian.curtinsetkeywords: + needs review
2010-01-16 19:34:41grobiansetfiles: + python-2.6.2-solaris64-crypt.patch
2010-01-16 19:34:13grobiansetfiles: + python-2.7-solaris64-crypt.patch

title: Python libcrypt build problem on Solaris 8 -> Python libcrypt build problem on Solaris 8, 9, 10 and OpenSolaris
keywords: + patch
nosy: + grobian
versions: + Python 2.7
messages: + msg97899
2009-03-21 03:25:49ajaksu2setstage: test needed
type: compile error
versions: + Python 2.6, - Python 2.5
2008-03-13 15:51:04enchantersetnosy: + enchanter
messages: + msg63507
2006-04-17 20:02:09eggertcreate