wayland build failed

canbaby canbaby at 21cn.com
Sat Nov 6 03:47:00 PDT 2010


Hi:
I'm new to wayland, I do git clone from repo, and configure and build, I 
got these error message:
==
make all-recursive
make[1]: Entering directory `/media/sda6/softrepo/freedesktop/wayland'
Making all in wayland
make[2]: Entering directory 
`/media/sda6/softrepo/freedesktop/wayland/wayland'
make all-am
make[3]: Entering directory 
`/media/sda6/softrepo/freedesktop/wayland/wayland'
CC wayland-server.lo
wayland-server.c:343: error: variable ‘display_interface’ has 
initializer but incomplete type
wayland-server.c:344: warning: excess elements in struct initializer
wayland-server.c:344: warning: (near initialization for ‘display_interface’)
wayland-server.c:346: warning: excess elements in struct initializer
wayland-server.c:346: warning: (near initialization for ‘display_interface’)
make[3]: *** [wayland-server.lo] Error 1
make[3]: Leaving directory 
`/media/sda6/softrepo/freedesktop/wayland/wayland'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/media/sda6/softrepo/freedesktop/wayland/wayland'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/sda6/softrepo/freedesktop/wayland'
make: *** [all] Error 2
==
I think the reason is in wayland/wayland-server-protocol.h,
extern const struct wl_interface wl_display_interface;
and
struct wl_display_interface {...}
Which had double define wl_display_interface, one as var and one as type,
which confuse my gcc(verson 4.4.5), should there be a option to let gcc 
distinction them?
Or something else wrong, or the scanner?

Best Regards!

-- 
wucan


More information about the wayland-devel mailing list