Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473526 - media-libs/mesa-9.1.{2,2-r1,3}[-shared-glapi] - fails to compile: glapi_dispatch.c (error: no previous prototype for 'glReadBufferNV' [-Werror=missing-prototypes])
Summary: media-libs/mesa-9.1.{2,2-r1,3}[-shared-glapi] - fails to compile: glapi_dispa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 20:21 UTC by Ronald
Modified: 2015-02-21 19:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info --verbose (file_473526.txt,12.86 KB, text/plain)
2013-06-16 20:21 UTC, Ronald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald 2013-06-16 20:21:58 UTC
Created attachment 351154 [details]
emerge --info --verbose

Upstream (I think): https://bugs.freedesktop.org/show_bug.cgi?id=56710

This is what I get:

gmake[2]: Entering directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src/mapi/glapi'
/bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"9.1.3\" -DPACKAGE_STRING=\"Mesa\ 9.1.3\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I.  -D_GNU_SOURCE -DHAVE_PTHREAD -DTEXTURE_FLOAT_ENABLED -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0301 -I../../../include -I../../../src/mapi -I../../../src/mapi -I../../../src/mesa  -DMAPI_MODE_UTIL   -march=k8 -O2 -pipe -fomit-frame-pointer -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp  -c -o glapi_dispatch.lo glapi_dispatch.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"9.1.3\" "-DPACKAGE_STRING=\"Mesa 9.1.3\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -D_GNU_SOURCE -DHAVE_PTHREAD -DTEXTURE_FLOAT_ENABLED -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0301 -I../../../include -I../../../src/mapi -I../../../src/mapi -I../../../src/mesa -DMAPI_MODE_UTIL -march=k8 -O2 -pipe -fomit-frame-pointer -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -c glapi_dispatch.c  -fPIC -DPIC -o .libs/glapi_dispatch.o
In file included from glapi_dispatch.c:90:0:
../../../src/mapi/glapi/glapitemp.h:1640:1: error: no previous prototype for 'glReadBufferNV' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:4198:1: error: no previous prototype for 'glDrawBuffersNV' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6377:1: error: no previous prototype for 'glFlushMappedBufferRangeEXT' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6389:1: error: no previous prototype for 'glMapBufferRangeEXT' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6401:1: error: no previous prototype for 'glBindVertexArrayOES' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6413:1: error: no previous prototype for 'glDeleteVertexArraysOES' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6433:1: error: no previous prototype for 'glGenVertexArraysOES' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h:6445:1: error: no previous prototype for 'glIsVertexArrayOES' [-Werror=missing-prototypes]
../../../src/mapi/glapi/glapitemp.h: In function 'glMultiDrawElements':
../../../src/mapi/glapi/glapitemp.h:7559:4: warning: passing argument 4 of '_glapi_tls_Dispatch->MultiDrawElementsEXT' discards 'const' qualifier from pointer target type [enabled by default]
../../../src/mapi/glapi/glapitemp.h:7559:4: note: expected 'const GLvoid **' but argument is of type 'const GLvoid * const*'
cc1: some warnings being treated as errors
gmake[2]: *** [glapi_dispatch.lo] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src/mapi/glapi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src'
make: *** [all-recursive] Error 1
 * ERROR: media-libs/mesa-9.1.3 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-9.1.3'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-9.1.3'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mesa-9.1.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-9.1.3/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3'
 * S: '/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3'
Comment 1 Ronald 2013-06-17 05:16:58 UTC
If I remove the switch that makes the warning fatal, I dies further down the road:

