Menu

#170 Build fail on Arch Linux

open
nobody
2025-03-27
2025-01-01
No

Hai! I was trying to build the latest version of cde on Arch linux, following the arch and linux build guide. But the build fails with the following error(s):

In file included from /usr/include/X11/extensions/Print.h:68,
                 from /usr/include/Xm/Xm.h:63,
                 from widget.c:41:
/usr/include/X11/Xauth.h:121:39: error: macro "access" passed 3 arguments, but takes just 2
  121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
In file included from widget.c:34:
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro "access" passed 3 arguments, but takes just 2
  122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro "access" passed 3 arguments, but takes just 2
  123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
  145 | );
      | ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro "access" passed 3 arguments, but takes just 2
  147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro "access" passed 3 arguments, but takes just 2
  148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro "access" passed 3 arguments, but takes just 2
  149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro "access" passed 3 arguments, but takes just 2
  150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
  169 | );
      | ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
In file included from /usr/include/X11/extensions/Print.h:68,
                 from /usr/include/Xm/Xm.h:63,
                 from dtkcmds.c:47:
/usr/include/X11/Xauth.h:121:39: error: macro "access" passed 3 arguments, but takes just 2
  121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
In file included from dtkcmds.c:35:
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro "access" passed 3 arguments, but takes just 2
  122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro "access" passed 3 arguments, but takes just 2
  123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
  145 | );
      | ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro "access" passed 3 arguments, but takes just 2
  147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro "access" passed 3 arguments, but takes just 2
  148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro "access" passed 3 arguments, but takes just 2
  149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro "access" passed 3 arguments, but takes just 2
  150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
  169 | );
      | ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
make[4]: *** [Makefile:696: dtksh-widget.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/X11/extensions/Print.h:68,
                 from /usr/include/Xm/Xm.h:63,
                 from dtkcvt.c:47:
/usr/include/X11/Xauth.h:121:39: error: macro "access" passed 3 arguments, but takes just 2
  121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
In file included from dtkcvt.c:35:
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro "access" passed 3 arguments, but takes just 2
  122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro "access" passed 3 arguments, but takes just 2
  123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
  145 | );
      | ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro "access" passed 3 arguments, but takes just 2
  147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro "access" passed 3 arguments, but takes just 2
  148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro "access" passed 3 arguments, but takes just 2
  149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro "access" passed 3 arguments, but takes just 2
  150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
  169 | );
      | ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
In file included from /usr/include/X11/extensions/Print.h:68,
                 from /usr/include/Xm/Xm.h:63,
                 from /usr/include/Xm/List.h:26,
                 from xmcvt.c:43:
/usr/include/X11/Xauth.h:121:39: error: macro "access" passed 3 arguments, but takes just 2
  121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
In file included from xmcvt.c:34:
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro "access" passed 3 arguments, but takes just 2
  122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro "access" passed 3 arguments, but takes just 2
  123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
  145 | );
      | ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro "access" passed 3 arguments, but takes just 2
  147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro "access" passed 3 arguments, but takes just 2
  148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro "access" passed 3 arguments, but takes just 2
  149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro "access" passed 3 arguments, but takes just 2
  150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
  169 | );
      | ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
make[4]: *** [Makefile:710: dtksh-dtkcvt.o] Error 1
make[4]: *** [Makefile:752: dtksh-xmcvt.o] Error 1
mv -f .deps/dtksh-XtCvtrs.Tpo .deps/dtksh-XtCvtrs.Po
In file included from /usr/include/X11/extensions/Print.h:68,
                 from /usr/include/Xm/Xm.h:63,
                 from xmcmds.c:46:
/usr/include/X11/Xauth.h:121:39: error: macro "access" passed 3 arguments, but takes just 2
  121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
In file included from xmcmds.c:32:
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro "access" passed 3 arguments, but takes just 2
  122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro "access" passed 3 arguments, but takes just 2
  123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
  145 | );
      | ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro "access" passed 3 arguments, but takes just 2
  147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro "access" passed 3 arguments, but takes just 2
  148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro "access" passed 3 arguments, but takes just 2
  149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro "access" passed 3 arguments, but takes just 2
  150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
      |                                       ^
./ksh93/include/ast/shell.h:469:12: note: macro "access" defined here
  469 | #   define access(a,b)  sh_access(a,b)
      |            ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
  169 | );
      | ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for access attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
make[4]: *** [Makefile:724: dtksh-dtkcmds.o] Error 1
make[4]: *** [Makefile:766: dtksh-xmcmds.o] Error 1
mv -f .deps/dtksh-init.Tpo .deps/dtksh-init.Po
make[4]: Leaving directory '/home/YBA/cdesktopenv-code/cde/programs/dtksh'
make[3]: *** [Makefile:834: all-recursive] Error 1
make[3]: Leaving directory '/home/YBA/cdesktopenv-code/cde/programs/dtksh'
make[2]: *** [Makefile:517: all] Error 2
make[2]: Leaving directory '/home/YBA/cdesktopenv-code/cde/programs/dtksh'
make[1]: *** [Makefile:449: all-recursive] Error 1
make[1]: Leaving directory '/home/YBA/cdesktopenv-code/cde/programs'
make: *** [Makefile:590: all-recursive] Error 1

When running sudo make install and running cde using startx, it hangs at the cde startup screen, i believe it didn't build properly.
Let me know if i need to pin some logfiles(i don't know where they are located)

Discussion

  • Nilton Perim Neto

    I also had the same issue. I made a patch to workaround the fact that it is tanking more arguments than what was expected. Hopefully now it is fine. So far I had no issues. There's a .patch attached Still trying to figure out how to commit in sourceforge

     
    • Chris Murphy

      Chris Murphy - 2025-03-27

      How do I apply this?

       
  • Chris Murphy

    Chris Murphy - 2025-03-27

    I'm having the same problem here installing from AUR.

     
  • Jon Trulson

    Jon Trulson - 2025-03-27

    I don't know how Arch AUR works... But this patch has already been applied to master.

    So - can't be of much help. Ask an Arch AUR person :)

     

Log in to post a comment.

MongoDB Logo MongoDB