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

Logo

更多推荐