cups arm cross compilation error:未知类型名称'gss_OID'

时间:2013-10-25 06:59:31

标签: linux arm cross-compiling embedded-linux cups

我正在尝试为Ezsdk sitara linux 6.0交叉编译CUPS,
我跟着

source /home/shihab/ti-sdk-beagleboard-06.00.00.00/linux-devkit/environment-setup

./configure --host=i686 

make

但是在make命令上显示错误。 日志的错误部分:

Making all in cups...
Compiling adminutil.c...
In file included from cups-private.h:29:0,
                 from adminutil.c:33:
http-private.h:299:3: error: unknown type name ‘gss_OID’
http-private.h:300:3: error: unknown type name ‘gss_ctx_id_t’
http-private.h:301:3: error: unknown type name ‘gss_name_t’
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
make[1]: *** [adminutil.o] Error 1
make: *** [all] Error 1
[linux-devkit]:~/cups-1.7.0> 

进行交叉编译需要做什么?

1 个答案:

答案 0 :(得分:1)

您调用configure脚本是错误的。对于交叉编译,--host应该是交叉编译器的前缀。例如:

 ./configure --host=arm-linux-gnueabi

此外,您可能需要将一些选项传递给CUPS的configure脚本以禁用某些组件。例如,--disable-gssapi将禁用对Kerberos的支持,并可能修复您的“gss”错误。