Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2017 10:21:52 -0400 (EDT)
From:      "Mikhail T." <mi@aldan.algebra.com>
To:        x11@FreeBSD.org
Subject:   xorg-server buildfailures because of epoxy
Message-ID:  <201707021421.v62ELqcs001889@narawntapu.narawntapu>

next in thread | raw e-mail | index | archive | help
Hello!

First, the EGL-option in libepoxy/ is currently required -- without
it, the compiler building xorg-server fails to find the egl.h.

Second, with the option enabled (and libepoxy reinstalled), I still
get the following error trying to build xorg-server. Yours,

	-mi

===>  Building for xorg-server-1.18.4_1,1

...
Making all in glamor_egl
gmake[6]: Entering directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4/hw/xfree86/glamor_egl'
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../hw/xfree86 -I../../../hw/xfree86/include -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support -I../../../hw/xfree86/os-support/bus -I../../../os -I../../../dri3 -I../../../glamor -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -I/opt/include -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/include/pixman-1 -I/opt/include/X11/dri 
 -I/opt/include/libdrm -D_THREAD_SAFE -pthread -I/opt/include/freetype2 -I/opt/include/libpng16 -I../../../include -I../../../include -I../../../Xext -I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/sync -I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -I../../../dbe -I../../../present -fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden -I/opt/include -I/opt/include -I/opt/include/libdrm -I/opt/include -I/opt/include -I/opt/include -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -MT glamor_egl.lo -MD -MP -MF .deps/glamor_egl.Tpo -c ../../../glamor/glamor_egl.c  -fPIC -DPIC -o .libs/glamor_egl.o
