Run confd_cm get error:MAXDEPTH/MAXKEYLEN 20/9 for confd_hkeypath_t are too small

I run confd_cmd

confd_cmd -dd -o -c 'mcreate /oc-platform:components/oc-platform:component{N9K-X9732C-EXM};'mcreate "/oc-platform:components/oc-platform:component{N9K-X9732C-EXM}"
DEBUG Library MAXDEPTH/MAXKEYLEN 20/9 for confd_hkeypath_t are too small, ConfD needs 35/8
FAILED: maapi_connect(ms, addr, addrlen), Error: Bad protocol usage or unexpected retval (21): Library MAXDEPTH/MAXKEYLEN 20/9 for confd_hkeypath_t are too small, ConfD needs 35/8, in function run, line 2730

I want fix the error.

I run command 'make EXTRA_CFLAGS="-DMAXDEPTH=35 -DMAXKEYLEN=8" ’ in path:confd-basic-7.6.libconfd.tar.gz/confd-basic-7.6/libconfd/, I get error:

ake[1]: Entering directory '/media/vdb/tools/confd-basic-7.6.linux.x86_64/libconfd/src'
gcc -Wall -O2 -std=gnu99  -Wall -Wstrict-prototypes -DEI_NO_DEPR_WARN -g -I. -I../include -I/media/vdb/tools/confd-basic-7.6.linux.x86_64/libconfd/lib/erl_interface/include -I/lab/build/tailf-src/confd-basic.confd-7.6.0-x86_64/openssl-build/include -DCONFD_C_PRODUCT_CONFD -DMAXDEPTH=35 -DMAXKEYLEN=8 -Wall -O2 -std=gnu99 -fpic -DDYNAMIC_DRIVER  -DMAXDEPTH=35 -DMAXKEYLEN=8 -c confd_lib_crypto.c
confd_lib_crypto.c:28:10: fatal error: openssl/evp.h: No such file or directory
 #include <openssl/evp.h>
          ^~~~~~~~~~~~~~~
compilation terminated.

How to fix it?

Recompiling your libconfd (and your application) is a necessary step in case you are getting complaints about MAXKEYLEN/MAXDEPTH. For libconfd recompilation you likely need header files for third-party libraries - in this case the compiler is complaining that it could not find header files for libssl. On debian-based Linux distribution you need to install libssl-dev (i.e. apt install libssl-dev), something like that elsewhere.