You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed all Dependencies, but I still encountered some problems unknown type name and has no member named when I execute the command ./build.sh. The details are as follows
mv -f $depbase.Tpo $depbase.Po
depbase=echo src/opcua-tsn/opcua_datasource.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';
gcc -DHAVE_CONFIG_H -I. -O2 -g -fstack-protector-strong -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wformat-overflow -Wno-parentheses -Wno-missing-field-initializers -Wextra -Wall -fno-common -I/usr/local/include/open62541-iotg -I/usr/include/json-c -I/usr/local/include -I/usr/local/include -g -O2 -MT src/opcua-tsn/opcua_datasource.o -MD -MP -MF $depbase.Tpo -c -o src/opcua-tsn/opcua_datasource.o src/opcua-tsn/opcua_datasource.c &&
mv -f $depbase.Tpo $depbase.Po
In file included from src/opcua-tsn/multicallback_server.c:58:
src/opcua-tsn/opcua_custom.h:70:5: error: unknown type name ‘UA_ReaderGroupConfig’
70 | UA_ReaderGroupConfig config;
| ^~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:107:5: error: unknown type name ‘UA_PubSubConnectionConfig’
107 | UA_PubSubConnectionConfig *config;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:109:5: error: unknown type name ‘UA_PubSubChannel’
109 | UA_PubSubChannel *channel;
| ^~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:126:5: error: unknown type name ‘UA_WriterGroupConfig’
126 | UA_WriterGroupConfig config;
| ^~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/multicallback_server.c: In function ‘setupOpcuaServer’:
src/opcua-tsn/multicallback_server.c:153:11: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayersSize’
153 | config->pubsubTransportLayersSize = 0;
| ^~
src/opcua-tsn/multicallback_server.c:154:11: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
154 | config->pubsubTransportLayers =
| ^~
src/opcua-tsn/multicallback_server.c:155:35: error: expected expression before ‘)’ token
155 | (UA_PubSubTransportLayer *) UA_calloc(2, sizeof(UA_PubSubTransportLayer));
| ^
In file included from src/opcua-tsn/opcua_common.h:44,
from src/opcua-tsn/multicallback_server.c:55:
src/opcua-tsn/multicallback_server.c:156:21: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
156 | catch_err(config->pubsubTransportLayers == NULL, "Out of memory");
| ^~
src/opcua-tsn/opcua_utils.h:50:13: note: in definition of macro ‘catch_err’
50 | if (A) {
| ^
src/opcua-tsn/multicallback_server.c:159:15: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
159 | config->pubsubTransportLayers[0] = UA_PubSubTransportLayerEthernetXDP();
| ^~
src/opcua-tsn/multicallback_server.c:161:15: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
161 | config->pubsubTransportLayers[0] = UA_PubSubTransportLayerEthernetETF();
| ^~
src/opcua-tsn/multicallback_server.c:163:11: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayersSize’
163 | config->pubsubTransportLayersSize++;
| ^~
src/opcua-tsn/multicallback_server.c:187:19: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
187 | config->pubsubTransportLayers[1] = UA_PubSubTransportLayerEthernetXDP();
| ^~
src/opcua-tsn/multicallback_server.c:188:19: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayersSize’
188 | config->pubsubTransportLayersSize++;
| ^~
src/opcua-tsn/multicallback_server.c:192:19: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayers’
192 | config->pubsubTransportLayers[1] = UA_PubSubTransportLayerEthernetETF();
| ^~
src/opcua-tsn/multicallback_server.c:193:19: error: ‘UA_ServerConfig’ {aka ‘struct UA_ServerConfig’} has no member named ‘pubsubTransportLayersSize’
193 | config->pubsubTransportLayersSize++;
| ^~
make[1]: *** [Makefile:496:src/opcua-tsn/multicallback_server.o] 错误 1
make[1]: *** 正在等待未完成的任务....
In file included from src/opcua-tsn/opcua_custom.c:46:
src/opcua-tsn/opcua_custom.h:70:5: error: unknown type name ‘UA_ReaderGroupConfig’
70 | UA_ReaderGroupConfig config;
| ^~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:107:5: error: unknown type name ‘UA_PubSubConnectionConfig’
107 | UA_PubSubConnectionConfig *config;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:109:5: error: unknown type name ‘UA_PubSubChannel’
109 | UA_PubSubChannel *channel;
| ^~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.h:126:5: error: unknown type name ‘UA_WriterGroupConfig’
126 | UA_WriterGroupConfig config;
| ^~~~~~~~~~~~~~~~~~~~
src/opcua-tsn/opcua_custom.c: In function ‘pub_thread’:
src/opcua-tsn/opcua_custom.c:179:31: error: request for member ‘transportSettings’ in something not a structure or union
179 | currentWriterGroup->config.transportSettings = transportSettings;
| ^
make[1]: *** [Makefile:496:src/opcua-tsn/opcua_custom.o] 错误 1
make[1]: 离开目录“/home/lab640/gmj/iotg_tsn_ref_sw”
make: *** [Makefile:327:all] 错误 2
The text was updated successfully, but these errors were encountered:
I have installed all Dependencies, but I still encountered some problems
unknown type name
andhas no member named
when I execute the command./build.sh
. The details are as followsThe text was updated successfully, but these errors were encountered: