package/freeradius-server: add libxcrypt optional dependency
Fix the following build failure raised since bump of glibc to version 2.39 in commitb5680f53d6
: src/lib/missing.c:31:7: error: conflicting types for 'crypt'; have 'char *(char *, char *)' 31 | char *crypt(UNUSED char *key, char *salt) | ^~~~~ In file included from src/freeradius-devel/missing.h:60, from src/freeradius-devel/libradius.h:71, from src/lib/missing.c:26: /home/buildroot/autobuild/instance-2/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/unistd.h:1162:14: note: previous declaration of 'crypt' with type 'char *(const char *, const char *)' 1162 | extern char *crypt (const char *__key, const char *__salt) | ^~~~~ Fixes:b5680f53d6
- http://autobuild.buildroot.org/results/dc45f1291245a0dadd382cea2ad41573ad976d60 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
0c19ab7e1c
commit
102b0ae459
@ -6,6 +6,7 @@ config BR2_PACKAGE_FREERADIUS_SERVER
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 if BR2_PACKAGE_LIBOPENSSL
|
||||
select BR2_PACKAGE_LIBTALLOC
|
||||
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
FreeRADIUS is an open source server which implements
|
||||
a protocol for remote user Authorization, Authentication
|
||||
|
@ -119,6 +119,10 @@ else
|
||||
FREERADIUS_SERVER_CONF_OPTS += --without-pcap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
||||
FREERADIUS_SERVER_DEPENDENCIES += libxcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
||||
FREERADIUS_SERVER_CONF_OPTS += --with-rlm_pam
|
||||
FREERADIUS_SERVER_DEPENDENCIES += linux-pam
|
||||
|
Loading…
Reference in New Issue
Block a user