首页 > 交叉编译freeradius

交叉编译freeradius

freeradius的版本是freeradius-server-2.2.3,用configure生成Makefile文件:

./configure --host=arm-marvell-linux-gnueabi --with-openssl-includes=openssl_header_path --with-openssl-libraries=openssl_lib_path

报“cannot run test program while cross compiling”的错误:

checking for OpenSSL version >= 0.9.7... yes
checking OpenSSL library and header version consistency... configure: error: in `/mnt/arm_keygoe_build/freeradius/freeradius-server-2.2.3':
configure: error: cannot run test program while cross compiling
See `config.log' for more details

在网上查了下是因为configure时test程序不能在编译时的机器上运行,所以报错,可以在cache-file中将相关变量赋为“yes”跳过这个错误。
之前在交叉编译xlslib时这样做(将ac_cv_have_pragma_pack_N等变量在cache文件中赋为“yes”),configure成功了。

但查找freeradius的configure,在出错的地方没有找到相关变量。

请问有什么方法可以跳过这个错误?谢谢。

【热门文章】
【热门文章】