View previous topic :: View next topic |
Author |
Message |
soltoo n00b
Joined: 02 Jul 2011 Posts: 15
|
Posted: Tue Oct 18, 2011 8:50 pm Post subject: Gentoo Prefix on Solaris 10 64-bit -lcrypt issue [SOLVED] |
|
|
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 |
|
|
grobian Developer
Joined: 31 May 2006 Posts: 67
|
Posted: Sun Dec 04, 2011 7:36 pm Post subject: |
|
|
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 |
|
|
|