On 2015/12/21 17:21, Jonathan Gray wrote:
> Waffle is another library along the lines of GLUT that provides a way to
> select a windowing system and api for OpenGL.
> 
> This is primarily of interest for using the piglit OpenGL tests as
> Waffle is required for testing OpenGL ES.

This fails on i386 (and presumably other 32-bit arch), ports/devel/cmocka
already has a patch for this situation, but the file in the version of
cmocka that is bundled with waffle is a bit different, I don't really
have time to unpick it at the moment.

[92/103] /usr/bin/cc  -DWAFFLE_API_EXPERIMENTAL -DWAFFLE_API_VERSION=261 
-DWAFFLE_HAS_GBM -DWAFFLE_HAS_GLX -DWAFFLE_HAS_X11_EGL -D_XOPEN_SOURCE=600 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/include 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/include/waffle 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/third_party/threads 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/android 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/api 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/cgl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/core 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/egl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/glx 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/linux 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/wayland 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/wgl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/x11 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/xegl -I/usr/X11R6/include 
-I/usr/X11R6/include/libdrm 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/third_party/cmocka/include -O2 -pipe 
   --std=c99 -Wall -Werror=implicit-function-declaration -fvisibility=hidden 
-Werror=missing-prototypes -g1 -O2 -DNDEBUG -MMD -MT 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o
 -MF 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o.d
 -o 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o
   -c 
/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/core/wcore_attrib_list_unittest.c
FAILED: /usr/bin/cc  -DWAFFLE_API_EXPERIMENTAL -DWAFFLE_API_VERSION=261 
-DWAFFLE_HAS_GBM -DWAFFLE_HAS_GLX -DWAFFLE_HAS_X11_EGL -D_XOPEN_SOURCE=600 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/include 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/include/waffle 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/third_party/threads 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/android 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/api 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/cgl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/core 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/egl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/glx 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/linux 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/wayland 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/wgl 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/x11 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/xegl -I/usr/X11R6/include 
-I/usr/X11R6/include/libdrm 
-I/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/third_party/cmocka/include -O2 -pipe 
   --std=c99 -Wall -Werror=implicit-function-declaration -fvisibility=hidden 
-Werror=missing-prototypes -g1 -O2 -DNDEBUG -MMD -MT 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o
 -MF 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o.d
 -o 
src/waffle/CMakeFiles/wcore_attrib_list_unittest.dir/core/wcore_attrib_list_unittest.c.o
   -c 
/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/core/wcore_attrib_list_unittest.c
In file included from 
/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/include/waffle/waffle.h:30,
                 from 
/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/src/waffle/core/wcore_attrib_list_unittest.c:32:
/usr/include/stdint.h:96: error: conflicting types for 'uintptr_t'
/usr/obj/ports/waffle-1.5.2/waffle-1.5.2/third_party/cmocka/include/cmocka.h:104:
 error: previous declaration of 'uintptr_t' was here
ninja: build stopped: subcommand failed.
*** Error 1 in graphics/waffle (/usr/ports/devel/cmake/cmake.port.mk:32 
'do-build': @cd /usr/obj/ports/waffle-1.5.2/build-i386 && exec /usr/...)
*** Error 1 in graphics/waffle (/usr/ports/infrastructure/mk/bsd.port.mk:2765 
'/usr/obj/ports/waffle-1.5.2/build-i386/.build_done')
*** Error 1 in graphics/waffle (/usr/ports/infrastructure/mk/bsd.port.mk:2491 
'build')
===> Exiting graphics/waffle with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:147 'build')
Error: job failed 256
sthen@i386-1[~] 

Reply via email to