FreeBSD6.2下编译ACE5.6.4
来源:互联网 发布:羊毛大衣 知乎 编辑:程序博客网 时间:2024/04/30 02:56
FreeBSD6.2下编译ACE5.6.4
遇到两个错误: 1、
In file included from ../../ace/OS_NS_signal.h:149, from ../../ace/Signal.h:29, from ../../ace/Dev_Poll_Reactor.cpp:5:../../ace/OS_NS_signal.inl: In function ‘int ACE_OS::pthread_sigmask(int, const sigset_t*, sigset_t*)’:../../ace/OS_NS_signal.inl:31: error: ‘::pthread_sigmask’ has not been declaredgmake[3]: *** [libACE_la-Dev_Poll_Reactor.lo] 错误 1gmake[3]: Leaving directory `/data0/install/ACE_wrappers/objdir/ace’gmake[2]: *** [all-recursive] 错误 1gmake[2]: Leaving directory `/data0/install/ACE_wrappers/objdir/ace’gmake[1]: *** [all] 错误 2gmake[1]: Leaving directory `/data0/install/ACE_wrappers/objdir/ace’gmake: *** [all-recursive] 错误 1
解决办法: 打开ACE_wrappers/ace/OS_NS_signal.inl,在头部添加 #include <pthread.h> #include <signal.h>
2、
In file included from ../../ace/OS_NS_netdb.h:142, from ../../ace/ICMP_Socket.cpp:9:../../ace/OS_NS_netdb.inl: In function ‘hostent* ACE_OS::gethostbyaddr_r(const char*, int, int, hostent*, char*, int*)’:../../ace/OS_NS_netdb.inl:189: error: cannot convert ‘int*’ to ‘hostent**’ for argument ‘7′ to ‘int gethostbyaddr_r(const void*, socklen_t, int, hostent*, char*, size_t, hostent**, int*)’../../ace/OS_NS_netdb.inl: In function ‘hostent* ACE_OS::gethostbyname_r(const char*, hostent*, char*, int*)’:
解决办法: 打开ACE_wrappers/build/ace/config.h,在其中添加 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS 注释,ACE_wrappers是刚才使用命令(tar xzf ACE-5.6.4.tar.gz)解压出来的文件 整个安装过程如下:
tar xzf ACE-5.6.4.tar.gzcd ACE_wrappersmkdir buildcd build../configure -enable-staticee ace/config.h( 在这里加入:#define ACE_LACKS_CDR_ALIGNMENT 和 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS )ee ../ace/OS_NS_signal.inl( 在这里加入:#include <pthread.h> 和 #include <signal.h> )makemake install
- FreeBSD6.2下编译ACE5.6.4
- VC6 下编译 ACE5.5
- linux 下编译ACE5.7.5
- ACE5.5 debian 下编译
- Sun CC编译ACE5.6
- freebsd6.2安装图解
- FC 6 + ACE5.6编译过程
- FreeBSD6.2安装配置记录
- 在freebsd6.2下装zenddebugger
- Freebsd6.2 使用 apache2 + rewrite
- UBuntu8.04的ACE5.6编译和环境配置
- FreeBSD6.2的SSH服务配置
- 在Debian Linux下安装ACE5.6菜鸟攻略
- ACE5.6在Vs2005下的安装步骤
- freebsd6.1 下整合安装apache22和resin3实现
- 硬盘安装freebsd6.2的笔记 (转载)
- freebsd6.2的gnome2桌面安装配置手记
- FreeBSD6.2在VMware虚拟机中使用的一些经验总结
- CMP简介
- Linux-2.6.25内核编译简单过程
- Extjs学习
- 美国瑞恩斯大学工商管理硕士博士学位班
- 创造还是研究?——看看你适合当程序员、适合创业吗?
- FreeBSD6.2下编译ACE5.6.4
- E-Leaning简介
- %type %rowtype 区别
- %type %rowtype 区别
- Mql5.0数据库乱码,request 通过get传中文参数乱码,通过url直接下载中文乱码问题
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项
- 介绍一个不错的免费国外php空间
- EJB概述
- 夸平台的秘密:字符串