aws-lambda-xvfb icon indicating copy to clipboard operation
aws-lambda-xvfb copied to clipboard

Error building docker file (sdksyms.c:315:15: error: expected expression before ',' token)

Open napter opened this issue 5 years ago • 1 comments

The following error occurs when running "docker build -t aws-lambda-xvfb .". Any ideas?

In file included from sdksyms.c:263:0:
../../include/dixfontstubs.h:43:22: warning: redundant redeclaration of 'StoreFontClientFont' [-Wredundant-decls]
 extern _X_EXPORT int StoreFontClientFont(FontPtr pfont, Font id);
                      ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/X11/fonts/fontstruct.h:295:0,
                 from ../../include/dixfont.h:30,
                 from sdksyms.c:261:
/usr/include/X11/fonts/fontproto.h:61:12: note: previous declaration of 'StoreFontClientFont' was here
 extern int StoreFontClientFont ( FontPtr pfont, Font id );
            ^~~~~~~~~~~~~~~~~~~
sdksyms.c:315:15: error: expected expression before ',' token
     (void *) &,                                                  /* ../../include/os.h:96 */
               ^
make[4]: *** [sdksyms.o] Error 1
make[4]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/app/xorg-server-1.15.0/hw'
make: *** [all-recursive] Error 1
The command '/bin/sh -c wget https://www.x.org/archive/individual/xserver/xorg-server-1.15.0.tar.gz &&   tar -xzf xorg-server-1.15.0.tar.gz &&   cd /app/xorg-server-1.15.0 &&   ./configure     --prefix=/usr/local     --with-xkb-path=/var/task/xkb     --with-xkb-output=/tmp     --with-xkb-bin-directory=/var/task/bin &&   make && make install' returned a non-zero code: 2

napter avatar Oct 08 '18 04:10 napter

The build error was fixed upstream in this commit: https://cgit.freedesktop.org/xorg/xserver/commit/?id=21b896939c5bb242f3aacc37baf12379e43254b6

Updating to xorg-xserver-1.18.0 (first release with that patch) and adding yum install xcb-util-keysyms-devel.x86_64 fixed the Docker build for me.

nicolas17 avatar Jun 15 '20 23:06 nicolas17