mesa-demos fails to compile

Jim Pingle lists at pingle.org
Tue Apr 8 22:58:20 UTC 2014


Using a ports tree from today, mesa-demos fails to compile. In case it's
relevant, I am also using WITH_NEW_XORG and WITH_GALLIUM

Is this combination known to be broken?

Build output:
:/usr/ports/graphics/mesa-demos# make
===>  Found saved configuration for mesa-demos-8.1.0
===>   mesa-demos-8.1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by mesa-demos-8.1.0 for building
===>  Extracting for mesa-demos-8.1.0
=> SHA256 Checksum OK for mesa-demos-8.1.0.tar.bz2.
===>  Patching for mesa-demos-8.1.0
===>  Applying FreeBSD patches for mesa-demos-8.1.0
===>   mesa-demos-8.1.0 depends on executable: gmake - found
===>   mesa-demos-8.1.0 depends on executable: pkgconf - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/glproto.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/glproto.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/x11.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/xext.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/xi.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/xxf86vm.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/xdamage.pc - found
===>   mesa-demos-8.1.0 depends on file:
/usr/local/libdata/pkgconfig/xfixes.pc - found
===>   mesa-demos-8.1.0 depends on shared library: libGLU.so - found
===>   mesa-demos-8.1.0 depends on shared library: libglut.so - found
===>   mesa-demos-8.1.0 depends on shared library: libGLEW.so - found
===>  Configuring for mesa-demos-8.1.0
===>   FreeBSD 10 autotools fix applied to
/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/configure
===>   FreeBSD 10 autotools fix applied to
/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/m4/libtool.m4
===>   FreeBSD 10 autotools fix applied to
/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/aclocal.m4
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd10.0
checking host system type... amd64-portbld-freebsd10.0
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking for style of include used by gmake... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cpp
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd10.0 file names to
amd64-portbld-freebsd10.0 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd10.0 file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd10.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd10.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether cc understands -c and -o together... yes
checking whether gmake supports nested variables... yes
checking pkg-config is at least version 0.9.0... yes
checking for GL... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking for glutInit in -lglut... yes
checking for GLEW... yes
checking for GLU... yes
checking for EGL... yes
checking for GLESV1... no
checking for GLESV2... yes
checking for VG... no
checking for OSMESA... no
checking for DRM... yes
checking for X11... yes
checking for GBM... no
checking for FREETYPE2... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/demos/Makefile
config.status: creating src/egl/Makefile
config.status: creating src/egl/eglut/Makefile
config.status: creating src/egl/opengl/Makefile
config.status: creating src/egl/opengles1/Makefile
config.status: creating src/egl/opengles2/Makefile
config.status: creating src/egl/openvg/Makefile
config.status: creating src/egl/openvg/trivial/Makefile
config.status: creating src/egl/oes_vg/Makefile
config.status: creating src/fp/Makefile
config.status: creating src/fpglsl/Makefile
config.status: creating src/glsl/Makefile
config.status: creating src/gs/Makefile
config.status: creating src/data/Makefile
config.status: creating src/objviewer/Makefile
config.status: creating src/osdemos/Makefile
config.status: creating src/perf/Makefile
config.status: creating src/rbug/Makefile
config.status: creating src/redbook/Makefile
config.status: creating src/samples/Makefile
config.status: creating src/slang/Makefile
config.status: creating src/tests/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/trace/Makefile
config.status: creating src/trivial/Makefile
config.status: creating src/util/Makefile
config.status: creating src/vp/Makefile
config.status: creating src/vpglsl/Makefile
config.status: creating src/wgl/Makefile
config.status: creating src/xdemos/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
===>  Building for mesa-demos-8.1.0
gmake[2]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0'
Making all in src
gmake[3]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src'
Making all in util
gmake[4]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/util'
  CC       readtex.lo
  CC       showbuffer.lo
  CC       trackball.lo
  CC       shaderutil.lo
  CCLD     libutil.la
gmake[4]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/util'
Making all in data
gmake[4]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/data'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/data'
Making all in demos
gmake[4]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/demos'
  CC       arbfplight.o
  CC       arbfslight.o
  CC       arbocclude.o
  CC       arbocclude2.o
  CC       bounce.o
  CC       clearspd.o
  CC       copypix.o
  CC       cubemap.o
  CC       cuberender.o
  CC       dinoshade.o
  CC       dissolve.o
  CC       drawpix.o
dinoshade.c:239:38: warning: incompatible pointer types passing 'void
(GLenum)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
    gluTessCallback(tobj, GLU_BEGIN, glBegin);
                                     ^~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
dinoshade.c:240:39: warning: incompatible pointer types passing 'void
(const GLfloat *)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
    gluTessCallback(tobj, GLU_VERTEX, glVertex2fv);  /* semi-tricky */
                                      ^~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
  CC       engine.o
  CC       fbo_firecube.o
