Same for me - adding those lines resolved the compiling errors.
Following the build instructions from the wiki for "CDE on Windows". Have installed all the packages listed there. Using the http git clone command on that page, so I'm assuming the latest version? I have no idea if the prebuilt packages will work with the WSL version of Ubuntu, but I'll try first the dependencies script(s) and then if that doesn't show anything missing, I'll try the packages - at this point, probably next week. Thanks!
Ok, built a completely new Ubuntu install and tried again. Still get stopped in the same spot, same errors.
Dang it. Need to really verify that it's running in WSL 2 - even though I have 2, apparently this was set up in 1. Probably the issue; will verify in a few days.
Encountered this too. Errors seen earlier in the output: $depbase.Tpo -c -o xdmauth.o xdmauth.c &&\ mv -f $depbase.Tpo $depbase.Po xdmauth.c: In function ‘XdmGetXdmcpAuth’: xdmauth.c:242:33: warning: passing argument 2 of ‘XdmcpWrap’ from incompatible pointer type [-Wincompatible-pointer-types] 242 | XdmcpWrap (xdmcpauth->data, &pdpy->key, xdmcpauth->data, 8); | ^~~~~~~~~~ | | | XdmAuthKeyRec * {aka struct _XdmAuthKey *} In file included from dm.h:84, from xdmauth.c:90: /usr/include/X11/Xdmcp.h:158:60:...