Bug 68262 - [build error with wayland < 1.2.0] wayland-drm.c:110:3: error: implicit declaration of function 'wl_resource_create'
Summary: [build error with wayland < 1.2.0] wayland-drm.c:110:3: error: implicit decla...
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: 2013-08-19 08:20 UTC by Fabio Pedretti
Modified: 2013-08-27 16:13 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Fabio Pedretti 2013-08-19 08:20:37 UTC
I am getting this compile error on current git with wayland 1.1.0:
  CC     wayland-drm.lo
wayland-drm.c: In function 'create_buffer':
wayland-drm.c:110:3: error: implicit declaration of function 'wl_resource_create' [-Werror=implicit-function-declaration]
wayland-drm.c:109:19: warning: assignment makes pointer from integer without a cast [enabled by default]
wayland-drm.c:117:2: error: implicit declaration of function 'wl_resource_set_implementation' [-Werror=implicit-function-declaration]
wayland-drm.c: In function 'bind_drm':
wayland-drm.c:214:11: warning: assignment makes pointer from integer without a cast [enabled by default]
wayland-drm.c:217:3: error: implicit declaration of function 'wl_client_post_no_memory' [-Werror=implicit-function-declaration]
wayland-drm.c: In function 'wayland_drm_buffer_get':
wayland-drm.c:251:2: error: implicit declaration of function 'wl_resource_instance_of' [-Werror=implicit-function-declaration]
wayland-drm.c:253:3: error: implicit declaration of function 'wl_resource_get_user_data' [-Werror=implicit-function-declaration]
wayland-drm.c:253:3: warning: return makes pointer from integer without a cast [enabled by default]
wayland-drm.c: In function 'wayland_drm_init':
wayland-drm.c:273:2: error: implicit declaration of function 'wl_global_create' [-Werror=implicit-function-declaration]

Full log here: https://launchpadlibrarian.net/147916809/buildlog_ubuntu-raring-i386.mesa_9.3~git1308190858.d13003~gd~r_FAILEDTOBUILD.txt.gz

When building with wayland 1.2.0 it's OK.

If 1.2 is now required as implied by:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d29b5271a2e66fc78436be31ed6748ff006f0cb
then this patch should be applied:
http://lists.freedesktop.org/archives/mesa-dev/2013-August/043210.html
Comment 1 Fabio Pedretti 2013-08-20 12:07:32 UTC
I tested and got the error with 1.0.5, not 1.1.0.
Comment 2 Fabio Pedretti 2013-08-27 14:11:53 UTC
Confirming the same error with 1.1.0.


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.