找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 13267|回复: 7

新手求助:ACE 6.1在Linux下编译的问题(expected constructor, destructor...)

[复制链接]
发表于 2012-7-24 10:04:49 | 显示全部楼层 |阅读模式
列位大侠:
我最近刚刚接触ACE,在cygwin下成功编译并运行select Reactor例子后,到Linux服务器环境下编译,按照ACE压缩包里自带的ACE-INSTALL.html里的Build and Install on Unix章节进行配置之后,进入ace目录进行make,结果报下列错误,我在以前的帖子中没有搜到类似错误:
[euronetcrm@localhost ACE_wrappers]$ cd ace
[euronetcrm@localhost ace]$ make
make[1]: Entering directory `/home/euronetcrm/develop/ACE_wrappers/ace'

GNUmakefile: /home/euronetcrm/develop/ACE_wrappers/ace/GNUmakefile.ACE MAKEFLAGS=w

g++ -fvisibility=hidden -fvisibility-inlines-hidden -O3 -ggdb -pthread -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE   -I/home/euronetcrm/develop/ACE_wrappers -D__ACE_INLINE__ -I.. -DACE_BUILD_DLL  -c -fPIC -o .shobj/Local_Name_Space.o Local_Name_Space.cpp
在包含自 /usr/lib/gcc/x86_64-asianux-linux/4.1.2/../../../../include/c++/4.1.2/backward/new.h:33 的文件中,
                 从 /home/euronetcrm/develop/ACE_wrappers/ace/Global_Macros.h:914,
                 从 /home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:23,
                 从 /home/euronetcrm/develop/ACE_wrappers/ace/Malloc.h:24,
                 从 /home/euronetcrm/develop/ACE_wrappers/ace/Malloc_T.h:18,
                 从 /home/euronetcrm/develop/ACE_wrappers/ace/Local_Name_Space.h:20,
                 从 Local_Name_Space.cpp:3:
/usr/lib/gcc/x86_64-asianux-linux/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h:32:2: 警告:#warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/home/euronetcrm/develop/ACE_wrappers/ace/config.h:1: 错误:expected constructor, destructor, or type conversion before string constant
/home/euronetcrm/develop/ACE_wrappers/ace/config-macros.h:340: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/os_include/sys/os_types.h:126: 错误:相互冲突的声明 ‘typedef int ssize_t’
/usr/include/sys/types.h:110: 错误:‘ssize_t’ 早先被声明为 ‘typedef __ssize_t ssize_t’
/home/euronetcrm/develop/ACE_wrappers/ace/os_include/os_stdio.h:75: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_Log_Msg_Attributes.h:53: 错误:ISO C++ 不允许声明无类型的 ‘ostream’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_Log_Msg_Attributes.h:53: 错误:expected ‘;’ before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_Log_Msg_Attributes.inl: In constructor ‘ACE_OS_Log_Msg_Attributes::ACE_OS_Log_Msg_Attributes()’:
/home/euronetcrm/develop/ACE_wrappers/ace/OS_Log_Msg_Attributes.inl:9: 错误:类 ‘ACE_OS_Log_Msg_Attributes’ 没有名为 ‘ostream_’ 的字段
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h: At global scope:
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:345: 错误:‘ostream’ 未声明
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:352: 错误:‘ostream’ 未声明
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:355: 错误:ISO C++ 不允许声明无类型的 ‘ostream’
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:355: 错误:expected ‘;’ before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:468: 错误:‘ostream’ 未声明
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:610: 错误:ISO C++ 不允许声明无类型的 ‘ostream’
/home/euronetcrm/develop/ACE_wrappers/ace/Log_Msg.h:610: 错误:expected ‘;’ before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/os_include/os_ucontext.h:40: 错误:相互冲突的声明 ‘typedef int ucontext_t’
/usr/include/sys/ucontext.h:143: 错误:‘ucontext_t’ 早先被声明为 ‘typedef struct ucontext ucontext_t’
/home/euronetcrm/develop/ACE_wrappers/ace/os_include/os_time.h:58: 错误:‘struct timespec’ 重定义
/usr/include/time.h:122: 错误:‘struct timespec’ 的上一个定义
/home/euronetcrm/develop/ACE_wrappers/ace/os_include/os_time.h:64: 错误:invalid type in declaration before ‘;’ token
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.h:376: 错误:expected initializer before ‘&’ token
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl: In member function ‘void ACE_Time_Value::set(const timespec_t&)’:
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl:90: 错误:对成员 ‘tv_sec’ 的请求出现在 ‘tv’ 中,而后者具有非类类型 ‘const int’
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl:91: 错误:对成员 ‘tv_nsec’ 的请求出现在 ‘tv’ 中,而后者具有非类类型 ‘const int’
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl: In member function ‘ACE_Time_Value::operator timespec_t() const’:
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl:274: 错误:对成员 ‘tv_sec’ 的请求出现在 ‘tv’ 中,而后者具有非类类型 ‘timespec_t’
/home/euronetcrm/develop/ACE_wrappers/ace/Time_Value.inl:276: 错误:对成员 ‘tv_nsec’ 的请求出现在 ‘tv’ 中,而后者具有非类类型 ‘timespec_t’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h: At global scope:
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:89: 警告:‘close’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:89: 错误:‘ACE_OS::close’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:89: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:92: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:95: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:98: 警告:‘dup2’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:98: 错误:‘ACE_OS::dup2’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:98: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:99: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:99: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:141: 警告:‘fsync’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:141: 错误:‘ACE_OS::fsync’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:141: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 警告:‘ftruncate’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 错误:‘ACE_OS::ftruncate’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:203: 警告:‘lseek’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:203: 错误:‘ACE_OS::lseek’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:203: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:204: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:205: 错误:expected primary-expression before ‘int’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:205: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:223: 警告:‘pipe’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:223: 错误:‘ACE_OS::pipe’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:223: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:226: 警告:‘pread’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:226: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:227: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:228: 错误:expected primary-expression before ‘nbyte’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:229: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:229: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:232: 警告:‘pwrite’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:232: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:233: 错误:expected primary-expression before ‘const’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:234: 错误:expected primary-expression before ‘nbyte’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:235: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:235: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 警告:‘read’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 错误:‘ACE_OS::read’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:239: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:240: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:240: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:243: 警告:‘read’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:243: 错误:‘ACE_OS::read’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:243: 错误:redefinition of ‘ssize_t ACE_OS::read’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 错误:‘ssize_t ACE_OS::read’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:243: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:244: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:245: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:246: 错误:expected primary-expression before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:246: 错误:expected primary-expression before ‘)’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:257: 警告:‘read_n’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:257: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:258: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:259: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:260: 错误:expected primary-expression before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:260: 错误:‘bytes_transferred’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:260: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:339: 警告:‘write’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:339: 错误:‘ACE_OS::write’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:339: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:340: 错误:expected primary-expression before ‘const’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:341: 错误:expected primary-expression before ‘nbyte’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:341: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:344: 警告:‘write’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:344: 错误:‘ACE_OS::write’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:344: 错误:redefinition of ‘ssize_t ACE_OS::write’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:339: 错误:‘ssize_t ACE_OS::write’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:344: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:345: 错误:expected primary-expression before ‘const’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:346: 错误:expected primary-expression before ‘nbyte’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:347: 错误:expected primary-expression before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:347: 错误:expected primary-expression before ‘)’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:357: 警告:‘write_n’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:357: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:358: 错误:expected primary-expression before ‘const’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:359: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:360: 错误:expected primary-expression before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:360: 错误:‘bytes_transferred’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:360: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:43: 警告:‘fcntl’ 已初始化,却又被声明为 ‘extern’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:43: 错误:‘ACE_OS::fcntl’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:43: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:44: 错误:expected primary-expression before ‘int’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:45: 错误:expected primary-expression before ‘long’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:45: 错误:initializer 表达式列表被看作复合表达式
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:54: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.inl:10: 错误:‘ACE_OS::fcntl’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.inl:10: 错误:redefinition of ‘int ACE_OS::fcntl’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.h:43: 错误:‘int ACE_OS::fcntl’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.inl:10: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.inl:10: 错误:expected primary-expression before ‘int’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_fcntl.inl:10: 错误:expected primary-expression before ‘long’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_stdlib.h:222: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_stdlib.inl:214: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:184: 错误:‘ACE_OS::close’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:184: 错误:redefinition of ‘int ACE_OS::close’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:89: 错误:‘int ACE_OS::close’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:184: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:194: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:219: 错误:‘ACE_HANDLE’ 没有命名一个类型
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:253: 错误:‘ACE_OS::dup2’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:253: 错误:redefinition of ‘int ACE_OS::dup2’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:98: 错误:‘int ACE_OS::dup2’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:253: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:253: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:364: 错误:‘ACE_OS::fsync’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:364: 错误:redefinition of ‘int ACE_OS::fsync’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:141: 错误:‘int ACE_OS::fsync’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:364: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:378: 错误:‘ACE_OS::ftruncate’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:378: 错误:redefinition of ‘int ACE_OS::ftruncate’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:144: 错误:‘int ACE_OS::ftruncate’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:378: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:378: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:639: 错误:‘ACE_OS::lseek’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:639: 错误:redefinition of ‘ACE_OFF_T ACE_OS::lseek’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:203: 错误:‘ACE_OFF_T ACE_OS::lseek’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:639: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:639: 错误:expected primary-expression before ‘offset’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:639: 错误:expected primary-expression before ‘int’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:722: 错误:‘ACE_OS::read’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:722: 错误:redefinition of ‘ssize_t ACE_OS::read’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 错误:‘ssize_t ACE_OS::read’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:722: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:722: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:722: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:762: 错误:‘ACE_OS::read’ 声明为 ‘inline’ variable
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:762: 错误:redefinition of ‘ssize_t ACE_OS::read’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.h:238: 错误:‘ssize_t ACE_OS::read’ 已在此定义过
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:762: 错误:‘ACE_HANDLE’ 在此作用域中尚未声明
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:762: 错误:expected primary-expression before ‘void’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:762: 错误:expected primary-expression before ‘len’
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:763: 错误:expected primary-expression before ‘*’ token
/home/euronetcrm/develop/ACE_wrappers/ace/OS_NS_unistd.inl:763: 错误:‘overlapped’ 在此作用域中尚未声明
/usr/lib/gcc/x86_64-asianux-linux/4.1.2/../../../../include/c++/4.1.2/typeinfo:40: 错误:expected declaration before end of line
make[1]: *** [.shobj/Local_Name_Space.o] 错误 1
make[1]: Leaving directory `/home/euronetcrm/develop/ACE_wrappers/ace'
make: *** [ACE] 错误 2
烦请有经验的专家帮忙指点下,先谢过。
 楼主| 发表于 2012-7-25 09:26:21 | 显示全部楼层
