http://bugs.winehq.org/show_bug.cgi?id=11674
Sam Fourman Jr. sfourman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sfourman@gmail.com
--- Comment #174 from Sam Fourman Jr. sfourman@gmail.com 2012-03-02 16:44:54 CST --- (In reply to comment #162)
http://www.aewi.info/rgl/rgl.patch.gz
fix for new nvidia drivers (ati not tested)
I tried your patch on FreeBSD 10x
it fails to compile and I think this is why, any way I can fix it?
gmake[1]: Entering directory `/usr/ports/emulators/wine/work/wine-1.4-rc5/dlls/qmgrprxy' ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL -u -o qmgrprxy_i.c qmgrprxy.idl rgl.c: In function 'rGLSync': rgl.c:119:6: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] rgl.c:119:65: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] rgl.c: At top level: rgl.c:181:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] rgl.c: In function 'rGLDestroyThread': rgl.c:183:15: warning: unused variable 'rGLthread' [-Wunused-variable] rgl.c:182:9: warning: unused variable 'i' [-Wunused-variable] rgl.c: In function 'wine_glXCreateContext': rgl.c:208:13: warning: unused variable 'rGLthread' [-Wunused-variable] rgl.c: In function 'wine_glXMakeCurrent': rgl.c:279:1: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'struct thread_state *' [-Wformat] rgl.c: In function 'rGL_glXSwapBuffers': rgl.c:385:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] rgl.c:365:31: warning: variable 'rGLt3' set but not used [-Wunused-but-set-variable] rgl.c: In function 'wine_glGenBuffersARB': rgl.c:674:51: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c: In function 'rGL_glGenBuffers': rgl.c:693:3: warning: implicit declaration of function 'glGenBuffers' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glGenBuffers': rgl.c:713:51: warning: assignment makes integer from pointer without a cast [enabled by default] ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL -p -o qmgrprxy_p.c qmgrprxy.idl rgl.c: In function 'rGL_glDeleteBuffersARB': rgl.c:736:33: warning: comparison between pointer and integer [enabled by default] rgl.c:736:5: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c: In function 'wine_glGenProgramsARB': rgl.c:1133:1: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'struct context_state *' [-Wformat] rgl.c: In function 'wine_glClientWaitSync': rgl.c:1412:8: error: 'GL_ALREADY_SIGNALED' undeclared (first use in this function) rgl.c:1412:8: note: each undeclared identifier is reported only once for each function it appears in rgl.c: In function 'rGL_glBindBuffer': rgl.c:1726:5: warning: implicit declaration of function 'glBindBufferARB' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glBindBuffer': rgl.c:1761:5: warning: implicit declaration of function 'glBindBuffer' [-Wimplicit-function-declaration] rgl.c: In function 'rGL_glVertexAttribPointer': rgl.c:1810:49: warning: initialization from incompatible pointer type [enabled by default] rgl.c:1812:3: warning: implicit declaration of function 'glVertexAttribPointer' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glVertexAttribPointer': rgl.c:1819:1: warning: format '%d' expects argument of type 'int', but argument 10 has type 'GLvoid *' [-Wformat] rgl.c:1828:40: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c: At top level: rgl.c:1966:229: warning: no semicolon at end of struct or union [enabled by default] rgl.c: In function 'rGL_glDrawElementsInstanced': rgl.c:1971:3: warning: implicit declaration of function 'glDrawElementsInstanced' [-Wimplicit-function-declaration] rgl.c: In function 'rGL_glEnableVertexAttribArray': rgl.c:2191:53: warning: initialization from incompatible pointer type [enabled by default] rgl.c:2192:3: warning: implicit declaration of function 'glEnableVertexAttribArray' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glEnableVertexAttribArray': rgl.c:2201:10: warning: assignment from incompatible pointer type [enabled by default] rgl.c: In function 'wine_glMapBufferARB': rgl.c:2267:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2269:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2271:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2273:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c: In function 'rGL_glMapBuffer': rgl.c:2303:3: warning: implicit declaration of function 'glMapBuffer' [-Wimplicit-function-declaration] rgl.c:2303:22: warning: assignment makes pointer from integer without a cast [enabled by default] rgl.c: In function 'wine_glMapBuffer': rgl.c:2314:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2316:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2318:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2320:6: warning: return makes pointer from integer without a cast [enabled by default] rgl.c:2338:28: warning: assignment makes pointer from integer without a cast [enabled by default] rgl.c: In function 'wine_glBufferDataARB': rgl.c:2376:54: warning: comparison between pointer and integer [enabled by default] rgl.c:2376:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2378:51: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2379:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2382:62: warning: comparison between pointer and integer [enabled by default] rgl.c:2382:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2384:59: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2385:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2388:59: warning: comparison between pointer and integer [enabled by default] rgl.c:2388:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2390:56: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2391:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2394:61: warning: comparison between pointer and integer [enabled by default] rgl.c:2394:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2396:58: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2397:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c: In function 'rGL_glBufferData': rgl.c:2415:3: warning: implicit declaration of function 'glBufferData' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glBufferData': rgl.c:2440:54: warning: comparison between pointer and integer [enabled by default] rgl.c:2440:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2442:51: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2443:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2446:62: warning: comparison between pointer and integer [enabled by default] rgl.c:2446:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2448:59: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2449:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2452:59: warning: comparison between pointer and integer [enabled by default] rgl.c:2452:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2454:56: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2455:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2458:61: warning: comparison between pointer and integer [enabled by default] rgl.c:2458:6: warning: passing argument 1 of 'free' makes pointer from integer without a cast [enabled by default] /usr/local/lib/gcc46/gcc/i386-portbld-freebsd10.0/4.6.3/include-fixed/stdlib.h:107:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2460:58: warning: assignment makes integer from pointer without a cast [enabled by default] rgl.c:2461:6: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] /usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'GLuint' rgl.c:2421:10: warning: unused variable 'func_glBufferData' [-Wunused-variable] rgl.c: In function 'rGL_glBufferSubData': rgl.c:2518:3: warning: implicit declaration of function 'glBufferSubData' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glUnmapBufferARB': rgl.c:2570:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2573:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2576:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2579:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c: In function 'rGL_glUnmapBuffer': rgl.c:2611:3: warning: implicit declaration of function 'glUnmapBuffer' [-Wimplicit-function-declaration] rgl.c: In function 'wine_glUnmapBuffer': rgl.c:2623:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2626:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2629:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' rgl.c:2632:6: warning: passing argument 4 of 'wine_glBufferSubDataARB' makes pointer from integer without a cast [enabled by default] rgl.c:2486:13: note: expected 'GLvoid *' but argument is of type 'GLuint' ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL -h -o qmgrprxy.h qmgrprxy.idl rgl.c: In function 'wine_glDrawRangeElements': rgl.c:2846:1: warning: format '%d' expects argument of type 'int', but argument 10 has type 'GLvoid *' [-Wformat] ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL -r -o qmgrprxy_r.res qmgrprxy.idl ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL --dlldata-only -o dlldata.c qmgrprxy.idl gcc46 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_REGISTER_DLL -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -o qmgrprxy_i.o qmgrprxy_i.c gmake[1]: *** [rgl.o] Error 1