Bug 27360

Summary: xcb backends fail to build
Product: cairo Reporter: Maciej Piechotka <uzytkownik2>
Component: xcb backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.9.6   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Maciej Piechotka 2010-03-29 00:27:10 UTC
On Gentoo/in drm git drm is in libdrm/ instead of drm:

cairo-xcb-screen.c:137:21: error: drm/drm.h: No such file or directory
cairo-xcb-screen.c: In function 'drm_magic':
cairo-xcb-screen.c:146: error: 'drm_auth_t' undeclared (first use in this function)
cairo-xcb-screen.c:146: error: (Each undeclared identifier is reported only once
cairo-xcb-screen.c:146: error: for each function it appears in.)
cairo-xcb-screen.c:146: error: expected ';' before 'auth'
cairo-xcb-screen.c:148: error: 'DRM_IOCTL_GET_MAGIC' undeclared (first use in this function)
cairo-xcb-screen.c:148: error: 'auth' undeclared (first use in this function)
cairo-xcb-screen.c: In function '_xcb_drm_device':
cairo-xcb-screen.c:161: error: 'drm_magic_t' undeclared (first use in this function)
cairo-xcb-screen.c:161: error: expected ';' before 'magic'
cairo-xcb-screen.c:162: warning: ISO C90 forbids mixed declarations and code
cairo-xcb-screen.c:184: error: 'magic' undeclared (first use in this function)

Even after patching:

drm/cairo-drm-bo.c:33:37: error: cairo-drm-ioctl-private.h: No such file or directory
drm/cairo-drm-bo.c: In function '_cairo_drm_bo_open_for_name':
drm/cairo-drm-bo.c:83: error: implicit declaration of function 'DRM_IOWR'
drm/cairo-drm-bo.c:83: warning: nested extern declaration of 'DRM_IOWR'
drm/cairo-drm-bo.c:83: error: expected expression before 'struct'
drm/cairo-drm-bo.c: In function '_cairo_drm_bo_flink':
drm/cairo-drm-bo.c:107: error: expected expression before 'struct'
drm/cairo-drm-bo.c: In function '_cairo_drm_bo_close':
drm/cairo-drm-bo.c:128: error: implicit declaration of function 'DRM_IOW'
drm/cairo-drm-bo.c:128: warning: nested extern declaration of 'DRM_IOW'
drm/cairo-drm-bo.c:128: error: expected expression before 'struct'
Comment 1 Maciej Piechotka 2010-03-29 00:30:43 UTC
Even without drm:


cairo-xcb-shm.c: In function 'free_blocks':
cairo-xcb-shm.c:164: warning: cannot optimize possibly infinite loops
cairo-xcb-shm.c: In function '_cairo_xcb_shm_mem_pool_malloc':
cairo-xcb-shm.c:342: warning: cannot optimize possibly infinite loops
  CC    cairo-xcb-connection-shm.o
make[3]: *** No rule to make target `glew/glew.c', needed by `glew.lo'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC    cairo-png.o
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2
Comment 2 Chris Wilson 2010-05-13 02:12:35 UTC
-xcb and -drm build from a clean install from 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.