Bug 5935

Summary: glxcmds.c:2618: error: `X_GLXvop_BindTexImageEXT' undeclared (first use in this function)
Product: Mesa Reporter: mobidyc <mobidyc>
Component: Drivers/DRI/R100Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description mobidyc 2006-02-18 10:51:58 UTC
Hi,

i have follow http://dri.freedesktop.org/wiki/Building and i have error at the 
build Mesa 3D Driver:

$ make freebsd-dri
(cd configs && rm -f current && ln -s freebsd-dri current)
make default
Making sources for freebsd-dri
gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/
mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-
config --cflags libdrm` -I/usr/X11R6/include -DPTHREADS -
DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -
DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -Wmissing-prototypes -g -std=c99  -
Wundef -fPIC -ffast-math  -I/usr/X11R6/include -DPTHREADS -
DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -
DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER glxcmds.c -o glxcmds.o
glxcmds.c:1726: warning: no previous prototype for 'glXSwapIntervalMESA'
glxcmds.c:1758: warning: no previous prototype for 'glXGetSwapIntervalMESA'
glxcmds.c:1788: warning: no previous prototype for 'glXBeginFrameTrackingMESA'
glxcmds.c:1808: warning: no previous prototype for 'glXEndFrameTrackingMESA'
glxcmds.c:1829: warning: no previous prototype for 'glXGetFrameUsageMESA'
glxcmds.c:1857: warning: no previous prototype for 'glXQueryFrameTrackingMESA'
glxcmds.c:2595: warning: no previous prototype for 'glXBindTexImageEXT'
glxcmds.c: In function `glXBindTexImageEXT':
glxcmds.c:2618: error: `X_GLXvop_BindTexImageEXT' undeclared (first use in this 
function)
glxcmds.c:2618: error: (Each undeclared identifier is reported only once
glxcmds.c:2618: error: for each function it appears in.)
glxcmds.c: At top level:
glxcmds.c:2636: warning: no previous prototype for 'glXReleaseTexImageEXT'
glxcmds.c: In function `glXReleaseTexImageEXT':
glxcmds.c:2659: error: `X_GLXvop_ReleaseTexImageEXT' undeclared (first use in 
this function)
gmake: *** [glxcmds.o] Erreur 1
*** Error code 1

Stop in /mnt/ad8/X/Mesa/src.
*** Error code 1

Stop in /mnt/ad8/X/Mesa.
*** Error code 1

Stop in /mnt/ad8/X/Mesa.


please, someone can help me ?
thanks
Comment 1 Donnie Berkholz 2006-02-18 11:29:12 UTC
You need to update your glproto to 1.4.4.
Comment 2 mobidyc 2006-02-18 21:51:15 UTC
hello,

where can i find glproto, i've no software like that.

i found a glxproto.h in xc cvs and it's already the last version, i cvsuped 
yesterday.

i tried to follow #5873 but it's not the same problem, i already have:
/mnt/ad8/X/xc/exports/include/GL/glxproto.h
/mnt/ad8/X/xc/include/GL/glxproto.h
/usr/X11R6/include/GL/glxproto.h

i tried to put glxproto.h (by symlink) in another place in Mesa tree and the 
problem is always here.

thanks.
Comment 3 mobidyc 2006-02-21 04:27:06 UTC
glproto is here:
xorg.freedesktop.org/releases/individual/proto/

thanks to Donnie Berkholz for the link and his work.
the compilation is ok now ;)
Comment 4 Megachip 2006-02-24 05:26:51 UTC
(In reply to comment #1)
> You need to update your glproto to 1.4.4.

Have installed 1.4.5 like on DRI Wiki and nothing works, same error :(

Comment 5 Ian Romanick 2006-02-24 05:42:45 UTC
Do a 'find / -name glxproto.h'.  My guess is that you have multiple copies
installed on your system and the Mesa build isn't finding the correct one.  The
new one should be located in /usr/X11R6/include/GL.  I suspect that the glproto
default is to put it in /usr/include/GL, but I don't know for sure.
Comment 6 Megachip 2006-02-24 14:18:06 UTC
(In reply to comment #5)
> Do a 'find / -name glxproto.h'.  My guess is that you have multiple copies
> installed on your system and the Mesa build isn't finding the correct one.  The
> new one should be located in /usr/X11R6/include/GL.  I suspect that the glproto
> default is to put it in /usr/include/GL, but I don't know for sure.
The files are located in 

/usr/X11R6/include/GL/glxproto.h
/usr/local/include/GL/glxproto.h

Comment 7 Roland Scheidegger 2006-02-25 00:23:44 UTC
(In reply to comment #6)
> The files are located in 
> 
> /usr/X11R6/include/GL/glxproto.h
> /usr/local/include/GL/glxproto.h
So, you likely have the old version in /usr/X11R6/include/GL (which Mesa will
pick up) and installed the new version in /usr/local. Try installing glproto in
the right location (configure --prefix=/usr/X11 should do the trick I guess) or
copy the file over or whatever.
Comment 8 Adam Jackson 2009-08-24 12:23:42 UTC
Mass version move, cvs -> git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.