Error while linking target
[17/19] Linking target src/libvirglrenderer.so.1.5.3
FAILED: src/libvirglrenderer.so.1.5.3
cc -o src/libvirglrenderer.so.1.5.3 src/libvirglrenderer.so.1.5.3.p/virglrenderer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libvirglrenderer.so.1 src/gallium/libgallium.a src/libvirgl.a /usr/lib/x86_64-linux-gnu/libepoxy.so /usr/lib/x86_64-linux-gnu/libdrm.so -pthread -lm /usr/lib/x86_64-linux-gnu/libX11.so -Wl,--end-group
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `do_wait':
vrend_renderer.c:(.text+0x15be): undefined reference to `virgl_egl_client_wait_fence'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `thread_sync':
vrend_renderer.c:(.text+0x4d17): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_resource_destroy':
vrend_renderer.c:(.text+0xfa78): undefined reference to `virgl_egl_image_destroy'
/bin/ld: vrend_renderer.c:(.text+0xfa89): undefined reference to `virgl_egl_image_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_destroy_context':
vrend_renderer.c:(.text+0x12aa7): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x12adf): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x12aff): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_fini':
vrend_renderer.c:(.text+0x12bc5): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x12c55): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_create_fence':
vrend_renderer.c:(.text+0x163bb): undefined reference to `virgl_egl_fence_create'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_check_fences':
vrend_renderer.c:(.text+0x167ac): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x167f3): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x1681f): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_init':
vrend_renderer.c:(.text+0x198a3): undefined reference to `virgl_egl_supports_fences'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_reset':
vrend_renderer.c:(.text+0x19cf5): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: vrend_renderer.c:(.text+0x19d85): undefined reference to `virgl_egl_fence_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_pipe_resource_set_type':
vrend_renderer.c:(.text+0x1a395): undefined reference to `virgl_gbm_convert_format'
/bin/ld: vrend_renderer.c:(.text+0x1a3d5): undefined reference to `virgl_egl_image_from_dmabuf'
/bin/ld: vrend_renderer.c:(.text+0x1a4fa): undefined reference to `virgl_egl_image_destroy'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_create_ctx0_fence':
vrend_renderer.c:(.text+0x1a6f3): undefined reference to `virgl_egl_fence_create'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `vrend_renderer_export_ctx0_fence':
vrend_renderer.c:(.text+0x1a8bb): undefined reference to `virgl_egl_export_fence'
/bin/ld: vrend_renderer.c:(.text+0x1a923): undefined reference to `virgl_egl_export_signaled_fence'
/bin/ld: src/libvirgl.a(vrend_renderer.c.o): in function `do_wait':
vrend_renderer.c:(.text+0x1599): undefined reference to `virgl_egl_client_wait_fence'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_init':
vrend_winsys.c:(.text+0x55): undefined reference to `virgl_gbm_init'
/bin/ld: vrend_winsys.c:(.text+0x7d): undefined reference to `virgl_egl_init'
/bin/ld: vrend_winsys.c:(.text+0xaf): undefined reference to `virgl_gbm_fini'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_cleanup':
vrend_winsys.c:(.text+0xf8): undefined reference to `virgl_egl_destroy'
/bin/ld: vrend_winsys.c:(.text+0x11e): undefined reference to `virgl_gbm_fini'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_has_gl_colorspace':
vrend_winsys.c:(.text+0x237): undefined reference to `virgl_has_egl_khr_gl_colorspace'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_create_context':
vrend_winsys.c:(.text+0x19b): undefined reference to `virgl_egl_create_context'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_destroy_context':
vrend_winsys.c:(.text+0x1c3): undefined reference to `virgl_egl_destroy_context'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_make_context_current':
vrend_winsys.c:(.text+0x218): undefined reference to `virgl_egl_make_context_current'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_get_fourcc_for_texture':
vrend_winsys.c:(.text+0x27f): undefined reference to `virgl_egl_get_fourcc_for_texture'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_get_fd_for_texture':
vrend_winsys.c:(.text+0x2a9): undefined reference to `virgl_egl_get_fd_for_texture'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_get_fd_for_texture2':
vrend_winsys.c:(.text+0x2df): undefined reference to `virgl_egl_get_fd_for_texture2'
/bin/ld: src/libvirgl.a(vrend_winsys.c.o): in function `vrend_winsys_different_gpu':
vrend_winsys.c:(.text+0x319): undefined reference to `virgl_egl_different_gpu'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
root@localhost:~/virglrenderer/build#
Edited by Gert Wollny