Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428448 - dev-libs/libdbusmenu-0.6.2: libdbusmenu-glib.so: undefined reference to `g_variant_new_fixed_array'
Summary: dev-libs/libdbusmenu-0.6.2: libdbusmenu-glib.so: undefined reference to `g_va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ayatana Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 16:26 UTC by Markus Preis
Modified: 2012-08-05 10:40 UTC (History)
2 users (show)

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


Attachments
Build Log (build.log,14.35 KB, text/plain)
2012-07-28 16:28 UTC, Markus Preis
Details
emerge info (emerge.info,6.62 KB, text/plain)
2012-07-28 16:28 UTC, Markus Preis
Details
emerge --info '=dev-libs/libdbusmenu-0.6.2' (emerge.info2,6.73 KB, text/plain)
2012-07-28 16:29 UTC, Markus Preis
Details
emerge -pqv '=dev-libs/libdbusmenu-0.6.2 (emerge.pqv,95 bytes, text/plain)
2012-07-28 16:31 UTC, Markus Preis
Details
ebuild environment (emerge.env,86.06 KB, text/plain)
2012-07-28 16:32 UTC, Markus Preis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Preis 2012-07-28 16:26:43 UTC
ERROR: dev-libs/libdbusmenu-0.6.2 failed (compile phase):


Reproducible: Always

Steps to Reproduce:
1.dev-libs/libdbusmenu
2.
3.
Actual Results:  
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -Wall -Werror -Wno-error=deprecated-declarations -DG_LOG_DOMAIN="\"LIBDBUSMENU-GLIB\"" -O2 -pipe -Wno-Werror -c -o libdbusmenu_glib_la-menuitem-marshal.lo `test -f 'menuitem-marshal.c' || echo './'`menuitem-marshal.c
cc1: warnings being treated as errors
menuitem.c: In function ‘dbusmenu_menuitem_property_set_byte_array’:
menuitem.c:1150:3: error: implicit declaration of function ‘g_variant_new_fixed_array’
menuitem.c:1150:11: error: assignment makes pointer from integer without a cast
At top level:
cc1: error: unrecognized command line option "-Wno-Werror"
make[3]: *** [libdbusmenu_glib_la-menuitem.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Werror -Wno-error=deprecated-declarations -DG_LOG_DOMAIN=\"LIBDBUSMENU-GLIB\" -O2 -pipe -Wno-Werror -c menuitem-marshal.c  -fPIC -DPIC -o .libs/libdbusmenu_glib_la-menuitem-marshal.o


Expected Results:  
merge without error
Comment 1 Markus Preis 2012-07-28 16:28:25 UTC
Created attachment 319534 [details]
Build Log
Comment 2 Markus Preis 2012-07-28 16:28:51 UTC
Created attachment 319536 [details]
emerge info
Comment 3 Markus Preis 2012-07-28 16:29:47 UTC
Created attachment 319538 [details]
emerge --info '=dev-libs/libdbusmenu-0.6.2'
Comment 4 Markus Preis 2012-07-28 16:31:37 UTC
Created attachment 319540 [details]
emerge -pqv '=dev-libs/libdbusmenu-0.6.2
Comment 5 Markus Preis 2012-07-28 16:32:41 UTC
Created attachment 319542 [details]
ebuild environment
Comment 6 Markus Preis 2012-07-28 16:33:37 UTC
emerge --info see attachments
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-07-28 17:57:25 UTC
yeah, typing error of -Wno-error, fixed now
Comment 8 Markus Preis 2012-07-31 20:10:48 UTC
Now I get the next error:

libtool: link: gcc -o /var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib/tmp-introspectTbQSNE/.libs/Dbusmenu-0.4 -O2 -pipe -Wno-error -pthread /var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib/tmp-introspectTbQSNE/Dbusmenu-0.4.o -Wl,--export-dynamic  -L. ./.libs/libdbusmenu-glib.so -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread
./.libs/libdbusmenu-glib.so: undefined reference to `g_variant_new_fixed_array'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib/tmp-introspectTbQSNE/Dbusmenu-0.4', '-export-dynamic', '-O2', '-pipe', '-Wno-error', '-L.', 'libdbusmenu-glib.la', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib/tmp-introspectTbQSNE/Dbusmenu-0.4.o']' returned non-zero exit status 1
make[3]: *** [Dbusmenu-0.4.gir] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2/libdbusmenu-glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2'
make: *** [all] Error 2
 * ERROR: dev-libs/libdbusmenu-0.6.2 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libdbusmenu-0.6.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libdbusmenu-0.6.2'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2'
 * S: '/var/tmp/portage/dev-libs/libdbusmenu-0.6.2/work/libdbusmenu-0.6.2'
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-08-05 07:44:01 UTC
What version of dev-libs/glib? Works here with 2.32.3.
Tried `emerge -C libdbusmenu` before emerging it (again) yet?
Comment 10 Markus Preis 2012-08-05 10:28:57 UTC
I use the last stable one 2.30.3 

The Version 0.6.2 of libdbusmenu is the onlyone in Portage. My last installed Version is 0.5.1-r300. If I remove this version I fear the new one will not install and I break my system.
What shout I do?

PS I tried to install glib 2.32.4 and now libdbusmenu installed fine without error.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-08-05 10:40:39 UTC
Symbol g-variant-new-fixed-array was introduced by 2.32 wrt:

http://developer.gnome.org/glib/2.33/glib-GVariant.html#g-variant-new-fixed-array

Fixed in Portage by simple dependency adjustment:

+  05 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> libdbusmenu-0.6.2.ebuild:
+  Pull in dev-libs/glib >= 2.32 for symbol g_variant_new_fixed_array wrt
+  #428448 by Markus Preis

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdbusmenu/libdbusmenu-0.6.2.ebuild?r1=1.3&r2=1.4