g_bit_* linker errors due to inlining errors
- From: Ian Campbell <ijc hellion org uk>
- To: gtk-app-devel-list gnome org
- Subject: g_bit_* linker errors due to inlining errors
- Date: 17 Jan 2002 18:40:04 +0000
Hi, not sure which list is best for glib questions, feel free to tell me
to go elsewhere...
Anuway, I've been having a problem when linking an XMMS plugin which I
wrote (xmms-status-plugin a little status docklet thing). It uses GTK+
(not GNOME since it is a XMMS plugin).
The problem is todo with the inlining of g_bit_storage, g_bit_nth_lsf
and g_bit_nth_msf. I get the following errors from './configure &&
make':
gcc -shared xmms-status-plugin.lo xmms-status-image.lo about.lo
configure.lo -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.so
/usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lXi
-lXext -lX11 -lm -lpthread -Wl,-soname -Wl,libstatusdocklet.so -o
.libs/libstatusdocklet.so
about.lo: In function `g_bit_nth_lsf':
/home/ijc/development/xmms-status-plugin/src/about.c(.text+0x0):
multiple definition of `g_bit_nth_lsf'
xmms-status-image.lo(.text+0x0):/home/ijc/development/xmms-status-plugin/src/xmms-status-image.c: first
defined here
<etc for other functions/source files>
The problem can be worked around by removing -O2 from CFLAGS (e.g.
'CFLAGS="-g" ./configure && make' compiles and links OK)
I run Debian unstable on x86 (glib version 1.2.10-3) but I've had
reports of the same from people on Red Hat 7.2. The plugin is tiny and
is at http://www.hellion.org.uk/xmms-status-plugin if you want to try.
Version 0.8 has the problem for sure.
I've checked bugzilla.gnome.org, debian bugs and various list archives
but found no solution (other than disabling -O2)
Anyone have any clues? Even if it's just to tell me "it's fixed in 1.3"
in which case I can use the work around until I can use 2.0...
Cheers,
Ian.
--
Ian Campbell
Never have so many understood so little about so much.
-- James Burke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]