-
Notifications
You must be signed in to change notification settings - Fork 106
Description
root@alexan-PowerEdge-R740:/opt/mgmt/sonic-mgmt-common# make
make -C models/yang
make[1]: Entering directory '/opt/mgmt/sonic-mgmt-common/models/yang'
SONICYANG_IMPORT_DIR =
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/mgmt/sonic-mgmt-common/models/yang'
make -C ./cvl
make[1]: Entering directory '/opt/mgmt/sonic-mgmt-common/cvl'
cp -r testdata/*.json /opt/mgmt/sonic-mgmt-common/build/tests/cvl/testdata
/usr/bin/go test -mod=vendor -tags=test -cover -coverpkg=../cvl,../cvl/internal/util,../cvl/internal/yparser -c ../cvl -o /opt/mgmt/sonic-mgmt-common/build/tests/cvl/cvl.test
github.com/Azure/sonic-mgmt-common/cvl/internal/yparser
/usr/bin/ld: $WORK/b139/_x002.o: in function lyd_data_validate': /tmp/go-build/yparser.cover.go:50: undefined reference to
lyd_check_mandatory_tree'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:72: /opt/mgmt/sonic-mgmt-common/build/tests/cvl/cvl.test] Error 2
make[1]: Leaving directory '/opt/mgmt/sonic-mgmt-common/cvl'
make: *** [Makefile:50: cvl] Error 2
==================================
libyang this lyd_check_mandatory_tree symbol is not exposed for externel project? And why I can't find this symbol, have any advices?
root@alexan-PowerEdge-R740:/opt/mgmt/deps/libyang/build# readelf -s /usr/local/lib/libyang.so | grep lyd_check_mandatory_tree
root@alexan-PowerEdge-R740:/opt/mgmt/deps/libyang/build# cd ..
root@alexan-PowerEdge-R740:/opt/mgmt/deps/libyang# rg "lyd_check_mandatory_tree"
src/parser_xml.c
753: && lyd_check_mandatory_tree((act_notif ? act_notif : result), ctx, NULL, 0, options)) {
src/tree_internal.h
509:int lyd_check_mandatory_tree(struct lyd_node *root, struct ly_ctx *ctx, const struct lys_module **modules, int mod_count,
src/parser_json.c
1583: && lyd_check_mandatory_tree((act_notif ? act_notif : result), ctx, NULL, 0, options)) {
src/tree_data.c
846:lyd_check_mandatory_tree(struct lyd_node *root, struct ly_ctx *ctx, const struct lys_module **modules, int mod_count,
5055: if (lyd_check_mandatory_tree(act_notif, ctx, modules, mod_count, options)) {
5059: if (lyd_check_mandatory_tree(*node, ctx, modules, mod_count, options)) {