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

building source error, error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’ #260

Open
a-stana opened this issue May 25, 2023 · 3 comments

Comments

@a-stana
Copy link

a-stana commented May 25, 2023

hi there, after running the previous steps, executing 'make' results in the following errors:

` CC rdpGlyphs.lo
CC rdpPixmap.lo
CC rdpInput.lo
CC rdpClientCon.lo
rdpClientCon.c: In function ‘rdpClientConProcessMsgClientInfo’:
rdpClientCon.c:959:31: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’
959 | if (clientCon->client_info.monitorCount > 0)
| ^
rdpClientCon.c:962:84: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’
962 | client monitor data, monitorCount=%d", clientCon->client_info.monitorCount));
| ^

rdpClientCon.c:56:43: note: in definition of macro ‘LLOGLN’
56 | do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
| ^~~~~
rdpClientCon.c:965:50: error: ‘struct xrdp_client_info’ has no member named ‘minfo’
965 | memcpy(dev->minfo, clientCon->client_info.minfo, sizeof(dev->minfo));
| ^
rdpClientCon.c:966:51: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’
966 | dev->monitorCount = clientCon->client_info.monitorCount;
| ^
make[3]: *** [Makefile:672: rdpClientCon.lo] Error 1
`
any ideas on what I can do about this? I appreciate any help. thanks

@matt335672
Copy link
Member

It looks like your xrdp version and xorgxrdp versions don't match.

You xorgxrdp version looks to be around 0.2.15, based on those errors. The include file xrdp-client_info.h which you are picking up appears to be from a later version.

Does that make sense?

@a-stana
Copy link
Author

a-stana commented Jun 6, 2023

hi there matt, thanks for your help and response. your answer makes a lot of sense but this was not the the issue in my case. it seems that i did not rename the source code folders and kept the version numbers within the folder names. after i deleted them and tried again including the move command for renaming the folders it worked. Could that have been the issue? i don't know for sure. thanks a lot.

@matt335672
Copy link
Member

You can build with make V=1 to see exactly what is being passed to the compiler. That might make it clearer where the include file is being picked up from.

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

2 participants