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

Built error ‘struct xrdp_client_info’ has no member named ‘version’ #189

Closed
jorpilo opened this issue Apr 11, 2021 · 5 comments
Closed

Comments

@jorpilo
Copy link

jorpilo commented Apr 11, 2021

I am trying to build the devel branch however I am getting the following erros:

rdpClientCon.c: In function ‘rdpClientConProcessMsgClientInfo’:
rdpClientCon.c:842:31: error: ‘struct xrdp_client_info’ has no member named ‘version’
842 | if (clientCon->client_info.version != CLIENT_INFO_CURRENT_VERSION)
| ^
rdpClientCon.c:842:43: error: ‘CLIENT_INFO_CURRENT_VERSION’ undeclared (first use in this function )
842 | if (clientCon->client_info.version != CLIENT_INFO_CURRENT_VERSION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
rdpClientCon.c:842:43: note: each undeclared identifier is reported only once for each function it appears in
rdpClientCon.c:846:42: error: ‘struct xrdp_client_info’ has no member named ‘version’
846 | clientCon->client_info.version));
| ^
rdpClientCon.c:56:43: note: in definition of macro ‘LLOGLN’
56 | do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
| ^~~~~
make[3]: *** [Makefile:677: rdpClientCon.lo] Error 1
make[3]: Leaving directory '/home/jorpilo/.cache/paru/clone/xorgxrdp-devel-git/src/xorgxrdp/module '
make[2]: *** [Makefile:696: all-recursive] Error 1
make[2]: Leaving directory '/home/jorpilo/.cache/paru/clone/xorgxrdp-devel-git/src/xorgxrdp/module '
make[1]: *** [Makefile:435: all-recursive] Error 1
make[1]: Leaving directory '/home/jorpilo/.cache/paru/clone/xorgxrdp-devel-git/src/xorgxrdp'
make: *** [Makefile:367: all] Error 2

I am assuming this is related to #184 and commit 7ad1981. @matt335672 Is it missing to modify the rdpClientCon.h with the client info? Latest commit of the .h file is Jun

@metalefty
Copy link
Member

Do you refer xrdp_client_info that has version member?

@jorpilo
Copy link
Author

jorpilo commented Apr 12, 2021

how? where is it defined? I just downloaded the source code and tried to compile it with make.

@metalefty
Copy link
Member

xorgxrdp requires xrdp source to compile. You should already have the xrdp source code. Make sure the xrdp source has version member in xrdp_client_info.

@matt335672
Copy link
Member

@jorpilo - see #184 and neutrinolabs/xrdp#1813 where this member was added to both xorgxrdp and xrdp. You need both products to match.

The irony is the point of these changes is to add mismatch detection into these two products at run-time!

Does that make sense?

Thanks.

@jorpilo
Copy link
Author

jorpilo commented Apr 13, 2021

Yeah completely understand now. Thanks for the info! It's a version mismatch at compilation time hahaha.

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

3 participants