Bug 33176 - git mesa (7.11-devel) compilation error
Summary: git mesa (7.11-devel) compilation error
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-15 20:14 UTC by Jos van Wolput
Modified: 2011-01-16 04:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix d3d1x (1.44 KB, patch)
2011-01-16 01:37 UTC, Chia-I Wu
Details | Splinter Review
fix d3d1x again (1.45 KB, patch)
2011-01-16 03:59 UTC, Chia-I Wu
Details | Splinter Review

Description Jos van Wolput 2011-01-15 20:14:19 UTC
Compiling git mesa 7.11-devel (gallium enabled) shows the following error:
make
---
src/dxgi_loader.cpp: In function ‘bool dlopen_pipe_module_cb(const char*, size_t, void*)’:
src/dxgi_loader.cpp:115: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
src/dxgi_loader.cpp:115: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
g++ -c -I. -I../../../../../src/gallium/include -I../../../../../src/gallium/auxiliary -I../../../../../src/gallium/drivers -I../../../../../include -Iinclude -I../gd3dapi -I../d3dapi -I../w32api -I../d3d1xstutil/include -I../include -I../../../include -I../../../auxiliary -I../../../state_trackers/egl/common -g -O2 -Wall -fvisibility=hidden -fno-strict-aliasing  -fPIC  -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2 -DHAVE_LIBUDEV -DDXGI_DRIVER_SEARCH_DIR=\"/usr/lib/egl\" -DGALLIUM_DXGI_USE_X11 src/dxgi_native.cpp -o src/dxgi_native.o
In file included from ../w32api/windef.h:252,
                 from ../w32api/windows.h:41,
                 from ../w32api/rpc.h:29,
                 from ../w32api/objbase.h:19,
                 from ../d3d1xstutil/include/d3d1xstutil.h:45,
                 from src/dxgi_private.h:34,
                 from src/dxgi_native.cpp:27:
../w32api/winnt.h:684: warning: attributes ignored on elaborated-type-specifier that is not a forward declaration
src/dxgi_native.cpp: In constructor ‘GalliumDXGIAdapter::GalliumDXGIAdapter(GalliumDXGIFactory*, const native_platform*, void*)’:
src/dxgi_native.cpp:262: error: invalid conversion from ‘native_event_handler*’ to ‘boolean’
make[5]: *** [src/dxgi_native.o] Error 1
make[5]: Leaving directory `/home/jos/src/xorg/git-master/mesa/src/gallium/state_trackers/d3d1x/dxgi'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/jos/src/xorg/git-master/mesa/src/gallium/state_trackers/d3d1x'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/home/jos/src/xorg/git-master/mesa/src/gallium/state_trackers'
make[2]: *** [default] Error 1
make[2]: Leaving directory `/home/jos/src/xorg/git-master/mesa/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/jos/src/xorg/git-master/mesa/src'
make: *** [default] Error 1
---
Comment 1 Chia-I Wu 2011-01-16 01:37:08 UTC
Created attachment 42098 [details] [review]
fix d3d1x

Does this patch help?  I did not(/don't know how to) enable d3d1x to verify.
Comment 2 Jos van Wolput 2011-01-16 03:07:44 UTC
(In reply to comment #1)

> Does this patch help?  I did not(/don't know how to) enable d3d1x to verify.

I applied your patch but get the following error:
---
src/dxgi_native.cpp: In constructor ‘GalliumDXGIAdapter::GalliumDXGIAdapter(GalliumDXGIFactory*, const native_platform*, void*)’:
src/dxgi_native.cpp:263: error: ‘const struct native_platform’ has no member named ‘set_native_handler’
make: *** [src/dxgi_native.o] Error 1
---
Comment 3 Chia-I Wu 2011-01-16 03:59:17 UTC
Created attachment 42099 [details] [review]
fix d3d1x again

Ah, sorry.  s/set_native_handler/set_event_handler/.
Comment 4 Jos van Wolput 2011-01-16 04:42:58 UTC
(In reply to comment #3)
> Created an attachment (id=42099) [details]
> fix d3d1x again
> 
> Ah, sorry.  s/set_native_handler/set_event_handler/.

Fixed, thanks!

There seems to be an error in r600, glxinfo showing
EE r600_pipe.c:321 r600_get_param - r600: unknown param 43
Comment 5 Chia-I Wu 2011-01-16 04:59:10 UTC
Fix committed.


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.