仙子狗尾巴花 发表于 2012-02-29 13:39

solaris sparc 安装aspell工具


最近在solaris10上安装 gnu/aspell工具,编译器是gcc 3.4.3,出现如下错误
"prog/check_funs.cpp", line 341: Error: The function "wget_wch" must have a prototype.                                                   
"prog/check_funs.cpp", line 355: Error: KEY_CODE_YES is not defined.      
“prog/check_funs.cpp", line 392: Error: The function "mvwin_wch" must have a prototype.
"prog/check_funs.cpp", line 393: Error: The function "getcchar" must have a prototype.
"prog/check_funs.cpp", line 395: Error: The function "getcchar" must have a prototype.

   如果在check_funs.hpp文件16行添加 #undefHAVE_WIDE_CURSES

   对于aspell-0.60.4软件包,aspell会编译通过,生成可执行文件aspell;

   对于aspell-0.60.3软件包,编译不会通过,会生成以下错误信息!

   Undefined                     first referenced
symbol                           in file
log                                 ./.libs/libaspell.so
sqrt                              ./.libs/libaspell.so
operator new[](unsigned int)      prog/check_funs.o
operator new(unsigned int)          prog/aspell.o
floor                               ./.libs/libaspell.so
std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)./.libs/libaspell.so
vtable for __cxxabiv1::__si_class_type_infoprog/aspell.o
std::__throw_length_error(char const*)prog/aspell.o
operator delete[](void*)            prog/check_funs.o
operator delete(void*)            prog/aspell.o
std::_List_node_base::hook(std::_List_node_base*)./.libs/libaspell.so
std::_List_node_base::unhook()      ./.libs/libaspell.so
__cxa_bad_typeid                  ./.libs/libaspell.so
vtable for __cxxabiv1::__vmi_class_type_info./.libs/libaspell.so
vtable for __cxxabiv1::__class_type_infoprog/aspell.o
std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)./.libs/libaspell.so
__cxa_pure_virtual                  prog/aspell.o
ld: fatal: Symbol referencing errors. No output written to .libs/aspell
collect2: ld returned 1 exit status

不知道原因是什么? 希望能和大家讨论!

                                                         

页: [1]
查看完整版本: solaris sparc 安装aspell工具