Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435408 - dev-libs/totem-pl-parser-3.4.3 does not build without very recent glib (with g_clear_pointer)
Summary: dev-libs/totem-pl-parser-3.4.3 does not build without very recent glib (with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 435416 435418 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-18 12:32 UTC by Marien Zwart (RETIRED)
Modified: 2012-09-18 14:54 UTC (History)
3 users (show)

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


Attachments
build log (build.log,15.97 KB, text/plain)
2012-09-18 12:32 UTC, Marien Zwart (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2012-09-18 12:32:41 UTC
Created attachment 324188 [details]
build log

dev-libs/totem-pl-parser-3.4.3 fails to build like this:

  CCLD     libtotem-plparser-mini.la
  GISCAN TotemPlParser-1.0.gir
./.libs/libtotem-plparser.so: undefined reference to `g_clear_pointer'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/var/tmp/portage/dev-libs/totem-pl-parser-3.4.3/work/totem-pl-parser-3.4.3/plparse/tmp
-introspectRW4m9M/TotemPlParser-1.0', '-export-dynamic', '-Wall', '-Wchar-subscripts', '-Wmissing-declarations', '-Wmissing-prototypes', '-Wnested-externs', '-Wpointer-arith', '-Wcast-align', '-Wsign-compare', '-fno-strict-aliasing', '-ggdb', '-O2', '-march=amdfam10', '-pipe', '/var/tmp/portage/dev-libs/totem-pl-parser-3.4.3/work/totem-pl-parser-3.4.3/plparse/tmp-introspectRW4m9M/TotemPlParser-1.0.o', '-L.', 'libtotem-plparser.la', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgobject-2.0', '-lgthread-2.0', '-lgmodule-2.0', '-lrt', '-lglib-2.0']' returned non-zero exit status 1
make[4]: *** [TotemPlParser-1.0.gir] Error 1

The g_clear_pointer function it is calling is introduced in glib 2.34, which has not been released yet (see http://developer.gnome.org/glib/2.33/api-index-2-34.html ). It is likely the call can just be replaced with "if (mimetype) { g_free (mimetype); mimetype = NULL; }", but upstream should confirm that (and might want to fix this on their end as their configure does not check for this recent a glib).
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-18 13:28:35 UTC
Thanks for noticing! Fixed in tree to allow building with glib-2.32; problem reported upstream at https://bugzilla.gnome.org/show_bug.cgi?id=684292

>  18 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  totem-pl-parser-3.4.3.ebuild,
>  +files/totem-pl-parser-3.4.3-no-g_clear_pointer.patch:
>  Fix build error with <glib-2.33 (bug #435408, thanks to Marien Zwart).
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-18 14:54:15 UTC
*** Bug 435416 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-18 14:54:30 UTC
*** Bug 435418 has been marked as a duplicate of this bug. ***