交叉编译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成功了。

clipboard.png

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

clipboard.png

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

阅读 4.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进