The gNMI service in Go must be available on Mac platform as on Ubuntu.
Yans-iMac:ydk-gen yangorelik$ cd -
/Users/yangorelik/ydk-0.8.2/ydk-gen/sdk/go/gnmi/tests
Yans-iMac:tests yangorelik$ go test
# github.com/CiscoDevNet/ydk-go/ydk/path
Undefined symbols for architecture x86_64:
"_GetLastSubscribeResponse", referenced from:
__cgo_69fb6450a0f8_Cfunc_GetLastSubscribeResponse in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GetLastSubscribeResponse)
"_GnmiPathAddElem", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathAddElem in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathAddElem, __cgo_69fb6450a0f8_Cfunc_GnmiPathAddElemKey )
"_GnmiPathAddElemKey", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathAddElemKey in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathAddElemKey)
"_GnmiPathAddOrigin", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathAddOrigin in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathAddOrigin)
"_GnmiPathInit", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathInit in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathInit)
"_GnmiPathListAdd", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathListAdd in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathListAdd)
"_GnmiPathListFree", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathListFree in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathListFree)
"_GnmiPathListInit", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiPathListInit in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiPathListInit)
"_GnmiServiceGetCapabilities", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiServiceGetCapabilities in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiServiceGetCapabilities)
"_GnmiServiceGetFromPath", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiServiceGetFromPath in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiServiceGetFromPath)
"_GnmiServiceProviderFree", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderFree in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderFree)
"_GnmiServiceProviderGetSession", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderGetSession in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderGetSession)
"_GnmiServiceProviderInit", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderInit in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiServiceProviderInit)
"_GnmiSessionExecuteRpc", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionExecuteRpc in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionExecuteRpc)
"_GnmiSessionExecuteSubscribeRpc", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionExecuteSubscribeRpc in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionExecuteSubscribeRpc)
"_GnmiSessionFree", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionFree in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionFree)
"_GnmiSessionGetRootSchemaNode", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionGetRootSchemaNode in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionGetRootSchemaNode)
"_GnmiSessionInit", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionInit in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionInit)
"_GnmiSessionSubscribeInProgress", referenced from:
__cgo_69fb6450a0f8_Cfunc_GnmiSessionSubscribeInProgress in gnmi_path.cgo2.o
(maybe you meant: __cgo_69fb6450a0f8_Cfunc_GnmiSessionSubscribeInProgress)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAIL _/Users/yangorelik/ydk-0.8.2/ydk-gen/sdk/go/gnmi/tests [build failed]
Install gNMI Service and then try to run 'go test'.
Expected Behavior
The gNMI service in Go must be available on Mac platform as on Ubuntu.
Current Behavior
On Mac platform Go compiler fails to link gNMI Service giving this errors:
Steps to Reproduce
Install gNMI Service and then try to run 'go test'.
System Information
YDK-0.8.1 + gNMI service in Go on Mac