Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Prefix on Solaris 10 64-bit -lcrypt issue [SOLVED]
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
soltoo
n00b
n00b


Joined: 02 Jul 2011
Posts: 15

PostPosted: Tue Oct 18, 2011 8:50 pm    Post subject: Gentoo Prefix on Solaris 10 64-bit -lcrypt issue [SOLVED] Reply with quote

I am in the process of bringing up Postfix on Gentoo Prefix on Solaris 10 64-bit.

I hit this quirk or snag and it is a bigger issue than only Postfix:

Code:

/opt/gentoo/usr/lib/gcc/x86_64-pc-solaris2.10/4.2.4/../../../../x86_64-pc-solaris2.10/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt
/opt/gentoo/usr/lib/gcc/x86_64-pc-solaris2.10/4.2.4/../../../../x86_64-pc-solaris2.10/bin/ld: cannot find -lcrypt


The answer is that /usr/lib/libcrypt.so is a symlink to a 32-bit library.
/usr/lib/libcrypt.so -> libcrypt_d.so

The 64-bit libcrypt has no such symlink
/usr/lib/64/libcrypt_d.so has no corresponding symlink

The libcrypt(3LIB) man page claims that /usr/lib/64/libcrypt.so.1 does exist.

Modified test system:
Code:

ln -s libcrypt_d.so /usr/lib/64/libcrypt.so

Then ld was happy with -lcrypt on 64-bit Solaris 10.
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:36 pm    Post subject: Reply with quote

This issue also came up in Python. Solaris 8 till 11 (at least 10) contain this bug of missing 64-bits symlink. The workaround is just to use the crypt_i or crypt_d library (I forgot which one).
_________________
Gentoo on a different level
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