Coap gnutls compiling issue

Trying to compile Constrained Application Protocol (RFC7252) client tool for IKEA TRÅDFRI stuff (based on Zigbee).
Existing COAP lib does not have gnutls or openssl versions, which makes it useless in my case.
Then I tried to compile coap with gnutls (target arm_cortex-a15+neon-vfpv4_musl_eabi),
but got undefined reference to 'gnutls_psk_free_client_credentials'
That's happened if I try to compile with --enable-examples, but if it to turn off - then compiled libcoap-2-gnutls.so only.
Sorry, don't have enough skills to fix the issue, please help.

logs
libcoap configuration summary:
      libcoap package version : "4.2.1"
      libcoap library version : "2.1.0"
      libcoap API version     : "2"
      libcoap DTLS lib extn   : "-gnutls"
      host system             : "arm-openwrt-linux-gnu"
      build DTLS support      : "yes"
          -->  GnuTLS around  : "yes" (found GnuTLS 3.7.1)
               GNUTLS_CFLAGS  : "-I/var/www/html/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include "
               GNUTLS_LIBS    : "-L/var/www/html/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib -lgnutls "
      build using epoll       : "yes"
      enable small stack size : "no"
      build doxygen pages     : "no"
      build man pages         : "no"
      build unit test binary  : "no"
      build examples          : "yes"
      build with gcov support : "no"

OpenWrt-libtool: link: arm-openwrt-linux-muslgnueabi-gcc -I../include -I../include -I../include/coap2 -pedantic -Wall -Wcast-qual -Wextra -Wformat-security -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused -Wwrite-strings -Wlogical-op -Wunused-result -I/var/www/html/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include -std=c99 -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/var/www/html/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/libcoap-4.2.1=libcoap-4.2.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -DPIC -fpic -fdiagnostics-color -D_GNU_SOURCE -znow -zrelro -o .libs/coap-rd coap-rd.o  -L/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/lib -L/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib -L/var/www/html/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib ../.libs/libcoap-2-gnutls.so -lgnutls
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_allocate_server_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_free_server_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_set_server_credentials_function'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_alpn_set_protocols'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_set_client_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_allocate_client_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_free_client_credentials'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:487: coap-server] Error 1
make[5]: *** Waiting for unfinished jobs....
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_allocate_server_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_free_server_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_set_server_credentials_function'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_alpn_set_protocols'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_set_client_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_allocate_client_credentials'
/var/www/html/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ../.libs/libcoap-2-gnutls.so: undefined reference to `gnutls_psk_free_client_credentials'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:483: coap-rd] Error 1
mv -f .deps/client.Tpo .deps/client.Po
make[5]: Leaving directory '/var/www/html/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/libcoap-4.2.1/examples'
make[4]: *** [Makefile:1034: all-recursive] Error 1
make[4]: Leaving directory '/var/www/html/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/libcoap-4.2.1'
make[3]: *** [Makefile:621: all] Error 2
make[3]: Leaving directory '/var/www/html/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/libcoap-4.2.1'
make[2]: *** [Makefile:100: /var/www/html/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/libcoap-4.2.1/.built] Error 2
make[2]: Leaving directory '/var/www/html/openwrt/feeds/packages/libs/libcoap'
time: package/feeds/packages/libcoap/compile#20.71#2.10#13.31
    ERROR: package/feeds/packages/libcoap failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/libcoap/compile] Error 1
make[1]: Leaving directory '/var/www/html/openwrt'
make: *** [/var/www/html/openwrt/include/toplevel.mk:230: package/feeds/packages/libcoap/compile] Error 2