Menu

#164 wsl build error 1

open
nobody
None
2024-04-09
2024-04-01
No

when i try to build cde (or i guess dtlogin) using wsl it dont work. see the attached image for the details (or should i say dtails)

1 Attachments

Discussion

  • Paxton Penguin

    Paxton Penguin - 2024-04-01

    also, in the image you can see whats in my windows path for some reason.

     
  • John Ballentine III

    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: note: expected unsigned char * but argument is of type XdmAuthKeyRec * {aka struct _XdmAuthKey *}
      158 | extern void XdmcpWrap(unsigned char *input, unsigned char *wrapper, unsigned char *output, int bytes);
          |                                             ~~~~~~~~~~~~~~~^~~~~~~
    xdmauth.c: In function XdmCheckAuthentication:
    xdmauth.c:329:44: warning: passing argument 2 of XdmcpUnwrap from incompatible pointer type [-Wincompatible-pointer-types]
      329 |     XdmcpUnwrap (authenticationData->data, &pdpy->key,
          |                                            ^~~~~~~~~~
          |                                            |
          |                                            XdmAuthKeyRec * {aka struct _XdmAuthKey *}
    In file included from dm.h:84,
                     from xdmauth.c:90:
    /usr/include/X11/Xdmcp.h:159:62: note: expected unsigned char * but argument is of type XdmAuthKeyRec * {aka struct _XdmAuthKey *}
      159 | extern void XdmcpUnwrap(unsigned char *input, unsigned char *wrapper, unsigned char *output, int bytes);
          |                                               ~~~~~~~~~~~~~~~^~~~~~~
    xdmauth.c:336:42: warning: passing argument 2 of XdmcpWrap from incompatible pointer type [-Wincompatible-pointer-types]
      336 |     XdmcpWrap (authenticationData->data, &pdpy->key,
          |                                          ^~~~~~~~~~
          |                                          |
          |                                          XdmAuthKeyRec * {aka struct _XdmAuthKey *}
    In file included from dm.h:84,
                     from xdmauth.c:90:
    /usr/include/X11/Xdmcp.h:158:60: note: expected unsigned char * but argument is of type XdmAuthKeyRec * {aka struct _XdmAuthKey *}
      158 | extern void XdmcpWrap(unsigned char *input, unsigned char *wrapper, unsigned char *output, int bytes);
          |                                             ~~~~~~~~~~~~~~~^~~~~~~
    cc -DHAVE_CONFIG_H -I. -I../../include   -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY  -DCDE_CONFIGURATION_TOP=\"/etc/dt\" -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_LOGFILES_TOP=\"/var/dt\" -DBINDIR=\"/usr/bin\" -DXDMDIR=\"/var/dt\" -DKORNSHELL=/usr/bin/ksh -DUNIXCONN -DTCPCONN -DXDMCP -DHASDES -DHASXDMAUTH   -DDEF_SESSION=\"/usr/dt/bin/Xsession\" -DDEF_SYSTEM_SHELL=\"/bin/sh\" -DDEF_CHOOSER=\"/usr/dt/bin/dtchooser\" -DDEF_XDM_CONFIG=\"Xconfig\" -DDEF_SERVER_LINE=\"":0 Local local /usr/bin/X :0"\" -DXRDB_PROGRAM=\"/usr/bin/xrdb\" -DDEF_USER_PATH=
    
    ((removed user paths, if relevant can add them back in))
    
    (x86)/Nmap:/snap/bin:/usr/bin\" -DDEF_FAILSAFE_CLIENT=\"/usr/bin/xterm\" -DDEF_AUTH_FILE=\"/var/dt/auth-server\" -DDEF_AUTH_DIR=\"/var/dt\" -DCPP_PROGRAM=\""/lib/cpp"\" -DDEF_PM_SEARCH_PATH=\"/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B\" -DDEF_BM_SEARCH_PATH=\"/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B\" -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation        -pthread -MT libresource_a-resource.o -MD -MP -MF .deps/libresource_a-resource.Tpo -c -o libresource_a-resource.o `test -f 'resource.c' || echo './'`resource.c
    /bin/bash: -c: line 0: syntax error near unexpected token `('
    /bin/bash: -c: line 0: `cc -DHAVE_CONFIG_H -I. -I../../include   -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY  -DCDE_CONFIGURATION_TOP=\"/etc/dt\" -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_LOGFILES_TOP=\"/var/dt\" -DBINDIR=\"/usr/bin\" -DXDMDIR=\"/var/dt\" -DKORNSHELL=/usr/bin/ksh -DUNIXCONN -DTCPCONN -DXDMCP -DHASDES -DHASXDMAUTH   -DDEF_SESSION=\"/usr/dt/bin/Xsession\" -DDEF_SYSTEM_SHELL=\"/bin/sh\" -DDEF_CHOOSER=\"/usr/dt/bin/dtchooser\" -DDEF_XDM_CONFIG=\"Xconfig\" -DDEF_SERVER_LINE=\"":0 Local local /usr/bin/X :0"\" -DXRDB_PROGRAM=\"/usr/bin/xrdb\" -DDEF_USER_PATH=
    
    ((removed user paths, if relevant can add them back in))
    
    (x86)/Nmap:/snap/bin:/usr/bin\" -DDEF_FAILSAFE_CLIENT=\"/usr/bin/xterm\" -DDEF_AUTH_FILE=\"/var/dt/auth-server\" -DDEF_AUTH_DIR=\"/var/dt\" -DCPP_PROGRAM=\""/lib/cpp"\" -DDEF_PM_SEARCH_PATH=\"/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B\" -DDEF_BM_SEARCH_PATH=\"/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B\" -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation        -pthread -MT libresource_a-resource.o -MD -MP -MF .deps/libresource_a-resource.Tpo -c -o libresource_a-resource.o `test -f 'resource.c' || echo './'`resource.c'
    make[3]: *** [Makefile:719: libresource_a-resource.o] Error 1
    make[3]: Leaving directory '/home/ballenj/cdesktopenv-code/cde/programs/dtlogin'
    make[2]: *** [Makefile:745: all-recursive] Error 1
    make[2]: Leaving directory '/home/ballenj/cdesktopenv-code/cde/programs/dtlogin'
    make[1]: *** [Makefile:445: all-recursive] Error 1
    make[1]: Leaving directory '/home/ballenj/cdesktopenv-code/cde/programs'
    make: *** [Makefile:583: all-recursive] Error 1
    
     
  • John Ballentine III

    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.

     
  • Roger Brown

    Roger Brown - 2024-04-03

    Within WSL I use /etc/wsl.conf with

    [automount]
    enabled=false
    
    [interop]
    enabled=false
    appendWindowsPath=false
    

    This stops the windows mounts and paths.

     
  • John Ballentine III

    Ok, built a completely new Ubuntu install and tried again. Still get stopped in the same spot, same errors.

     
  • John Ballentine III

    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!

     
  • Paxton Penguin

    Paxton Penguin - 2024-04-07
    [automount]
    enabled=false
    
    [interop]
    enabled=true
    appendWindowsPath=false
    

    inside /etc/wsl.conf worked

     
  • John Ballentine III

    Same for me - adding those lines resolved the compiling errors.

     

Log in to post a comment.

MongoDB Logo MongoDB