Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393687 - app-i18n/im-chooser-1.5.2 - imchooseui.c:51:3: error: redefinition of typedef 'IMChooseUIPrivate' (files/im-chooser-1.5.1-imchooserui.patch not applied)
Summary: app-i18n/im-chooser-1.5.2 - imchooseui.c:51:3: error: redefinition of typedef...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 22:54 UTC by milton
Modified: 2011-12-18 10:27 UTC (History)
1 user (show)

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 milton 2011-12-08 22:54:47 UTC
emerge of im-chooser-1.5.2 fails during compilation.

The fix is to use the "im-chooser-1.5.1-imchooserui.patch" that is already in files/ for this version too. This can be solved by appending the below lines to the 1.5.2 ebuild:
"""
src_prepare() {
        epatch "${FILESDIR}"/im-chooser-1.5.1-imchooserui.patch
        gnome2-src_prepare
}
"""

-- Compilation output:
[...]
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libimchooseui\" -DIMCHOOSE_LOCALEDIR=\"/usr/share/locale\" -DUIDIR=\"/usr/share/imchooseui\" -DBUILDDIR=\"/var/tmp/portage/app-i18n/im-chooser-1.5.2/work/im-chooser-1.5.2/libimchooseui\" -DGSEAL_ENABLE -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DEGG_SM_CLIENT_BACKEND_XSMP -DEGG_SM_CLIENT_BACKEND_DBUS -msse3 -fomit-frame-pointer -O2 -pipe -Wall -Wmissing-prototypes -MT libeggsmclient_la-eggsmclient-xsmp.lo -MD -MP -MF .deps/libeggsmclient_la-eggsmclient-xsmp.Tpo -c eggsmclient-xsmp.c  -fPIC -DPIC -o .libs/libeggsmclient_la-eggsmclient-xsmp.o
imchooseui.c:51:3: error: redefinition of typedef 'IMChooseUIPrivate'
imchooseui.h:41:35: note: previous declaration of 'IMChooseUIPrivate' was here
make[2]: *** [imchooseui.lo] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge =app-i18n/im-chooser-1.5.2

Actual Results:  
Build fails

Expected Results:  
Build completed
Comment 1 Naohiro Aota gentoo-dev 2011-12-18 10:27:57 UTC
aha, gcc has changed its behavior...

http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ce3765bf44e49ef0568a1ad4a0b7f807591d6412

so it worked on my machine with gcc-4.6. :(

Anyway I've applied the suggestion. Thanks.