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

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

Open
napter opened this issue Oct 8, 2018 · 1 comment

Comments

@napter
Copy link

napter commented Oct 8, 2018

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
@nicolas17
Copy link

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.

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