2 warnings generated.
  CC       fbotexture.o
  CC       fire.o
fire.c:147:21: warning: cast fbo_firecube.c:258:21: warning: cast from
function call of type 'int' to non-matching type 'float'
[-Wbad-function-cast]
   return (((float) rand()) / RAND_MAX);
                    ^~~~~~
from function call of type 'int' to non-matching type 'float'
[-Wbad-function-cast]
   return (((float) rand()) / RAND_MAX);
                    ^~~~~~
  CC       fogcoord.o
1 warning generated.
1 warning generated.
  CC       fplight.o
  CC       fslight.o
  CC       gamma.o
  CC       gearbox.o
  CC       gears.o
  CC       geartrain.o
  CC       glinfo.o
  CC       gloss.o
  CC       gltestperf.o
  CC       ipers.o
  CC       isosurf.o
  CC       lodbias.o
  CC       morph3d.o
  CC       multiarb.o
  CC       paltex.o
  CC       pixeltest.o
  CC       pointblast.o
  CC       projtex.o
  CC       ray.o
  CC       readpix.o
  CC       reflect.o
  CC       renormal.o
  CC       shadowtex.o
  CC       singlebuffer.o
  CC       spectex.o
  CC       spriteblast.o
  CC       stex3d.o
  CC       teapot.o
  CC       terrain.o
  CC       tessdemo.o
  CC       texcyl.o
  CC       texenv.o
tessdemo.c:171:46: warning: incompatible pointer types passing 'void
(GLenum)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_BEGIN, glBegin );
                                             ^~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:172:47: warning: incompatible pointer types passing 'void
(const GLfloat *)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_VERTEX, glVertex2fv );
                                              ^~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:174:46: warning: incompatible pointer types passing 'void
(GLenum)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_ERROR, error_callback );
                                             ^~~~~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:175:48: warning: incompatible pointer types passing 'void
(GLdouble *, GLdouble **, GLfloat *, void **)' to
      parameter of type '_GLUfuncptr' (aka 'void (*)(void)')
[-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_COMBINE, combine_callback );
                                               ^~~~~~~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:195:46: warning: incompatible pointer types passing 'void
(GLenum)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_BEGIN, begin_callback );
                                             ^~~~~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:196:47: warning: incompatible pointer types passing 'void
(void *)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_VERTEX, vertex_callback );
                                              ^~~~~~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
tessdemo.c:198:50: warning: incompatible pointer types passing 'void
(GLenum)' to parameter of type '_GLUfuncptr'
      (aka 'void (*)(void)') [-Wincompatible-pointer-types]
      gluTessCallback( tobj, GLU_TESS_EDGE_FLAG, edge_callback );
  CC       textures.o
                                                 ^~~~~~~~~~~~~
/usr/local/include/GL/glu.h:340:87: note: passing argument to parameter
'CallBackFunc' here
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum
which, _GLUfuncptr CallBackFunc);

              ^
  CC       trispd.o
7 warnings generated.
  CC       tunnel2.o
  CC       tunnel.o
  CC       vao_demo.o
  CC       winpos.o
  CCLD     arbfplight
  CCLD     arbfslight
  CCLD     arbocclude
  CCLD     arbocclude2
  CCLD     bounce
  CCLD     clearspd
  CCLD     copypix
  CCLD     cubemap
  CCLD     cuberender
  CCLD     dinoshade
  CCLD     dissolve
  CCLD     drawpix
  CCLD     engine
  CCLD     fbo_firecube
  CCLD     fbotexture
  CCLD     fire
  CCLD     fogcoord
  CCLD     fplight
  CCLD     fslight
  CCLD     gamma
  CCLD     gearbox
  CCLD     gears
  CCLD     geartrain
  CCLD     glinfo
  CCLD     gloss
  CCLD     gltestperf
  CCLD     ipers
  CCLD     isosurf
  CCLD     lodbias
  CCLD     morph3d
  CCLD     multiarb
  CCLD     paltex
  CCLD     pixeltest
  CCLD     pointblast
  CCLD     projtex
  CCLD     ray
  CCLD     readpix
  CCLD     reflect
  CCLD     renormal
  CCLD     shadowtex
  CCLD     singlebuffer
  CCLD     spectex
  CCLD     spriteblast
  CCLD     stex3d
  CCLD     teapot
  CCLD     terrain
  CCLD     tessdemo
  CCLD     texcyl
  CCLD     texenv
  CCLD     textures
  CCLD     trispd
  CCLD     tunnel2
  CCLD     tunnel
  CCLD     vao_demo
  CCLD     winpos
