交叉编译kerberos5

本文介绍了在使用powerpc-linux-uclibc-gcc进行跨编译krb5过程中遇到的问题及解决方法,包括配置选项调整、缓存文件创建等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 1. 下载krb5-1.6-signed.tar包

2.env CC=powerpc-linux-uclibc-gcc

3.env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc  出现:

checking for constructor/destructor attribute support... configure: error: Cannot test for constructor/destructor support when cross compiling

解决办法:

echo krb5_cv_attr_constructor_destructor=yes>linux-cache
env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc --prefix=/usr/local/krb5--cache-file=linux-cache

有出现:
checking for working regcomp... configure: error: Cannot test regcomp when cross compiling

echo ac_cv_func_regcomp=yes>>linux-cache
env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc --prefix=/usr/local/krb5--cache-file=linux-cache

有出现:

checking for POSIX printf positional specification support... configure: error: Cannot test for printf positional argument support when cross compiling

echo ac_cv_printf_positional=yes>>linux-cache

env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc --prefix=/usr/local/krb5--cache-file=linux-cache

有出现:

checking for /etc/environment... configure: error: Cannot check for existence when cross compiling

 echo ac_cv_file__etc_environment=yes>>linux-cache

 echo ac_cv_file__etc_TIMEZONE=yes>>linux-cache

env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc --prefix=/usr/local/krb5--cache-file=linux-cache

 

有出现:

configure: error: Cannot find resolver support routine res_search in -lresolv

 echo ac_cv_lib_resolv_res_search=yes>linux-cache

 

env CC=powerpc-linux-uclibc-gcc ./configure --host=powerpc --prefix=/usr/local/krb5--cache-file=linux-cache

4.make  出现“can not upload ^^^^^^^” 注释掉./include/k5-platform.h的第378行。

5.OK

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值