Build ACE 5.4.1 with new Proactor

  1. Platform
    suselinux 1.0
    linux kernel 2.6.13
    gcc 4.02
  2. Build ACE with new Proactor

    2.1. copy all files from ace_new/ace to $ACE_ROOT/ace
    2.2. Add following files to <libACE_Demux_la_SOURCES> section of $ACE_ROOT/ace/Makefile.am
           POSIX_AIO_Config.cpp/
           POSIX_AIO_Strategies.cpp /
           POSIX_AIO_Provider.cpp /
           POSIX_AIO_STD_Provider.cpp /
           POSIX_AIO_SGI_Strategy.cpp /
           POSIX_AIO_SUN_Provider.cpp /
           POSIX_AIO_Select_Provider.cpp /
           POSIX_AIO_Select_Strategy.cpp /
           POSIX_AIO_Poll_Strategy.cpp /
           POSIX_AIO_Dev_Poll_Strategy.cpp /
           POSIX_AIO_Event_Poll_Strategy.cpp /
           POSIX_AIO_Linux_RT_Strategy.cpp /
           POIXI_AIO_LINUX_Provider.cpp /
           POSIX_AIO_Processor.cpp /
           POSIX_AIO_Dedicated_Processor.cpp /
           POSIX_AIO_Dispatcher.cp
    2.3 Add following files to <TEMPLATE_FILES> section of $ACE_ROOT/ace/Makefile.am
           POSIX_AIO_Allocator.cpp
    2.4 Add following files to <> seciont of $ACE_ROOT/ace/Makefile.am
           POSIX_AIO_Config.h /
           POSIX_AIO_Allocator.h /
           POSIX_AIO_Strategies.h /
           POSIX_AIO_Provider.h /
           POSIX_AIO_STD_Provider.h /
           POSIX_AIO_SGI_Strategy.h /
           POSIX_AIO_SUN_Provider.h /
           POSIX_AIO_Select_Provider.h /
           POSIX_AIO_Select_Strategy.h /
           POSIX_AIO_Poll_Strategy.h /
           POSIX_AIO_Dev_Poll_Strategy.h /
           POSIX_AIO_Event_Poll_Strategy.h /
           POSIX_AIO_Linux_RT_Strategy.h /
           POIXI_AIO_LINUX_Provider.h /
           POSIX_AIO_Processor.h /
           POSIX_AIO_Dedicated_Processor.h /
           POSIX_AIO_Dispatcher.h
  3. $ACE_ROOT/ace/config.h

    #if defined (_WIN32)
    #  include "config-win32.h"
    #elif defined (linux)
    // uncomment the following line
    // if you want to include LINUX_Provider
    // Linux NAIO (io_getevents/io_submit)
    // must be kernel 2.6
    #  define ACE_HAS_LINUX_LIBAIO

    // uncomment the following line
    // if you want to include Event_Poll_Strategy
    // Linux epoll interface
    // must be kernel 2.6
    #define ACE_HAS_LINUX_EPOLL
    #  include "config-linux.h"
    #elif defined (sun)
    #  include "config-sunos5.8.h"
    #elif defined (__xlC__) || defined (__IBMCPP__)
    //
    // uncomment the following line if you
    // don't want to use AIX native AIO
    //#  define ACE_HAS_AIO_EMULATION
    #  include "config-aix5.1.h"
    #endif
  4. Make ACE
    > cd $ACE_ROOT
    > ./bin/create_ace_build.pl
    > autoreconf -I m4
    > cd build
    > ../configure --enable-ipv6
    > make
    > su
    > make install

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值