Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199178 - gnome-extra/gnome-utils-2.18.1 emerge fails - multiple definition of `DBType'
Summary: gnome-extra/gnome-utils-2.18.1 emerge fails - multiple definition of `DBType'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-14 20:39 UTC by Jaime Torres
Modified: 2007-11-15 19:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2007-11-14 20:39:16 UTC
i486-pc-linux-gnu-gcc -shared  .libs/libgdict_1_0_la-gdict-debug.o .libs/libgdict_1_0_la-gdict-context.o .libs/libgdict_1_0_la-gdict-client-context.o .libs/libgdict_1_0_la-gdict-database-chooser.o .libs/libgdict_1_0_la-gdict-defbox.o .libs/libgdict_1_0_la-gdict-entry.o .libs/libgdict_1_0_la-gdict-enum-types.o .libs/libgdict_1_0_la-gdict-marshal.o .libs/libgdict_1_0_la-gdict-source.o .libs/libgdict_1_0_la-gdict-source-loader.o .libs/libgdict_1_0_la-gdict-speller.o .libs/libgdict_1_0_la-gdict-strategy-chooser.o .libs/libgdict_1_0_la-gdict-utils.o  /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so -L/usr/lib /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so  -mtune=i686 -mmmx -mpreferred-stack-boundary=2 -Wl,-soname -Wl,libgdict-1.0.so.5 -o .libs/libgdict-1.0.so.5.0.12
.libs/libgdict_1_0_la-gdict-strategy-chooser.o:(.bss+0x0): multiple definition of `DBType'
.libs/libgdict_1_0_la-gdict-database-chooser.o:(.bss+0x0): first defined here
collect2: ld returned 1 exit status
make[4]: *** [libgdict-1.0.la] Error 1


baobab-baobab-graphwin.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-graphwin.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-baobab-scan.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-scan.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-baobab-treeview.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-treeview.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-baobab-utils.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-utils.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-callbacks.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-callbacks.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-baobab-prefs.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-prefs.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
baobab-baobab-remote-connect-dialog.o:(.bss+0x0): multiple definition of `baobab'
baobab-baobab.o:(.bss+0x0): first defined here
baobab-baobab-remote-connect-dialog.o:(.bss+0x48): multiple definition of `g_fs'
baobab-baobab.o:(.bss+0x48): first defined here
collect2: ld returned 1 exit status
make[3]: *** [baobab] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-utils-2.18.1/work/gnome-utils-2.18.1/baobab/src'




Reproducible: Always




Possible patch:

gnome-dictionary/libgdict/gdict-strategy-chooser.c
-------
enum
{
  STRATEGY_NAME,
  STRATEGY_ERROR
} DBType;
++++++++
enum
{
  STRATEGY_NAME,
  STRATEGY_ERROR
} DBType1;


in baobab.h
------
/* globals */
baobab_application baobab;
baobab_fs g_fs;
+++++++
extern baobab_application baobab;
extern baobab_fs g_fs;
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-14 20:42:22 UTC
please attach your emerge --info
Comment 2 Jaime Torres 2007-11-14 21:32:58 UTC
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.22-gentoo-r9 i686)
=================================================================
System uname: 2.6.22-gentoo-r9 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Timestamp of tree: Mon, 12 Nov 2007 20:01:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe -mmmx -fomit-frame-pointer -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -funit-at-a-time"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe -mmmx -fomit-frame-pointer -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa arts avi berkdb bitmap-fonts bzip2 cairo cli cracklib crypt cups dbus dri dvd fortran fpit gdbm gif gpm gtk iconv ipv6 isdnlog jack jpeg jpeg2k ladspa matroska midi mikmod mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl postgres pppd python qt3 qt4 readline reflection ruby sdl session speex spl ssl svg tablet tcpd theora truetype-fonts type1-fonts unicode usb utempter wacom win32codecs x11 x86 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev fpit keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-11-14 21:48:43 UTC
Reopen if you can reproduce with sane supported flags...

http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/build-environment/index.html
Comment 4 Jaime Torres 2007-11-15 19:08:46 UTC
The "problem" is the gnu gcc C extension -fno-common.

In a purist C compiler, this option is always enabled.

Best regards and thanks for the fastest linux.