我就是按安装说明中如下步骤配置,编译的:

Using the Traditional ACE/GNU Configuration
Here's what you need to do to build ACE using GNU Make and ACE's traditional per-platform configuration method:

Install GNU make 3.79.1 or greater on your system (available via http anonymous ftp from ftp.gnu.org in the pub/gnu/make/ directory). You must use GNU make when using ACE's traditional per-platform configuration method or ACE won't compile.
Add an environment variable called ACE_ROOT that contains the name of the root of the directory where you keep the ACE wrapper source tree. The ACE recursive Makefile scheme needs this information. There are several ways to set the ACE_ROOT variable. For example:
TSCH/CSH: setenv ACE_ROOT /home/cs/faculty/schmidt/ACE_wrappers
BASH or Bourne Shell: ACE_ROOT=/home/cs/faculty/schmidt/ACE_wrappers; export ACE_ROOT
If you're building a number of versions of ACE, however, (e.g., for different OS platforms or for different releases of ACE) you might use the following approach (assuming TCSH/CSH):

setenv ACE_ROOT $cwd
Create a configuration file, $ACE_ROOT/ace/config.h, that includes the appropriate platform/compiler-specific header configurations from the ACE source directory. For example:
#include "ace/config-linux.h"
The platform/compiler-specific configuration file contains the #defines that are used throughout ACE to indicate which features your system supports. See the $ACE_ROOT/ace/README file for a description of these macro settings. If you desire to add some site-specific or build-specific changes, you can add them to your config.h file; place them before the inclusion of the platform-specific header file.
There are config files for most versions of UNIX. If there isn't a version of this file that matches your platform/compiler, you'll need to make one. Please send email to the ace-users list if you get it working so it can be added to the master ACE release.

