where is the patch?
where is the fix for cosmic?
I tried "removing only the line, and put the stuff in ppa", and the result is a
build failure.
It has been disabled for this reason
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa/+sourcepub/9428378/+listing-archive-extra
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_LoadLibrary’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:41:5: error:
unknown type name ‘VkExtensionProperties’; did you mean ‘XExtensionHooks’?
VkExtensionProperties *extensions = NULL;
^~~~~~~~~~~~~~~~~~~~~
XExtensionHooks
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:67:13: error:
‘VK_NULL_HANDLE’ undeclared (first use in this function); did you mean
‘VK_DEFINE_HANDLE’?
VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
^~~~~~~~~~~~~~
VK_DEFINE_HANDLE
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:67:13: note:
each undeclared identifier is reported only once for each function it appears in
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:66:18: error:
too many arguments to function ‘(void
(*)(void))_this->vulkan_config.vkGetInstanceProcAddr’
(void
*)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:66:9: error:
invalid use of void expression
(void
*)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:70:18: warning:
implicit declaration of function ‘SDL_Vulkan_CreateInstanceExtensionsList’; did
you mean ‘SDL_Vulkan_GetInstanceExtensions’? [-Wimplicit-function-declaration]
extensions = SDL_Vulkan_CreateInstanceExtensionsList(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SDL_Vulkan_GetInstanceExtensions
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:70:16: warning:
assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast
[-Wint-conversion]
extensions = SDL_Vulkan_CreateInstanceExtensionsList(
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:78:23: error:
‘VK_KHR_SURFACE_EXTENSION_NAME’ undeclared (first use in this function); did
you mean ‘GLX_EXTENSION_NAME’?
if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLX_EXTENSION_NAME
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:78:67: error:
request for member ‘extensionName’ in something not a structure or union
if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:80:28: error:
‘VK_KHR_XCB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
else if(SDL_strcmp(VK_KHR_XCB_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:80:76: error:
request for member ‘extensionName’ in something not a structure or union
else if(SDL_strcmp(VK_KHR_XCB_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:82:28: error:
‘VK_KHR_XLIB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
else if(SDL_strcmp(VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:82:77: error:
request for member ‘extensionName’ in something not a structure or union
else if(SDL_strcmp(VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
extensions[i].extensionName) == 0)
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:88:63: error:
expected ‘)’ before ‘VK_KHR_SURFACE_EXTENSION_NAME’
SDL_SetError("Installed Vulkan doesn't implement the "
^
)
VK_KHR_SURFACE_EXTENSION_NAME " extension");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:94:18: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
videoData->vulkan_xlib_xcb_library = NULL;
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:98:70: error:
expected ‘)’ before ‘VK_KHR_XCB_SURFACE_EXTENSION_NAME’
SDL_SetError("Installed Vulkan doesn't implement either the "
^
)
VK_KHR_XCB_SURFACE_EXTENSION_NAME "extension or the "
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:108:18: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
videoData->vulkan_xlib_xcb_library =
SDL_LoadObject(libX11XCBLibraryName);
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:109:22: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
if(!videoData->vulkan_xlib_xcb_library)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:111:18: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_XGetXCBConnection’
videoData->vulkan_XGetXCBConnection =
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:112:39: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
SDL_LoadFunction(videoData->vulkan_xlib_xcb_library,
"XGetXCBConnection");
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:113:22: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_XGetXCBConnection’
if(!videoData->vulkan_XGetXCBConnection)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:115:39: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
SDL_UnloadObject(videoData->vulkan_xlib_xcb_library);
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_UnloadLibrary’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:132:21: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
if(videoData->vulkan_xlib_xcb_library)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:133:39: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
SDL_UnloadObject(videoData->vulkan_xlib_xcb_library);
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_GetInstanceExtensions’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:150:17: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
if(videoData->vulkan_xlib_xcb_library)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:153:13: error:
‘VK_KHR_SURFACE_EXTENSION_NAME’ undeclared (first use in this function); did
you mean ‘GLX_EXTENSION_NAME’?
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_XCB_SURFACE_EXTENSION_NAME,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLX_EXTENSION_NAME
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:153:44: error:
‘VK_KHR_XCB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_XCB_SURFACE_EXTENSION_NAME,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:155:16:
warning: implicit declaration of function
‘SDL_Vulkan_GetInstanceExtensions_Helper’; did you mean
‘SDL_Vulkan_GetInstanceExtensions_REAL’? [-Wimplicit-function-declaration]
return SDL_Vulkan_GetInstanceExtensions_Helper(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SDL_Vulkan_GetInstanceExtensions_REAL
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:13:
warning: initialization of ‘const char *’ from incompatible pointer type ‘const
char * const*’ [-Wincompatible-pointer-types]
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:13: note:
(near initialization for ‘extensionsForXlib[0]’)
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:13: error:
initializer element is not constant
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:13: note:
(near initialization for ‘extensionsForXlib[0]’)
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:44: error:
‘VK_KHR_XLIB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:44:
warning: initialization of ‘const char *’ from incompatible pointer type ‘const
char * const*’ [-Wincompatible-pointer-types]
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:44: note:
(near initialization for ‘extensionsForXlib[1]’)
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:44: error:
initializer element is not constant
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:161:44: note:
(near initialization for ‘extensionsForXlib[1]’)
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_CreateSurface’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:182:17: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_xlib_xcb_library’
if(videoData->vulkan_xlib_xcb_library)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:184:9: error:
unknown type name ‘PFN_vkCreateXcbSurfaceKHR’; did you mean
‘SDL_CreateRGBSurface’?
PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR =
^~~~~~~~~~~~~~~~~~~~~~~~~
SDL_CreateRGBSurface
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:185:14: error:
‘PFN_vkCreateXcbSurfaceKHR’ undeclared (first use in this function); did you
mean ‘vkCreateXcbSurfaceKHR’?
(PFN_vkCreateXcbSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^~~~~~~~~~~~~~~~~~~~~~~~~
vkCreateXcbSurfaceKHR
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:185:13:
warning: initialization of ‘int’ from ‘const char * const*’ makes integer from
pointer without a cast [-Wint-conversion]
(PFN_vkCreateXcbSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:185:40: error:
expected ‘,’ or ‘;’ before ‘vkGetInstanceProcAddr’
(PFN_vkCreateXcbSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:187:9: error:
unknown type name ‘VkXcbSurfaceCreateInfoKHR’
VkXcbSurfaceCreateInfoKHR createInfo;
^~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:188:9: error:
unknown type name ‘VkResult’
VkResult result;
^~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:191:26: error:
‘VK_KHR_XCB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
SDL_SetError(VK_KHR_XCB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:191:59: error:
expected ‘)’ before string constant
SDL_SetError(VK_KHR_XCB_SURFACE_EXTENSION_NAME
^
)
" extension is not enabled in the Vulkan instance.");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:191:26:
warning: passing argument 1 of ‘SDL_SetError_REAL’ from incompatible pointer
type [-Wincompatible-pointer-types]
SDL_SetError(VK_KHR_XCB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/SDL_rect.h:32,
from include/SDL_video.h:33,
from include/SDL_messagebox.h:26,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/../SDL_sysvideo.h:26,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11video.h:28,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:25:
include/SDL_error.h:41:79: note: expected ‘const char *’ but argument is of
type ‘const char * const*’
extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char
*fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
~~~~~~~~~~~~^~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:191:26: error:
format not a string literal and no format arguments [-Werror=format-security]
SDL_SetError(VK_KHR_XCB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:196:19: error:
request for member ‘sType’ in something not a structure or union
createInfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:196:28: error:
‘VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR’ undeclared (first use in this
function)
createInfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:196:9: warning:
statement with no effect [-Wunused-value]
createInfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:197:19: error:
request for member ‘connection’ in something not a structure or union
createInfo.connection =
videoData->vulkan_XGetXCBConnection(videoData->display);
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:197:42: error:
‘SDL_VideoData’ {aka ‘struct SDL_VideoData’} has no member named
‘vulkan_XGetXCBConnection’
createInfo.connection =
videoData->vulkan_XGetXCBConnection(videoData->display);
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:197:33: error:
called object is not a function or function pointer
createInfo.connection =
videoData->vulkan_XGetXCBConnection(videoData->display);
^~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:197:9: warning:
statement with no effect [-Wunused-value]
createInfo.connection =
videoData->vulkan_XGetXCBConnection(videoData->display);
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:198:23: error:
request for member ‘connection’ in something not a structure or union
if(!createInfo.connection)
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:203:19: error:
request for member ‘window’ in something not a structure or union
createInfo.window = (xcb_window_t)windowData->xwindow;
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:203:30: error:
‘xcb_window_t’ undeclared (first use in this function); did you mean ‘window’?
createInfo.window = (xcb_window_t)windowData->xwindow;
^~~~~~~~~~~~
window
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:203:9: warning:
statement with no effect [-Wunused-value]
createInfo.window = (xcb_window_t)windowData->xwindow;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:203:43: error:
expected ‘;’ before ‘windowData’
createInfo.window = (xcb_window_t)windowData->xwindow;
^~~~~~~~~~
;
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:204:18: error:
called object ‘vkCreateXcbSurfaceKHR’ is not a function or function pointer
result = vkCreateXcbSurfaceKHR(instance, &createInfo,
^~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:184:35: note:
declared here
PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR =
^~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:204:16:
warning: assignment to ‘int’ from ‘const char * const*’ makes integer from
pointer without a cast [-Wint-conversion]
result = vkCreateXcbSurfaceKHR(instance, &createInfo,
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:206:22: error:
‘VK_SUCCESS’ undeclared (first use in this function); did you mean
‘EGL_SUCCESS’?
if(result != VK_SUCCESS)
^~~~~~~~~~
EGL_SUCCESS
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:206:19:
warning: comparison between pointer and integer
if(result != VK_SUCCESS)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:208:62:
warning: implicit declaration of function ‘SDL_Vulkan_GetResultString’; did you
mean ‘SDL_Vulkan_GetDrawableSize’? [-Wimplicit-function-declaration]
SDL_SetError("vkCreateXcbSurfaceKHR failed: %s",
SDL_Vulkan_GetResultString(result));
^~~~~~~~~~~~~~~~~~~~~~~~~~
SDL_Vulkan_GetDrawableSize
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:208:58:
warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type
‘int’ [-Wformat=]
SDL_SetError("vkCreateXcbSurfaceKHR failed: %s",
SDL_Vulkan_GetResultString(result));
~^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%d
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:215:9: error:
unknown type name ‘PFN_vkCreateXlibSurfaceKHR’; did you mean
‘SDL_CreateRGBSurface’?
PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR =
^~~~~~~~~~~~~~~~~~~~~~~~~~
SDL_CreateRGBSurface
libtool: compile: gcc -g -O2
-fdebug-prefix-map=/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1=. -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
-DUSING_GENERATED_CONFIG_H -Iinclude
-I/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/include -idirafter
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/khronos -mmmx -m3dnow -msse -msse2
-msse3 -Wall -fvisibility=hidden -Wdeclaration-after-statement
-Werror=declaration-after-statement -D_REENTRANT -pthread
-I/usr/include/mirclient -I/usr/include/mircookie -I/usr/include/mircore
-I/usr/include/libdrm -Igen -I/usr/include/dbus-1.0
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -I/usr/include/ibus-1.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-D_REENTRANT -DHAVE_LINUX_VERSION_H -c
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11video.c -o
build/SDL_x11video.o >/dev/null 2>&1
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:216:14: error:
‘PFN_vkCreateXlibSurfaceKHR’ undeclared (first use in this function); did you
mean ‘vkCreateXlibSurfaceKHR’?
(PFN_vkCreateXlibSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^~~~~~~~~~~~~~~~~~~~~~~~~~
vkCreateXlibSurfaceKHR
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:216:13:
warning: initialization of ‘int’ from ‘const char * const*’ makes integer from
pointer without a cast [-Wint-conversion]
(PFN_vkCreateXlibSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:216:41: error:
expected ‘,’ or ‘;’ before ‘vkGetInstanceProcAddr’
(PFN_vkCreateXlibSurfaceKHR)vkGetInstanceProcAddr((VkInstance)instance,
^~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:218:9: error:
unknown type name ‘VkXlibSurfaceCreateInfoKHR’
VkXlibSurfaceCreateInfoKHR createInfo;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:219:9: error:
unknown type name ‘VkResult’
VkResult result;
^~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:222:26: error:
‘VK_KHR_XLIB_SURFACE_EXTENSION_NAME’ undeclared (first use in this function)
SDL_SetError(VK_KHR_XLIB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:222:60: error:
expected ‘)’ before string constant
SDL_SetError(VK_KHR_XLIB_SURFACE_EXTENSION_NAME
^
)
" extension is not enabled in the Vulkan instance.");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:222:26:
warning: passing argument 1 of ‘SDL_SetError_REAL’ from incompatible pointer
type [-Wincompatible-pointer-types]
SDL_SetError(VK_KHR_XLIB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/SDL_rect.h:32,
from include/SDL_video.h:33,
from include/SDL_messagebox.h:26,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/../SDL_sysvideo.h:26,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11video.h:28,
from
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:25:
include/SDL_error.h:41:79: note: expected ‘const char *’ but argument is of
type ‘const char * const*’
extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char
*fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
~~~~~~~~~~~~^~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:222:26: error:
format not a string literal and no format arguments [-Werror=format-security]
SDL_SetError(VK_KHR_XLIB_SURFACE_EXTENSION_NAME
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:227:19: error:
request for member ‘sType’ in something not a structure or union
createInfo.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:227:28: error:
‘VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR’ undeclared (first use in this
function)
createInfo.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:227:9: warning:
statement with no effect [-Wunused-value]
createInfo.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:228:19: error:
request for member ‘dpy’ in something not a structure or union
createInfo.dpy = videoData->display;
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:228:9: warning:
statement with no effect [-Wunused-value]
createInfo.dpy = videoData->display;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:229:19: error:
request for member ‘window’ in something not a structure or union
createInfo.window = (xcb_window_t)windowData->xwindow;
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:229:9: warning:
statement with no effect [-Wunused-value]
createInfo.window = (xcb_window_t)windowData->xwindow;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:229:43: error:
expected ‘;’ before ‘windowData’
createInfo.window = (xcb_window_t)windowData->xwindow;
^~~~~~~~~~
;
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:230:18: error:
called object ‘vkCreateXlibSurfaceKHR’ is not a function or function pointer
result = vkCreateXlibSurfaceKHR(instance, &createInfo,
^~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:215:36: note:
declared here
PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR =
^~~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:230:16:
warning: assignment to ‘int’ from ‘const char * const*’ makes integer from
pointer without a cast [-Wint-conversion]
result = vkCreateXlibSurfaceKHR(instance, &createInfo,
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:232:19:
warning: comparison between pointer and integer
if(result != VK_SUCCESS)
^~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:234:59:
warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type
‘int’ [-Wformat=]
SDL_SetError("vkCreateXlibSurfaceKHR failed: %s",
SDL_Vulkan_GetResultString(result));
~^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%d
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:175:31:
warning: variable ‘vkGetInstanceProcAddr’ set but not used
[-Wunused-but-set-variable]
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
^~~~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:174:21:
warning: unused variable ‘windowData’ [-Wunused-variable]
SDL_WindowData *windowData = (SDL_WindowData *)window->driverdata;
^~~~~~~~~~
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_GetInstanceExtensions’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:166:1: warning:
control reaches end of non-void function [-Wreturn-type]
}
^
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c: In function
‘X11_Vulkan_CreateSurface’:
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11vulkan.c:239:1: warning:
control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
make[2]: *** [Makefile:614: build/SDL_x11vulkan.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: gcc -g -O2
-fdebug-prefix-map=/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1=. -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
-DUSING_GENERATED_CONFIG_H -Iinclude
-I/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/include -idirafter
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/khronos -mmmx -m3dnow -msse -msse2
-msse3 -Wall -fvisibility=hidden -Wdeclaration-after-statement
-Werror=declaration-after-statement -D_REENTRANT -pthread
-I/usr/include/mirclient -I/usr/include/mircookie -I/usr/include/mircore
-I/usr/include/libdrm -Igen -I/usr/include/dbus-1.0
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -I/usr/include/ibus-1.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-D_REENTRANT -DHAVE_LINUX_VERSION_H -c
/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1/src/video/x11/SDL_x11window.c -o
build/SDL_x11window.o >/dev/null 2>&1
make[2]: Leaving directory '/<<BUILDDIR>>/libsdl2-2.0.8+dfsg1'
dh_auto_build: make -j4 V=1 returned exit code 2
** Changed in: libsdl2 (Ubuntu)
Assignee: (unassigned) => Gianfranco Costamagna (costamagnagianfranco)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1740517
Title:
SDL2 2.0.6 isn't compiled with Vulkan support
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsdl2/+bug/1740517/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs