Build error; libxcrypt, configure: error: bad value 'solaris' for --enable-hashes

Hi, I'm trying to build the r4s openwrt-23.05 branch on archlinux

A minimal config did build just fine two days ago (after fixing some stuff it complained about), but with a config including more packages it keeps failing.

I'm at my wits end, anybody got some hot tips, for a newcomer to building openwrt.

It fails on building libxcrypt with:

checking how to link with read-only relocations... -Wl,-z,relro
checking how to link with immediate binding... -Wl,-z,now
checking whether C compiler accepts -fno-plt... yes
checking for arc4random_buf... no
checking for explicit_bzero... yes
checking for explicit_memset... no
checking for getentropy... yes
checking for getrandom... yes
checking for memset_s... no
checking for open64... no
checking for syscall... yes
checking for valgrind... no
checking for Python 3.>=6 with Passlib... not found
configure: Disabling the "regen-ka-table" target, missing Python requirements.
checking whether all ucontext.h functions are available... no
when is deprecated at /home/fabio/Documents/Build_openWRT/openwrt/build_dir/target-aarch64_generic_musl/libxcrypt-4.4.33/build-aux/scripts/BuildCommon.pm line 522.
Compilation failed in require at ./build-aux/scripts/expand-selected-hashes line 28.
BEGIN failed--compilation aborted at ./build-aux/scripts/expand-selected-hashes line 28.
configure: error: bad value 'solaris' for --enable-hashes
make[3]: *** [Makefile:59: /home/fabio/Documents/Build_openWRT/openwrt/build_dir/target-aarch64_generic_musl/libxcrypt-4.4.33/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/fabio/Documents/Build_openWRT/openwrt/feeds/packages/libs/libxcrypt'
time: package/feeds/packages/libxcrypt/compile#13.98#13.72#35.49
    ERROR: package/feeds/packages/libxcrypt failed to build.
make[2]: *** [package/Makefile:128: package/feeds/packages/libxcrypt/compile] Error 1
make[2]: Leaving directory '/home/fabio/Documents/Build_openWRT/openwrt'

It seems this error was fixed on libxcrypt 4.4.35, if you're using an older version you might get this error.

https://bugs.gentoo.org/909650

I'm not quite sure how you upgrade it on your build, but I hope it gives you some light. :slight_smile:

Cheers for digging that up.

Well sounds like it's time for a bug report for the open-wrt package feed and hope they bump it.

The package feed bug report is here ...

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.