移植apache2 ARM版 - 交叉编译apr-1.4.8

1. 下载apr-1.4.8, http://mirrors.hust.edu.cn/apache//apr/apr-1.4.8.tar.gz

2. tar zxvf apr-1.4.8.tar.gz

3. cd apr-1.4.8

4. ./configure --host=arm-linux --prefix=/usr/local/arm/4.4.3 --enable-so  ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes apr_cv_process_shared_works=yes apr_cv_mutex_robust_shared=yes apr_cv_tcp_nodelay_with_cork=yes ap_void_ptr_lt_long=no

5. 如果此时make执行编译,会报如下错误

In file included from ./include/apr_strings.h:52,
                 from passwd/apr_getpass.c:23:
./include/apr_want.h:95: error: redefinition of 'struct iovec'
make[1]: *** [passwd/apr_getpass.lo] Error 1
make[1]: Leaving directory `/work/src/apr-1.4.8'
make: *** [all-recursive] Error 1

可以修改include/apr_want.h,注释掉struct iovec的定义即可

6. make

7. make install



你可能感兴趣的:(嵌入式Linux)