Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245237 - media-plugins/gst-plugins-gio doesn't link against GIO library
Summary: media-plugins/gst-plugins-gio doesn't link against GIO library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 07:38 UTC by Mart Raudsepp
Modified: 2008-12-21 17:36 UTC (History)
4 users (show)

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


Attachments
gst-plugins-gio-0.10.21.ebuild (gst-plugins-gio-0.10.21.ebuild,421 bytes, text/plain)
2008-12-06 00:19 UTC, Samuli Suominen (RETIRED)
Details
/usr/portage/eclass/gst-plugins-base.eclass patch to fix bug (gst-plugins-base.eclass.patch,530 bytes, patch)
2008-12-07 18:34 UTC, Brad Allen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2008-11-02 07:38:39 UTC
I get this from gst-inspect-0.10:

(gst-inspect-0.10:523): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstgio.so': /usr/lib64/gstreamer-0.10/libgstgio.so: undefined symbol: g_input_stream_read

There is no DT_NEEDED on libgio in that plugin .so file
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2008-12-05 23:10:44 UTC
(In reply to comment #0)
> I get this from gst-inspect-0.10:
> 
> (gst-inspect-0.10:523): GStreamer-WARNING **: Failed to load plugin
> '/usr/lib64/gstreamer-0.10/libgstgio.so':
> /usr/lib64/gstreamer-0.10/libgstgio.so: undefined symbol: g_input_stream_read
> 
> There is no DT_NEEDED on libgio in that plugin .so file
> 

Same problem here.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 00:16:09 UTC
Hmm,

ssuominen@unique ~ $ gst-inspect-0.10 | grep gio
gio:  giostreamsrc: GIO stream source
gio:  giostreamsink: GIO stream sink
gio:  giosrc: GIO source
gio:  giosink: GIO sink

ssuominen@unique ~ $ qlist -CIv gst-plugins-gio
media-plugins/gst-plugins-gio-0.10.21

But I've got attached ebuild installed atm.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 00:19:22 UTC
Created attachment 174375 [details]
gst-plugins-gio-0.10.21.ebuild

I'm not sure if testing this, while trying to figure out the problem has anything to do with the result it is working now.

NFC.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 06:56:31 UTC
(In reply to comment #3)
> Created an attachment (id=174375) [edit]
> gst-plugins-gio-0.10.21.ebuild
> 
> I'm not sure if testing this, while trying to figure out the problem has
> anything to do with the result it is working now.
> 
> NFC.
> 

And now again, it's not working. How can it even be random?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 07:18:09 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Created an attachment (id=174375) [edit]
> > gst-plugins-gio-0.10.21.ebuild
> > 
> > I'm not sure if testing this, while trying to figure out the problem has
> > anything to do with the result it is working now.
> > 
> > NFC.
> > 
> 
> And now again, it's not working. How can it even be random?
> 

To reply myself, once you load Totem once it starts working.
Comment 6 Brad Allen 2008-12-07 04:28:03 UTC
> To reply myself, once you load Totem once it starts working.

I have a non-Gnome system, so I don't have totem, yet I have almost every gst-plugin installed, yet I get the same error message.

I don't know yet how it's supposed to work, since it has never worked.
Comment 7 Xake 2008-12-07 17:14:11 UTC
I just hit this too.
It seems that invoking 
GIO_LIBS="`pkg-config --libs gio-2.0`" emerge gst-plugins-gio
works for me, so afaics there is something wrong with configure.ac makeing it not link libgstgio to libgio.
Comment 8 Xake 2008-12-07 17:49:25 UTC
And the winner is:

eclass/gst-plugins-base

Becouse that eclass does not pass --enable-experimental to configure the gio-part of configure is never run, leaving libgstgio built with an an incomplete configuration.

this change made it work for me:

--- /var/portage/eclass/gst-plugins-base.eclass	2008-06-29 17:05:59.000000000 +0200
+++ /usr/local/portage/mine/eclass/gst-plugins-base.eclass	2008-12-07 18:42:47.738831698 +0100
@@ -69,7 +69,7 @@
 	done
 
 	cd ${S}
-	econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure"
+	econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" --enable-experimental ${gst_conf} || die "./configure failure"
 
 }
Comment 9 Brad Allen 2008-12-07 18:32:41 UTC
(In reply to comment #8)
> And the winner is:

Bingo.  Please commit.

> eclass/gst-plugins-base
> 
> Becouse that eclass does not pass --enable-experimental to configure the
> gio-part of configure is never run, leaving libgstgio built with an an
> incomplete configuration.
> 
> this change made it work for me:
> 
[I hand-applied this patch omitted]

After patching /usr/portage/eclass/gst-plugins-base.eclass as indicated, and rebuilt (paludis install) media-plugins/gst-plugins-gio-0.10.20:0.10::gentoo, and bingo, it worked.  (i.e., emerge gst-plugins-gio).

Please install the fix,

P.S., How do I tell Paludis to use eclass other than /usr/portage?  (Since /usr/portage gets resynced, my changes lost.)  Of course, when they comit this fix to the portage tree, then everything will be ok.

P.P.S., I'm posting a copy of Xake's patch from comment #8 as an attachment.
Comment 10 Brad Allen 2008-12-07 18:34:04 UTC
Created attachment 174585 [details, diff]
/usr/portage/eclass/gst-plugins-base.eclass patch to fix bug

copied from Xake's comment
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2008-12-21 17:36:21 UTC
+*gst-plugins-gio-0.10.21-r1 (21 Dec 2008)
+
+  21 Dec 2008; <ssuominen@gentoo.org> +gst-plugins-gio-0.10.21-r1.ebuild:
+  Pass --enable-experimental to link against libgio-2.0.so wrt #245237.
+