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

During compilation, it is prompted that the size of the ucred data structure cannot be calculated #711

Open
yfan0000004 opened this issue May 28, 2024 · 2 comments
Labels

Comments

@yfan0000004
Copy link

vSomeip Version

v3.4.10

Boost Version

1.78

Environment

QNX7.1

Describe the bug

During compilation, it is prompted that the size of the ucred data structure cannot be calculated.How to solve this problem?

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

COVESA/vsomeip/implementation/endpoints/src/../include/local_server_endpoint_impl_receive_op.hpp:75:71: error: invalid application of 'sizeof' to incomplete type 'vsomeip_v3::local_endpoint_receive_op::receive_cb(std::__1::shared_ptr<vsomeip_v3::local_endpoint_receive_op::storage>)::<lambda(boost::system::error_code)>::ucred' control_un.cmh.cmsg_len = CMSG_LEN(sizeof(struct ucred));

@yfan0000004
Copy link
Author

There are also the following issues that exist simultaneously:

COVESA/vsomeip/implementation/endpoints/src/../include/local_server_endpoint_impl_receive_op.hpp:77:44: error: 'SCM_CREDENTIALS' was not declared in this scope
control_un.cmh.cmsg_type = SCM_CREDENTIALS;

@Lynn-1997
Copy link

The QNX environment is modified as follows:
control_un.cmh.cmsg_len = CMSG_LEN(sizeof(struct sockcred));
control_un.cmh.cmsg_level = SOL_SOCKET;
control_un.cmh.cmsg_type = SCM_CREDS;

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

No branches or pull requests

2 participants