[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: crypt.h: No such file or directory
From:       Doug Abbott <doug () intellimetrix ! us>
Date:       2019-07-14 3:09:41
Message-ID: 31445743-aedf-75f2-e22d-9cbedaabb669 () intellimetrix ! us
[Download RAW message or body]

Thanks, guys. I went back to busybox-1_27_2 and it builds.

Doug

On 7/13/2019 10:52 AM, Andre McCurdy wrote:
> On Fri, Jul 12, 2019 at 3:37 PM Xabier Oneca -- xOneca <xoneca@gmail.com> wrote:
> > Hello Doug,
> > 
> > > libbb/pw_encrypt.c:9:10: fatal error: crypt.h: No such file or directory
> > > #include <crypt.h>
> > > ^~~~~~~~~
> > > compilation terminated.
> > > make[1]: *** [libbb/pw_encrypt.o] Error 1
> > > make: *** [libbb] Error 2
> > > 
> > > CROSS_COMPILER_PREFIX = arm-poky-linux-gnueabi-
> > > SYSROOT = /opt/arm/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi
> > > EXTRA_CFLAGS = -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard \
> > > -mcpu=cortex-a7 
> > > Indeed, there is no crypt.h in the include path. I even tried turning on \
> > > USE_PORTABLE_CODE to no avail.
> > I have crypt.h in /usr/include, provided by libxcrypt-devel package.
> > That package name is from OpenSUSE, not sure how it's named in Yocto.
> That header used to be part of glibc but got moved into a separate
> library (libxcrypt) in recent versions. Maybe try adding libxcrypt to
> your Yocto toolchain?
> 
> Actually it looks like Busybox is a little buggy too... the #include
> <crypt.h> in pw_encrypt.c should probably by guarded by #if
> !ENABLE_USE_BB_CRYPT, which would remove the dependency on a toolchain
> crypt.h if the Busybox internal crypt support is being used.
> 
> 

-- 
Doug Abbott
Principal Consultant, Intellimetrix
Linux for the Real World
575-590-2788

www.intellimetrix.us


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic