Strange problem with libc: undefined reference to `crypt'
- by sorush-r
I moved from Archlinux to Kubuntu 12.04 yesterday.
I compiled buildroot 2012.08 on Archlinux without any problem. Though on Kubuntu libcrypt seems to be broken. sysvinit can't find it anywhere. glibc-dev and all dependencies are installed.
How do I link to libcrypt? Or, which package containts that library?
...
bc-gcc sulogin.o -o sulogin
sulogin.o: In function `main':
sulogin.c:(.text+0x49d): undefined reference to `crypt'
collect2: ld returned 1 exit status