Create a build configuration file, $ACE_ROOT/include/makeinclude/platform_macros.GNU, that contains the appropriate platform/compiler-specific Makefile configurations, e.g.,
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
This file contains the compiler and Makefile directives that are platform/compiler-specific. If you'd like to add make options, you can add them before including the platform-specific configuration.
NOTE! There really is not a # character before 'include' in the platform_macros.GNU file. # is a comment character.

If you wish to install ACE (using "make install"), set the installation prefix in platform_macros.GNU.
INSTALL_PREFIX = /usr/local
Headers will be installed to $INSTALL_PREFIX/include, executables to $INSTALL_PREFIX/bin, documentation and build system files to $INSTALL_PREFIX/share and libraries to $INSTALL_PREFIX/lib. The library directory can be customized by setting INSTALL_LIB (for example, INSTALL_LIB=lib64). With INSTALL_PREFIX set, RPATH will be enabled for all executables and shared libraries. To disable RPATH (for example, if $INSTALL_PREFIX/$INSTALL_LIB is already a system-known location for shared libraries such as those listed in /etc/ld.so.conf), set the make macro install_rpath to 0 by adding install_rpath=0 to platform_macros.GNU.
Note that because ACE builds shared libraries, you'll need to set LD_LIBRARY_PATH (or equivalent for your platform) to the directory where binary version of the ACE library is built into. For example, you probably want to do something like the following:
% setenv LD_LIBRARY_PATH $ACE_ROOT/lib:$LD_LIBRARY_PATH
When all this is done, hopefully all you'll need to do is type:
% make
at the ACE_ROOT directory. This will build the ACE library, tests, the examples, and the sample applications. Building the entire ACE release can take a long time and consume lots of disk space, however. Therefore, you might consider cd'ing into the $ACE_ROOT/ace directory and running make there to build just the ACE library. As a sanity check, you might also want to build and run the automated "one-button" tests in $ACE_ROOT/tests. Finally, if you're also planning on building TAO, you should build the gperf perfect hash function generator application in $ACE_ROOT/apps/gperf.
If you've set the INSTALL_PREFIX before building, now run
% make install
发表于 2012-7-25 09:41:38 | 显示全部楼层
用第一种办法编译试试:Building ACE with GNU Autoconf
 楼主| 发表于 2012-7-25 09:59:54 | 显示全部楼层
