Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crypt error on (re)building shadow
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message

PostPosted: Sat Apr 27, 2002 10:14 am    Post subject: Crypt error on (re)building shadow Reply with quote

I'm running 1.1a, when I first compiled everything was great, unfortunately I messed up - I went to type "rm -r usr" but typed "rm -r /usr" and lost the most important stuff (gcc, make, etc) before I could hit ^C. I stuck in the install CD and just bootstrapped on top of my current setup and then did an "emerge -e system". Everything went fine except I got an error compiling shadow:
# ebuild shadow-4.0.2-r4.ebuild unpack
(extracts fine)
# ebuild shadow-4.0.2-r4.ebuild compile
(configures and makes fine)
# ebuild shadow-4.0.2-r4.ebuild emerge
(does a whole bunch of normal looking installs, compiles etc)
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -march=i686 -O3 -pipe -s -o sulogin sulogin.o ../libmisc/ ../lib/
i686-pc-linux-gnu-gcc -march=i686 -O3 -pipe -s -o sulogin sulogin.o ../libmisc/.libs/libmisc.a ../lib/.libs/libshadow.a
../lib/.libs/libshadow.a(encrypt.o): In function `pw_encrypt':
encrypt.o(.text+0x12): undefined reference to `crypt'
collect2: ld returned 1 exit status
make[1]: *** [sulogin] Error 1
make[1]: Leaving directory `/var/tmp/portage/shadow-4.0.2-r4/work/shadow-4.0.2/src'
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 6, Exitcode 2
!!! install problem

BTW, I googled the "undefined reference to crypt" and managed to get rid of it by adding sulogin_LDADD=$(LDADD) $(LIBCRYPT) or something in the makefile, but then I get an error somewhere else. I know the makefile is fine anyway, because I used it to install before and it worked fine. I'm confused... anyone got any ideas? When I rebootstrapped it gave me a blank root password and now I can't change it :?
><> tunah <><
Back to top

Joined: 26 May 2002
Posts: 36

PostPosted: Thu Jun 06, 2002 4:13 pm    Post subject: Reply with quote

Yeah, I've been sitting with this error for a week.
No idea, but I wish someone would reply to this with the solution...

You're not the only one, though, if it makes you feel any better
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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