Rick-ZL / scim-googlepinyin

Automatically exported from code.google.com/p/scim-googlepinyin
1 stars 0 forks source link

compile error ! #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0.   use git to get the source on 2009-9-1
1. ./autogen.sh 
2. ./configure 
3. make 

What is the expected output? What do you see instead?
    Error information :  =====begin here =========
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:
In instantiation of
‘std::binder2nd<std::pointer_to_binary_function<ButtonOption, const
scim::ConfigPointer&, void> >’:
google_imengine_setup.cpp:326:   instantiated from here
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:435:
错误:形成 reference,指向引用类型‘const scim::ConfigPointer&’
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:
In instantiation of ‘std::binder1st<std::pointer_to_binary_function<const
scim::ConfigPointer&, ButtonOption, void> >’:
google_imengine_setup.cpp:343:   instantiated from here
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:401:
错误:形成 reference,指向引用类型‘const scim::ConfigPointer&’
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:
In function ‘std::binder2nd<_Operation> std::bind2nd(const _Operation&,
const _Tp&) [with _Operation =
std::pointer_to_binary_function<ButtonOption, const scim::ConfigPointer&,
void>, _Tp = scim::Pointer<scim::ConfigBase>]’:
google_imengine_setup.cpp:326:   instantiated from here
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:455:
错误:对‘std::binder2nd<std::pointer_to_binary_function<ButtonOption, 
const
scim::ConfigPointer&, void> >::binder2nd(const
std::pointer_to_binary_function<ButtonOption, const scim::ConfigPointer&,
void>&, const scim::Pointer<scim::ConfigBase>&)’的调用没有匹配的函数
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:429:
附注:备选为: 
std::binder2nd<std::pointer_to_binary_function<ButtonOption,
const scim::ConfigPointer&, void> >::binder2nd(const
std::binder2nd<std::pointer_to_binary_function<ButtonOption, const
scim::ConfigPointer&, void> >&)
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:
In function ‘std::binder1st<_Operation> std::bind1st(const _Operation&,
const _Tp&) [with _Operation = std::pointer_to_binary_function<const
scim::ConfigPointer&, ButtonOption, void>, _Tp =
scim::Pointer<scim::ConfigBase>]’:
google_imengine_setup.cpp:343:   instantiated from here
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:421:
错误:对‘std::binder1st<std::pointer_to_binary_function<const
scim::ConfigPointer&, ButtonOption, void> >::binder1st(const
std::pointer_to_binary_function<const scim::ConfigPointer&, ButtonOption,
void>&, const scim::Pointer<scim::ConfigBase>&)’的调用没有匹配的函数
/usr/lib/gcc/x86_64-manbo-linux-gnu/4.2.3/../../../../include/c++/4.2.3/bits/stl
_function.h:395:
附注:备选为: std::binder1st<std::pointer_to_binary_function<const
scim::ConfigPointer&, ButtonOption, void> >::binder1st(const
std::binder1st<std::pointer_to_binary_function<const scim::ConfigPointer&,
ButtonOption, void> >&)
make[3]: *** [googlepinyin_imengine_setup_la-google_imengine_setup.lo] 错误 1
make[3]: Leaving directory `/home/shimingzhou/下载/scim-googlepinyin/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/shimingzhou/下载/scim-googlepinyin/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/shimingzhou/下载/scim-googlepinyin'
make: *** [all] 错误 2

===================end here==========
What version of the product are you using? On what operating system?
Mandriva 2008.1 spring x86_64 system. 
gcc4.2.3 and   gcc4.3  have the same problem 。

my locale zh_CN.UTF-8
rpm -q scim
scim-1.4.7-10mdv2008

rpm -q lib64scim-devel
lib64scim-devel-1.4.7-12mdv2009.0.x86_64.1.x86_64

glibc-2.8-1.20080520.5.4mnb2.x86_64

Please provide any additional information below.

Original issue reported on code.google.com by shimingz...@gmail.com on 1 Sep 2009 at 2:22

GoogleCodeExporter commented 8 years ago
reproduced with gcc version 4.2.4 . i have a nasty fix to workaround this error.

Original comment by tchai...@gmail.com on 1 Sep 2009 at 3:59