aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch
diff options
context:
space:
mode:
authorJavier Viguera <javier.viguera@digi.com>2013-05-21 16:17:06 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2013-05-22 10:03:11 -0300
commitcd4440f608bed5dab5cd6b4d817a90897fc6e4fa (patch)
tree66469129d3946b923f6675ff883d2c0db577319c /recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch
parent7d8a0670054e138b1a42ae06282339dd96bd5a65 (diff)
downloadmeta-fsl-arm-cd4440f608bed5dab5cd6b4d817a90897fc6e4fa.tar.gz
meta-fsl-arm-cd4440f608bed5dab5cd6b4d817a90897fc6e4fa.tar.bz2
meta-fsl-arm-cd4440f608bed5dab5cd6b4d817a90897fc6e4fa.zip
gst-fsl-plugin: fix segfault due to not found library
The gst-fsl-plugin package tries to 'dlopen' a library using the symbolic link that points to the library file. But that symbolic link is only installed with the development package (PN-dev), not with the normal package. This commit adds a patch that uses the soname of the library in dlopen call. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Diffstat (limited to 'recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch')
-rw-r--r--recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch b/recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch
new file mode 100644
index 0000000..6349844
--- /dev/null
+++ b/recipes-multimedia/gst-plugins/gst-fsl-plugin/Use-librarys-SONAME-in-dlopen.patch
@@ -0,0 +1,29 @@
+From: Javier Viguera <javier.viguera@digi.com>
+Date: Tue, 21 May 2013 16:52:52 +0200
+Subject: [PATCH] Use library's SONAME in dlopen
+
+The 'libmfwba.so' symbolic link is only installed with the development
+package, and without that symlink some gstreamer pipelines (mostly using
+mfw_isink) fail with:
+
+Can not open dll, libmfwba.so: cannot open shared object file: No such file or directory.
+Caught SIGSEGV accessing address (nil)
+
+Signed-off-by: Javier Viguera <javier.viguera@digi.com>
+---
+ libs/vss/vss_common.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/vss/vss_common.c b/libs/vss/vss_common.c
+index 757c2fc..2044051 100755
+--- a/libs/vss/vss_common.c
++++ b/libs/vss/vss_common.c
+@@ -86,7 +86,7 @@ static void * g_dlhandle = NULL;
+ void open_allocator_dll()
+ {
+ char * errstr;
+- g_dlhandle = dlopen("libmfwba.so", RTLD_LAZY);
++ g_dlhandle = dlopen("libmfwba.so.0", RTLD_LAZY);
+
+ if (!g_dlhandle) {
+ printf("Can not open dll, %s.\n", dlerror());