glapi_mapi_tmp.h:883:1: error: conflicting types for ‘glDebugMessageCallbackARB’

darxus at chaosreigns.com darxus at chaosreigns.com
Sat Mar 10 21:29:42 PST 2012


I tried to update my wayland build script, for ubuntu oneric.  I got
everything manually built and running under X with nouveau, updated my
script, ran it, and I've been getting this error when trying to build mesa
ever since, including when I go back and build manually from scratch.
I thought it was because of some ubuntu packages the script installed
that used to be necessary, but I removed them all and added them back
as necessary.  Any ideas what I'm doing wrong?  I've wiped my install
directory to completely start over lots of times.

Also, it looks like the build instructions won't work with nouveau due to
lack of something like --with-gallium-drivers=nouveau to enable the nouveau
gallium driver?

The script, not working for me, is here:
http://www.chaosreigns.com/wayland/buildscript/wayland-build-ubuntu-oneric.sh
Run as "mkdir ~/install; cd install; ../wayland-build-ubuntu-oneric.sh".

More of the output from building mesa:

mklib: Making Linux shared library:  libglapi.so.0.0.0
mklib: Installing libglapi.so.0.0.0 libglapi.so.0 libglapi.so in ../../../lib
make[2]: Leaving directory `/home/darxus/install/mesa/src/mapi/shared-glapi'
make[2]: Entering directory `/home/darxus/install/mesa/src/mapi/glapi'
running /usr/bin/makedepend
make[2]: Leaving directory `/home/darxus/install/mesa/src/mapi/glapi'
make[2]: Entering directory `/home/darxus/install/mesa/src/mapi/glapi'
gcc -c -I../../../include -I../../../src/mapi -I../../../src/mesa -DMAPI_MODE_BRIDGE -DMAPI_ABI_HEADER=\"glapi/glapi_mapi_tmp.h\" -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -g -O2  -fPIC  -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0208 -fvisibility=hidden ../../../src/mapi/mapi/entry.c -o entry.o
In file included from ../../../src/mapi/mapi/mapi_tmp.h:48:0,
                 from ../../../src/mapi/mapi/entry.c:69:
../../../src/mapi/glapi/glapi_mapi_tmp.h:883:1: error: conflicting types for ‘glDebugMessageCallbackARB’
../../../include/GL/glext.h:7576:21: note: previous declaration of ‘glDebugMessageCallbackARB’ was here
In file included from ../../../src/mapi/mapi/mapi_tmp.h:48:0,
                 from ../../../src/mapi/mapi/entry.c:69:
../../../src/mapi/glapi/glapi_mapi_tmp.h:7330:1: error: conflicting types for ‘glDebugMessageCallbackARB’
../../../include/GL/glext.h:7576:21: note: previous declaration of ‘glDebugMessageCallbackARB’ was here
make[2]: *** [entry.o] Error 1
make[2]: Leaving directory `/home/darxus/install/mesa/src/mapi/glapi'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/darxus/install/mesa/src'
make: *** [default] Error 1

-- 
"Let's just say that if complete and utter chaos was lightning, then
he'd be the sort to stand on a hilltop in a thunderstorm wearing wet
copper armour and shouting 'All gods are bastards'." - The Color of Magic
http://www.ChaosReigns.com


More information about the wayland-devel mailing list