libtool: link: x86_64-pc-linux-gnu-g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/crtbeginS.o  .libs/egl.o .libs/egl_pipe.o .libs/egl_st.o  -Wl,--whole-archive ../../../../src/gallium/auxiliary/.libs/libgallium.a ../../../../src/gallium/drivers/identity/.libs/libidentity.a ../../../../src/gallium/drivers/trace/.libs/libtrace.a ../../../../src/gallium/drivers/rbug/.libs/librbug.a ../../../../src/gallium/state_trackers/egl/.libs/libegl.a ../../../../src/gallium/winsys/sw/xlib/.libs/libws_xlib.a ../../../../src/mesa/.libs/libmesagallium.a ../../../../src/mapi/glapi/.libs/libglapi.a ../../../../src/gallium/winsys/nouveau/drm/.libs/libnouveaudrm.a ../../../../src/gallium/drivers/nv30/.libs/libnv30.a ../../../../src/gallium/drivers/nv50/.libs/libnv50.a ../../../../src/gallium/drivers/nvc0/.libs/libnvc0.a ../../../../src/gallium/drivers/nouveau/.libs/libnouveau.a ../../../../src/gallium/drivers/softpipe/.libs/libsoftpipe.a ../../../../src/gallium/drivers/llvmpipe/.libs/libllvmpipe.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src/egl/main/.libs -L/usr/lib64/llvm -Wl,--as-needed ../../../../src/egl/main/.libs/libEGL.so -lX11-xcb -lxcb-dri2 -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -ludev -lrt -lX11 -lXext -lXfixes -ldrm_nouveau -ldrm -lpthread -ldl -lLLVMMCJIT -lLLVMBitWriter -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Disassembler -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/crtn.o  -march=k8 -O2 -Wl,--no-undefined -Wl,--allow-multiple-definition -Wl,-O1   -Wl,-soname -Wl,egl_gallium.so -o .libs/egl_gallium.so
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6128): undefined reference to `glAreTexturesResidentEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x61a0): undefined reference to `glDeleteTexturesEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x61b8): undefined reference to `glGenTexturesEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x61e8): undefined reference to `glIsTextureEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6320): undefined reference to `glGetColorTableEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6338): undefined reference to `glGetColorTableEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6350): undefined reference to `glGetColorTableParameterfvEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6368): undefined reference to `glGetColorTableParameterfvEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6380): undefined reference to `glGetColorTableParameterivEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6398): undefined reference to `glGetColorTableParameterivEXT'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x64a0): undefined reference to `gl_dispatch_stub_356'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x64b8): undefined reference to `gl_dispatch_stub_357'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x64d0): undefined reference to `gl_dispatch_stub_358'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x64e8): undefined reference to `gl_dispatch_stub_359'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6518): undefined reference to `gl_dispatch_stub_361'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6530): undefined reference to `gl_dispatch_stub_362'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6548): undefined reference to `gl_dispatch_stub_363'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6560): undefined reference to `gl_dispatch_stub_364'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6578): undefined reference to `gl_dispatch_stub_365'
../../../../src/mapi/glapi/.libs/libglapi.a(glapi_getproc.o):(.data.rel.ro+0x6590): undefined reference to `gl_dispatch_stub_366'
collect2: ld returned 1 exit status
gmake[3]: *** [egl_gallium.la] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src/gallium/targets/egl-static'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src/gallium/targets'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3/src'
make: *** [all-recursive] Error 1
 [31;01m*[0m ERROR: media-libs/mesa-9.1.3 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=media-libs/mesa-9.1.3'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=media-libs/mesa-9.1.3'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-libs/mesa-9.1.3/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-9.1.3/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3'
 [31;01m*[0m S: '/var/tmp/portage/media-libs/mesa-9.1.3/work/Mesa-9.1.3'
Comment 2 Ronald 2013-06-18 14:42:56 UTC
I recompiled this version with -llvm and +shared-glapi. I think the latter made the issue go away.
Comment 3 Matt Turner gentoo-dev 2013-06-22 20:32:27 UTC
Removed shared-glapi USE flag from mesa-9.2_pre20130619.ebuild. We may want to add a warning to other ebuild or maybe remove the USE flag from them too.
Comment 4 Matt Turner gentoo-dev 2015-02-21 19:02:45 UTC
Should be fixed a long time ago.