Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails:unknown type name #23

Open
crow1814 opened this issue Sep 8, 2021 · 0 comments
Open

Build fails:unknown type name #23

crow1814 opened this issue Sep 8, 2021 · 0 comments

Comments

@crow1814
Copy link

crow1814 commented Sep 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant