View previous topic :: View next topic |
Author |
Message |
tunah Guest
|
Posted: Sat Apr 27, 2002 10:14 am Post subject: Crypt error on (re)building shadow |
|
|
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/libmisc.la ../lib/libshadow.la
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
TIA
><> tunah <>< |
|
Back to top |
|
|
volkris n00b
Joined: 26 May 2002 Posts: 36
|
Posted: Thu Jun 06, 2002 4:13 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|