../../../glamor/glamor_egl.c:103:41: error: implicit declaration of function 'EGL_CAST' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    eglMakeCurrent(glamor_ctx->display, EGL_NO_SURFACE,
                                        ^
/opt/include/epoxy/egl_generated.h:691:62: note: expanded from macro 'EGL_NO_SURFACE'
#define EGL_NO_SURFACE                                       EGL_CAST(EGLSurface,0)
                                                             ^
../../../glamor/glamor_egl.c:103:41: error: unexpected type name 'EGLSurface': expected expression
/opt/include/epoxy/egl_generated.h:691:71: note: expanded from macro 'EGL_NO_SURFACE'
#define EGL_NO_SURFACE                                       EGL_CAST(EGLSurface,0)
                                                                      ^
../../../glamor/glamor_egl.c:107:25: error: unexpected type name 'EGLSurface': expected expression
                        EGL_NO_SURFACE, EGL_NO_SURFACE,
                        ^
/opt/include/epoxy/egl_generated.h:691:71: note: expanded from macro 'EGL_NO_SURFACE'
#define EGL_NO_SURFACE                                       EGL_CAST(EGLSurface,0)
                                                                      ^
../../../glamor/glamor_egl.c:133:16: error: unexpected type name 'EGLImageKHR': expected expression
        return EGL_NO_IMAGE_KHR;
               ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:139:18: error: unexpected type name 'EGLImageKHR': expected expression
    if (image == EGL_NO_IMAGE_KHR)
                 ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:140:16: error: unexpected type name 'EGLImageKHR': expected expression
        return EGL_NO_IMAGE_KHR;
               ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:217:31: error: unexpected type name 'EGLContext': expected expression
                              EGL_NO_CONTEXT,
                              ^
/opt/include/epoxy/egl_generated.h:681:71: note: expanded from macro 'EGL_NO_CONTEXT'
#define EGL_NO_CONTEXT                                       EGL_CAST(EGLContext,0)
                                                                      ^
../../../glamor/glamor_egl.c:221:18: error: unexpected type name 'EGLImageKHR': expected expression
    if (image == EGL_NO_IMAGE_KHR)
                 ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:322:18: error: unexpected type name 'EGLImageKHR': expected expression
    if (image == EGL_NO_IMAGE_KHR) {
                 ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:355:18: error: unexpected type name 'EGLImageKHR': expected expression
    if (image == EGL_NO_IMAGE_KHR) {
                 ^
/opt/include/epoxy/egl_generated.h:685:71: note: expanded from macro 'EGL_NO_IMAGE_KHR'
#define EGL_NO_IMAGE_KHR                                     EGL_CAST(EGLImageKHR,0)
                                                                      ^
../../../glamor/glamor_egl.c:756:32: error: unexpected type name 'EGLDisplay': expected expression
    if (glamor_egl->display != EGL_NO_DISPLAY) {
                               ^
/opt/include/epoxy/egl_generated.h:683:71: note: expanded from macro 'EGL_NO_DISPLAY'
#define EGL_NO_DISPLAY                                       EGL_CAST(EGLDisplay,0)
                                                                      ^
../../../glamor/glamor_egl.c:758:24: error: unexpected type name 'EGLSurface': expected expression
                       EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
                       ^
/opt/include/epoxy/egl_generated.h:691:71: note: expanded from macro 'EGL_NO_SURFACE'
#define EGL_NO_SURFACE                                       EGL_CAST(EGLSurface,0)
                                                                      ^
../../../glamor/glamor_egl.c:829:31: error: unexpected type name 'EGLDisplay': expected expression
        glamor_egl->display = EGL_NO_DISPLAY;
                              ^
/opt/include/epoxy/egl_generated.h:683:71: note: expanded from macro 'EGL_NO_DISPLAY'
#define EGL_NO_DISPLAY                                       EGL_CAST(EGLDisplay,0)
                                                                      ^
../../../glamor/glamor_egl.c:866:50: error: unexpected type name 'EGLContext': expected expression
                                           NULL, EGL_NO_CONTEXT,
                                                 ^
/opt/include/epoxy/egl_generated.h:681:71: note: expanded from macro 'EGL_NO_CONTEXT'
#define EGL_NO_CONTEXT                                       EGL_CAST(EGLContext,0)
                                                                      ^
../../../glamor/glamor_egl.c:873:54: error: unexpected type name 'EGLContext': expected expression
                                               NULL, EGL_NO_CONTEXT,
                                                     ^
/opt/include/epoxy/egl_generated.h:681:71: note: expanded from macro 'EGL_NO_CONTEXT'
#define EGL_NO_CONTEXT                                       EGL_CAST(EGLContext,0)
                                                                      ^
../../../glamor/glamor_egl.c:875:36: error: unexpected type name 'EGLContext': expected expression
        if (glamor_egl->context == EGL_NO_CONTEXT) {
                                   ^
/opt/include/epoxy/egl_generated.h:681:71: note: expanded from macro 'EGL_NO_CONTEXT'
#define EGL_NO_CONTEXT                                       EGL_CAST(EGLContext,0)
                                                                      ^
../../../glamor/glamor_egl.c:882:25: error: unexpected type name 'EGLSurface': expected expression
                        EGL_NO_SURFACE, EGL_NO_SURFACE, glamor_egl->context)) {
                        ^
/opt/include/epoxy/egl_generated.h:691:71: note: expanded from macro 'EGL_NO_SURFACE'
#define EGL_NO_SURFACE                                       EGL_CAST(EGLSurface,0)
                                                                      ^
17 errors generated.
gmake[6]: *** [Makefile:708: glamor_egl.lo] Error 1
gmake[6]: Leaving directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4/hw/xfree86/glamor_egl'
gmake[5]: *** [Makefile:846: all-recursive] Error 1
gmake[5]: Leaving directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4/hw/xfree86'
gmake[4]: *** [Makefile:661: all] Error 2
gmake[4]: Leaving directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4/hw/xfree86'
gmake[3]: *** [Makefile:603: all-recursive] Error 1
gmake[3]: Leaving directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4/hw'
gmake[2]: *** [Makefile:771: all-recursive] Error 1
gmake[2]: Leaving directory '/home/ports/x11-servers/xorg-server/work/xorg-server-1.18.4'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /home/ports/x11-servers/xorg-server
*** Error code 1

Stop.
make: stopped in /home/ports/x11-servers/xorg-server



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707021421.v62ELqcs001889>