Re: build problems
Tomasz Kłoczko <[email protected]> Sat, 2 Jul 2005 20:05:59 +0200 (CEST)
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 1 Jul 2005, Jared Wiltshire wrote:
> Can someone lend me a hand with solving this error? Thanks.
>
> =========================================
> make[2]: Entering directory `/tmp/shadow-4.0.10/src'
> /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o login
> login.ologin_nopam.o ../libmisc/libmisc.a ../lib/libshadow.la
> gcc -g -O2 -o login login.o login_nopam.o ../libmisc/libmisc.a
> ../lib/.libs/libshadow.a
> ../lib/.libs/libshadow.a(encrypt.o)(.text+0x16): In function `pw_encrypt':
> /tmp/shadow-4.0.10/lib/encrypt.c:42: undefined reference to `crypt'
> collect2: ld returned 1 exit status
> make[2]: *** [login] Error 1
> make[2]: Leaving directory `/tmp/shadow-4.0.10/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/shadow-4.0.10'
> make: *** [all] Error 2
In my case:
[kloczek@v20z-2 src]$ make login
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o login login.o
login_nopam.o ../libmisc/libmisc.a ../lib/libshadow.la
gcc -g -O2 -o login login.o login_nopam.o ../libmisc/libmisc.a
../lib/.libs/libshadow.a -lcrypt -lselinux
^^^^^^^
I supose you have shadow source code configured for not use PAM support.
Missing -lcrypt in src/Makefile::LIBCRYPT in your case mean probaly
some problems on libcrypt detection (look on config.log file and try find
out fragment with "crypt" function checks).
1) you must check: do you have libcrypt.so symlink (usualy it comes with
glibc-devel package so you must install this package or chekc what
happens with this symlink),
2) shadow configure.ac must fixed for handled correctly case like yours
by finish with error message lack of library which provides crypt()
function (I'm during fixing this).
Thank you for report.
kloczek
--
-----------------------------------------------------------
*Ludzie nie majÂą problemĂłw, tylko sobie sami je stwarzajÂą*
-----------------------------------------------------------
Tomasz KÂłoczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*