PCC-F-02081, CMD-LINE: Unterminated option value list or value list was truncated. 错误原因及解决办法


用proc预编译一个.pc文件,提示错误:
PCC-F-02081, CMD-LINE:  Unterminated option value list or value list was truncated.

经调查是因为 pcscfg.cfg 文件里的 sys_include 的内容太长所致。

[root@localhost admin]# cat pcscfg.cfg
sys_include=($ORACLE_HOME/rdbms/public,$ORACLE_HOME/precomp/public,/usr/include,/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/include,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include,/usr/lib64/gcc/x86_64-suse-linux/4.1.0/include,/usr/lib64/gcc/x86_64-suse-linux/4.3/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.4/include)
ltype=short
define=__x86_64__
[root@localhost admin]#


【解决办法】引用 http://bytes.com/topic/oracle/answers/909188-having-problem-pro-compiler 里一网友的回答:

sys_include is one of the options of the proc so the length of this must be small. Therefore, we must put just the necessary elements for example:
sys_include=($ORACLE_HOME/sdk/include,/usr/include,/usr/lib/gcc/i486-linux-gnu/4.4.3/include) in the file /usr/lib/oracle/11.2/client/precomp/admin/pcscfg.cfg
Regards,


你可能感兴趣的:(PCC-F-02081, CMD-LINE: Unterminated option value list or value list was truncated. 错误原因及解决办法)