winston 发表于 2012-7-25 09:41
用第一种办法编译试试:Building ACE with GNU Autoconf

不好意思,我下的这版ACE代码中的ACE-INSTALL.html,没有Building ACE with GNU Autoconf.这一节,不知是不是不支持了,您能把该节的步骤说明贴上来吗?我试试看
发表于 2012-7-25 11:34:33 | 显示全部楼层
奇怪,你用的ACE是什么版本?
 楼主| 发表于 2012-7-25 13:31:52 | 显示全部楼层
winston 发表于 2012-7-25 11:34
奇怪,你用的ACE是什么版本?

我从VERSION文件中粘出来的版本:This is ACE version 6.1.0, released Wed Mar 07 09:04:40 CET 2012
 楼主| 发表于 2012-7-25 14:40:09 | 显示全部楼层
Qt4ever 发表于 2012-7-25 13:31
我从VERSION文件中粘出来的版本:This is ACE version 6.1.0, released Wed Mar 07 09:04:40 CET 2012 ...

6.1是最新release,请问您用的是哪个版本,我去下一个旧点儿的版本
发表于 2012-7-25 16:15:47 | 显示全部楼层
6.0
下面是贴的说明:
Building ACE with GNU Autoconf

GNU Autoconf support is available in the ACE and ACE+TAO distributions in the DOC group website. Support for Autoconf is not included in distributions that contain CIAO.

