Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 366045

Summary: app-i18n/ibus-pinyin-1.3.99.20101029 conflict type definition
Product: Gentoo Linux Reporter: Yixun Lan <dlan>
Component: [OLD] UnspecifiedAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: normal CC: cjk, paluszak
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log while emerge fail
emerge --info

Description Yixun Lan archtester gentoo-dev 2011-05-05 04:45:22 UTC
CXX    ibus_engine_pinyin-PYEngine.o
  CXX    ibus_engine_pinyin-PYFallbackEditor.o
In file included from PYEditor.h:27:0,
                 from PYPhoneticEditor.h:25,
                 from PYPinyinEditor.h:24,
                 from PYDoublePinyinEditor.h:24,
                 from PYDoublePinyinEditor.cc:21:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
In file included from PYEditor.h:27:0,
                 from PYEditor.cc:22:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
In file included from PYEditor.h:27:0,
                 from PYEngine.h:29,
                 from PYBopomofoEngine.h:25,
                 from PYBopomofoEngine.cc:22:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
In file included from PYEditor.h:27:0,
                 from PYPhoneticEditor.h:25,
                 from PYBopomofoEditor.h:25,
                 from PYBopomofoEditor.cc:22:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
make[3]: *** [ibus_engine_pinyin-PYDoublePinyinEditor.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [ibus_engine_pinyin-PYEditor.o] Error 1
In file included from PYEditor.h:27:0,
                 from PYEngine.h:29,
                 from PYEngine.cc:23:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
make[3]: *** [ibus_engine_pinyin-PYBopomofoEditor.o] Error 1
make[3]: *** [ibus_engine_pinyin-PYBopomofoEngine.o] Error 1
make[3]: *** [ibus_engine_pinyin-PYEngine.o] Error 1
In file included from PYEditor.h:27:0,
                 from PYFallbackEditor.h:25,
                 from PYFallbackEditor.cc:21:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
make[3]: *** [ibus_engine_pinyin-PYFallbackEditor.o] Error 1
make[3]: Leaving directory `/var/build/portage/app-i18n/ibus-pinyin-1.3.99.20101029/work/ibus-pinyin-1.3.99.20101029/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/build/portage/app-i18n/ibus-pinyin-1.3.99.20101029/work/ibus-pinyin-1.3.99.20101029/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/build/portage/app-i18n/ibus-pinyin-1.3.99.20101029/work/ibus-pinyin-1.3.99.20101029'
make: *** [all] Error 2
emake failed


Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2011-05-05 04:49:59 UTC
Created attachment 272153 [details]
build log while emerge fail
Comment 2 Naohiro Aota gentoo-dev 2011-05-06 07:15:06 UTC
What is your gcc version, CFLAGS and CXXFLAGS?
Comment 3 Yixun Lan archtester gentoo-dev 2011-05-06 11:02:34 UTC
Created attachment 272285 [details]
emerge --info
Comment 4 Yixun Lan archtester gentoo-dev 2011-05-06 11:03:56 UTC
I'm using overlay openoffice-geki, which pull very new boost.
But I have another server which also compile fail, which using boost from official portage, may post log laster...
Comment 5 Naohiro Aota gentoo-dev 2011-05-06 12:35:53 UTC
Seems something wrong with "configure" or gcc.

Could you provide the following?

- output of "cpp -dM -x c++ /dev/null -std=c++0x|grep __GXX_EXPERIMENTAL_CXX0X__"
- /var/build/portage/app-i18n/ibus-pinyin-1.3.99.20101029/work/ibus-pinyin-1.3.99.20101029/config.log
- /var/build/portage/app-i18n/ibus-pinyin-1.3.99.20101029/work/ibus-pinyin-1.3.99.20101029/src/Makefile
Comment 6 Yixun Lan archtester gentoo-dev 2011-05-06 13:46:27 UTC
# cpp -dM -x c++ /dev/null -std=c++0x|grep __GXX_EXPERIMENTAL_CXX0X__
#define __GXX_EXPERIMENTAL_CXX0X__ 1
Comment 7 Naohiro Aota gentoo-dev 2011-05-07 15:16:33 UTC
I've commit 20110217 version and patch for disabling boost build. Please try it.
Comment 8 du yang 2011-06-11 13:28:15 UTC
Hi, here still exists a error on latest version 20110217.

make[3]: Entering directory `/var/tmp/portage/app-i18n/ibus-pinyin-1.3.99.20110217/work/ibus-pinyin-1.3.99.20110217/src'
  CXX    ibus_engine_pinyin-PYBopomofoEditor.o
In file included from PYEditor.h:27:0,
                 from PYPhoneticEditor.h:25,
                 from PYBopomofoEditor.h:25,
                 from PYBopomofoEditor.cc:22:
PYUtil.h:46:18: error: ‘shared_ptr’ is already declared in this scope
make[3]: *** [ibus_engine_pinyin-PYBopomofoEditor.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-i18n/ibus-pinyin-1.3.99.20110217/work/ibus-pinyin-1.3.99.20110217/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/ibus-pinyin-1.3.99.20110217/work/ibus-pinyin-1.3.99.20110217/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/ibus-pinyin-1.3.99.20110217/work/ibus-pinyin-1.3.99.20110217'
make: *** [all] Error 2
emake failed
Comment 9 Naohiro Aota gentoo-dev 2011-06-23 23:34:08 UTC
(In reply to comment #8)
> Hi, here still exists a error on latest version 20110217.

What USE flags are you using for this package? (emerge -pv ibus-pinyin)
and what boost version are you using?
Comment 10 Naohiro Aota gentoo-dev 2011-07-17 06:26:25 UTC
I've add 1.3.99.20110702. Maybe you can try it with USE='-boost'
Comment 11 Jakub Paluszak 2012-03-10 16:04:37 UTC
On my stable system it compiles fine with boost disabled.
Comment 12 Naohiro Aota gentoo-dev 2012-05-16 08:05:47 UTC
Mars fixed as it work with USE=-boost.