Undefined reference to crypt

Hello everyone, I have this problem when compiling the latest version of nerves for rpi4 when I added some extra packages. I had seen the solution on the Slack channel for the conservation is no longer there. If you help me solve it, it would be a great help. I know it’s an issue with the gcc compiler.

/home/ubuntu/nerves_system_rpi4_intuitivo/.nerves/artifacts/nerves_system_rpi4_intuitivo-portable-1.27.0/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-nerves-linux-gnu/13.2.0/../../../../aarch64-nerves-linux-gnu/bin/ld: auth.o: in function 'cupsdAuthorize': buildroot/build/cups-2.4.7/scheduler/buildroot/build/cups-2.4.7/scheduler/auth.c:689: undefined reference to 'crypt'

The crypt function was removed by default in glibc. See Release/2.38 - glibc wiki. It looks like the answer is to enable libxcrypt in Buildroot.

1 Like