gmake[4]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/demos'
Making all in egl
gmake[4]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl'
Making all in eglut
gmake[5]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/eglut'
  CC       eglut.lo
  CC       eglut_screen.lo
  CC       libeglut_x11_la-eglut.lo
  CC       libeglut_x11_la-eglut_x11.lo
  CCLD     libeglut_x11.la
  CCLD     libeglut_screen.la
gmake[5]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/eglut'
Making all in opengl
gmake[5]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengl'
  CC       demo1.o
  CC       demo2.o
  CC       demo3.o
  CC       eglinfo.o
  CC       eglgears.o
  CC       egltri.o
  CC       peglgears.o
  CC       xeglgears.o
  CC       xeglthreads.o
  CCLD     demo1
  CCLD     demo2
  CCLD     demo3
xeglgears.c:919:9: warning: cast to 'EGLClientBuffer' (aka 'void *')
from smaller integer type 'GLuint' (aka 'unsigned int')
      [-Wint-to-void-pointer-cast]
                                           (EGLClientBuffer) color_rb,
NULL);
                                           ^
  CCLD     eglinfo
  CCLD     eglgears_screen
1 warning generated.
  CCLD     egltri_screen
  CCLD     peglgears
  CCLD     eglgears_x11
  CCLD     egltri_x11
  CCLD     xeglgears
  CCLD     xeglthreads
gmake[5]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengl'
Making all in openvg
gmake[5]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg'
Making all in trivial
gmake[6]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg/trivial'
gmake[6]: Nothing to be done for `all'.
gmake[6]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg/trivial'
gmake[6]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg'
gmake[6]: Nothing to be done for `all-am'.
gmake[6]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg'
gmake[5]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/openvg'
Making all in opengles1
gmake[5]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengles1'
gmake[5]: Nothing to be done for `all'.
gmake[5]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengles1'
Making all in opengles2
gmake[5]: Entering directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengles2'
  CC       es2_info.o
  CC       es2gears.o
  CC       es2tri.o
es2_info.c:88:32: warning: data argument not used by format string
[-Wformat-extra-args]
   printf("EGL_EXTENSIONS:\n", s);
          ~~~~~~~~~~~~~~~~~~~  ^
es2gears.c:173:7: warning: implicit declaration of function 'sincos' is
invalid in C99 [-Wimplicit-function-declaration]
      sincos(i * 2.0 * M_PI / teeth, &s[0], &c[0]);
      ^
1 warning generated.
  CCLD     es2_info
  CCLD     es2tri
1 warning generated.
  CCLD     es2gears_screen
  CCLD     es2gears_x11
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [es2_info] Error 1
gmake[5]: *** Waiting for unfinished jobs....
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [es2tri] Error 1
es2gears.o: In function `perspective':
es2gears.c:(.text+0x6e): undefined reference to `sincos'
es2gears.o: In function `gears_reshape':
es2gears.c:(.text+0x50e): undefined reference to `sincos'
es2gears.o: In function `gears_draw':
es2gears.c:(.text+0x6e6): undefined reference to `sincos'
es2gears.c:(.text+0x7d0): undefined reference to `sincos'
es2gears.c:(.text+0x899): undefined reference to `sincos'
es2gears.o:es2gears.c:(.text+0xc4f): more undefined references to
`sincos' follow
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [es2gears_screen] Error 1
es2gears.o: In function `perspective':
es2gears.c:(.text+0x6e): undefined reference to `sincos'
es2gears.o: In function `gears_reshape':
es2gears.c:(.text+0x50e): undefined reference to `sincos'
es2gears.o: In function `gears_draw':
es2gears.c:(.text+0x6e6): undefined reference to `sincos'
es2gears.c:(.text+0x7d0): undefined reference to `sincos'
es2gears.c:(.text+0x899): undefined reference to `sincos'
es2gears.o:es2gears.c:(.text+0xc4f): more undefined references to
`sincos' follow
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [es2gears_x11] Error 1
gmake[5]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl/opengles2'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src/egl'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/graphics/mesa-demos/work/mesa-demos-8.1.0'
===> 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 /usr/ports/graphics/mesa-demos
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/mesa-demos

# pkg which /usr/local/lib/libGLESv2.so
/usr/local/lib/libGLESv2.so was installed by package libglesv2-9.1.7

# pkg version -vIL=\<
dri-9.1.7_3,2                      >   succeeds index (index has 7.6.1_3,2)
libEGL-9.1.7                       >   succeeds index (index has 7.6.1)
libGL-9.1.7                        >   succeeds index (index has 7.6.1_4)
libdrm-2.4.50                      >   succeeds index (index has 2.4.17_1)
xf86-video-ati-7.2.0_1             >   succeeds index (index has 6.14.6_1)
xf86-video-intel-2.21.15_1         >   succeeds index (index has 2.7.1_6)
xorg-server-1.12.4_4,1             >   succeeds index (index has 1.7.7_11,1)

Jim


More information about the freebsd-x11 mailing list