我正在尝试在 QP2TERM(类似 AIX 的 PASE 环境)中的 V5R4 上编译 ghostpdl 9.07。
下载并解压包到 /QOpenSys 后,我运行:
CALL QP2TERM
然后在 QP2TERM 中:
./configure --build="powerpc-ibmaix5.3.0.0"
gmake
这以错误结束:
In file included from ../gs/base/gp_psync.c:20:
/usr/include/pthread.h:582: error: parse error before '*' token
/usr/include/pthread.h:585: error: parse error before '*' token
/usr/include/pthread.h:589: error: parse error before '*' token
/usr/include/pthread.h:592: error: parse error before '*' token
/usr/include/pthread.h:595: error: parse error before '*' token
/usr/include/pthread.h:598: error: parse error before '*' token
/usr/include/pthread.h:601: error: parse error before '*' token
/usr/include/pthread.h:604: error: parse error before '*' token
/usr/include/pthread.h:607: error: parse error before '*' token
/usr/include/pthread.h:611: error: parse error before '*' token
/usr/include/pthread.h:614: error: parse error before '*' token
/usr/include/pthread.h:625: error: parse error before '*' token
/usr/include/pthread.h:629: error: parse error before '*' token
/usr/include/pthread.h:652: error: parse error before '*' token
/usr/include/pthread.h:655: error: parse error before '*' token
/usr/include/pthread.h:658: error: parse error before '*' token
/usr/include/pthread.h:661: error: parse error before '*' token
/usr/include/pthread.h:664: error: parse error before '*' token
/usr/include/pthread.h:672: error: parse error before '*' token
/usr/include/pthread.h:675: error: parse error before '*' token
/usr/include/pthread.h:678: error: parse error before '*' token
/usr/include/pthread.h:681: error: parse error before '*' token
/usr/include/pthread.h:689: error: parse error before '*' token
/usr/include/pthread.h:693: error: parse error before '*' token
/usr/include/pthread.h:696: error: parse error before '*' token
gmake[2]: *** [obj/gp_psync.o] Error 1
gmake[2]: Leaving directory `/QOpenSys/ghostpdl-9.07/main'
gmake[1]: *** [pdl-product] Error 2
gmake[1]: Leaving directory `/QOpenSys/ghostpdl-9.07/main'
gmake: *** [pcl] Error 2
一些谷歌搜索让我相信安装 pth-1.4.0-2.aix4.3.ppc.rpm 和 pth-devel-1.4.0-2.aix4.3.ppc.rpm 将有助于纠正问题,但 gmake 产生了相同的结果之后出错。
其他论坛建议旧版本的 gcc 是罪魁祸首 (3.x) 但正在运行:
gcc -v
产量:
Using built-in specs.
Target: powerpc-ibm-aix5.1.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --d
isable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads -
-enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.1.0.0
Thread model: aix
gcc version 4.0.0