Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534192 - www-plugins/gnash-0.8.10_p20131019 - vaapi/VaapiSurface.cpp:66:45: error: invalid conversion from ‘int’ to ‘VASurfaceID* {aka unsigned int*}’
Summary: www-plugins/gnash-0.8.10_p20131019 - vaapi/VaapiSurface.cpp:66:45: error: inv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
: 591016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-01 11:39 UTC by Dennis Schridde
Modified: 2016-08-11 08:45 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,55.17 KB, text/plain)
2015-01-01 11:40 UTC, Dennis Schridde
Details
build.log (build.log,58.69 KB, text/x-log)
2015-01-02 19:25 UTC, Andrew Savchenko
Details
environment (environment,195.61 KB, text/plain)
2015-01-02 19:25 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,9.08 KB, text/plain)
2015-01-02 19:26 UTC, Andrew Savchenko
Details
[PATCH] vaapi-compat (0001-vaapi-compat.patch,695 bytes, patch)
2015-02-06 20:34 UTC, Ville Syrjala
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2015-01-01 11:39:40 UTC
vaapi/VaapiSurface.cpp: In constructor ‘gnash::VaapiSurfaceImpl::VaapiSurfaceImpl(const gnash::VaapiSurface*, unsigned int, unsigned int)’:
vaapi/VaapiSurface.cpp:66:45: error: invalid conversion from ‘int’ to ‘VASurfaceID* {aka unsigned int*}’ [-fpermissive]
                               1, &surface_id);
                                             ^
vaapi/VaapiSurface.cpp:66:45: error: invalid conversion from ‘VASurfaceID* {aka unsigned int*}’ to ‘unsigned int’ [-fpermissive]
vaapi/VaapiSurface.cpp:66:45: error: too few arguments to function ‘VAStatus vaCreateSurfaces(VADisplay, unsigned int, unsigned int, unsigned int, VASurfaceID*, unsigned int, VASurfaceAttrib*, unsigned int)’
In file included from vaapi/vaapi_common.h:27:0,
                 from vaapi/VaapiSurface.h:25,
                 from vaapi/VaapiSurface.cpp:24:
/usr/include/va/va.h:824:1: note: declared here
 vaCreateSurfaces(
 ^
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../libbase -D__STDC_CONSTANT_MACROS -I/usr/include/libavcodec -pipe -O2 -march=athlon64-sse3 -W -Wall -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunu$
Makefile:1388: recipe for target 'libgnashvaapi_la-VaapiSurface.lo' failed


Reproducible: Always
Comment 1 Dennis Schridde 2015-01-01 11:40:58 UTC
Created attachment 392842 [details]
build.log

Using x11-libs/libva-1.4.1
Comment 2 Dennis Schridde 2015-01-01 11:44:50 UTC
Possibly related to bug #459806.
Comment 3 Andrew Savchenko gentoo-dev 2015-01-02 19:25:21 UTC
Created attachment 392996 [details]
build.log

Same problem here:

vaapi/VaapiSurface.cpp: In constructor ‘gnash::VaapiSurfaceImpl::VaapiSurfaceImpl(const gnash::VaapiSurface*, unsigned int, unsigned int)’:
vaapi/VaapiSurface.cpp:66:45: error: invalid conversion from ‘int’ to ‘VASurfaceID* {aka unsigned int*}’ [-fpermissive]
                               1, &surface_id);
                                             ^
vaapi/VaapiSurface.cpp:66:45: error: invalid conversion from ‘VASurfaceID* {aka unsigned int*}’ to ‘unsigned int’ [-fpermissive]
vaapi/VaapiSurface.cpp:66:45: error: too few arguments to function ‘VAStatus vaCreateSurfaces(VADisplay, unsigned int, unsigned int, unsigned int, VASurfaceID*, unsigned int, VASurfaceAttrib*, unsigned int)’

Looks like libva API change.
Comment 4 Andrew Savchenko gentoo-dev 2015-01-02 19:25:49 UTC
Created attachment 392998 [details]
environment
Comment 5 Andrew Savchenko gentoo-dev 2015-01-02 19:26:16 UTC
Created attachment 393000 [details]
emerge --info
Comment 6 Andrew Savchenko gentoo-dev 2015-01-02 19:27:28 UTC
I use libva-1.4.1 configured as follows:

$ eix -e libva
[...]
Installed versions:  1.4.1{tbz2}(06:13:47 PM 01/02/2015)(X drm opengl vdpau -egl -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" VIDEO_CARDS="nvidia -dummy -fglrx -intel")
Comment 7 Ville Syrjala 2015-02-06 20:34:41 UTC
Created attachment 395740 [details, diff]
[PATCH] vaapi-compat

--- /usr/portage/www-plugins/gnash/gnash-0.8.10_p20131019.ebuild	2013-12-04 13:24:48.000000000 +0200
+++ gnash-0.8.10_p20131019.ebuild	2014-12-17 21:04:03.066002008 +0200
@@ -146,6 +146,8 @@
 	# Allow building against npapi-sdk, bug #383071
 	epatch "${FILESDIR}"/${PN}-0.8.10-npapi-sdk.patch
 
+	epatch "${FILESDIR}"/0001-vaapi-compat.patch
+
 	eautoreconf
 }
 src_configure() {


Is how I fixed gnash+libva on my machines.
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-03-26 15:02:12 UTC
This patch is included in snapshot 0.8.10_p20150316
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-08-11 08:45:06 UTC
*** Bug 591016 has been marked as a duplicate of this bug. ***