[BusyBox] Would you happen to know what library to link against to get definition for crypt(x,y)

Sowmya.Krishnaswamy at nokia.com Sowmya.Krishnaswamy at nokia.com
Fri Jan 24 11:18:03 UTC 2003


Hello,

When I compile busybox downloaded from CVS I get undefined reference to crypt (x, y). Would you happen to know the reason for the following error:

gcc -s -Wl,-warn-common -o busybox ./applets/applets.a ./archival/archival.a ./archival/libunarchive/libunarchive.a ./console-tools/console-tools.a ./debianutils/debianutils.a ./editors/editors.a ./fileutils/fileutils.a ./findutils/findutils.a ./init/init.a ./miscutils/miscutils.a ./modutils/modutils.a ./networking/networking.a ./networking/libiproute/libiproute.a ./networking/networking.a ./procps/procps.a ./loginutils/loginutils.a ./shell/shell.a ./shellutils/shellutils.a ./sysklogd/sysklogd.a ./textutils/textutils.a ./util-linux/util-linux.a ./libbb/libbb.a ./libpwdgrp/libpwdgrp.a -lm
./libbb/libbb.a(correct_password.o): In function `correct_password':
correct_password.o(.text+0xec): undefined reference to `crypt'
./libbb/libbb.a(pw_encrypt.o): In function `pw_encrypt':
pw_encrypt.o(.text+0xf): undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

Thanks,
Sowmya



More information about the busybox mailing list