GNU Autoconf support has been partially present in a number of ACE versions. However, ACE 5.4 was the first version that supported it in earnest. The range of platforms on which GNU autoconf support is regularly tested is not as broad as for the traditional configuration method, so you should be careful to test the resulting ACE library before using it in your applications. You can review the build scoreboard to check the currently tested set of autoconfigured platforms (look for autoconf in the platform name). Any help you can lend to improve the ACE build process using GNU Autoconf would be very much appreciated. Please send any fixes to the ACE users mailing list using the standard PROBLEM-REPORT-FORM.

The kit has been bootstrapped so you do not need to install the GNU Autotools (autoconf, automake, libtool) unless you want to participate in testing and developing this process further or if you are working directly off of sources in the ACE subversion repository. To simply configure and build ACE, do:

cd to the top-level ACE_wrappers directory.
Create a subdirectory to hold your build's configuration and built ACE version, and then change to the new directory:
       mkdir build
       cd build
Note that you do not run the create_ace_build.pl utility mentioned in the Cloning the Source Tree section. The configure script takes care of creating all files and links that are needed.
Configure ACE for your platform by issuing the following command:
       ../configure [options]
options can be a variable setting (such as setting CXX to your C++ compiler command) any standard GNU configure options, or any of the following ACE configure options (default values are in parentheses):
--enable-alloca (no): Enable alloca() support.
--enable-debug (yes): Build ACE with debugging support.
--enable-exceptions (yes): Build ACE with C++ exception support compiled in.
--enable-fast (no): Use the Sun C++ -fast option to build. Only used on Solaris.
--enable-ipv4-ipv6 (no): Enable IPv4/IPv6 migration support.
--enable-ipv6 (no): Enable IPv6 support.
--enable-inline (yes): Enable inline functions.
--enable-optimize (yes): Enable building optimized.
--enable-prof (no): Enable profiling support.
--enable-purify (no): Build with support for IBM Rational Purify.
--enable-quantify (no): Build with support for IBM Rational Quantify.
--enable-repo (no): Enable the GNU g++ -frepo option. Only useful for pre-3.0 g++.
--enable-stdcpplib (yes): Build with support for the standard C++ library, as opposed to the older iostreams library.
--enable-log-msg-prop (yes): Enable ACE_Log_Msg property propagation to ACE-created threads.
--enable-logging (yes): Enable the ACE logging macros.
--enable-malloc-stats (no): Compile in additional code for collecting memory allocation statistics.
--enable-pi-pointers (yes): Enable position-independent pointers for shared memory classes.
--enable-probe (no): Enable the ACE_Timeprobe class.
--enable-reentrant (yes): Enable use of platform's reentrant functions.
--enable-static-obj-mgr (yes): Enable use of a static ACE_Object_Manager.
--enable-threads (yes): Enable threading support.
--enable-verb-not-sup (no): Enable verbose ENOTSUP reports at run time.
--enable-trace (no): Enable ACE execution tracing support.
--enable-fl-reactor (no): Enable support for the ACE_FlReactor class.
--enable-qt-reactor (no): Enable support for the ACE_QtReactor class.
--enable-tk-reactor (no): Enable support for the ACE_TkReactor class.
--enable-xt-reactor (no): Enable support for the ACE_XtReactor class.
--enable-gperf (yes): Build the implementation of gperf that comes with ACE.
--enable-qos (no): Include the ACE_QoS library when building ACE.
--enable-ssl (yes): Include the ACE_SSL library when building ACE. Requires the SSL components to be available using the compiler's and linker's default search directories.
--with-openssl: Specifies the root directory of the OpenSSL installation; expects the specified directory to have include and lib subdirectories. To specify other locations for the header and libraries, use one or both of the following.
--with-openssl-include: Specify the directory containing the OpenSSL header files.
--with-openssl-libdir: Specify the directory containing the OpenSSL libraries.
--with-tli-device (/dev/tcp): Specifies the device name for opening a TLI device at run time.
Build ACE by typing make.
(Optional) Install ACE by typing make install.
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-12-22 16:27 , Processed in 0.023711 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表