在 OS/400 V5R4 上为 PASE (AIX) 编译 GhostPDL 时出错

在 OS/400 V5R4 上为 PASE (AIX) 编译 GhostPDL 时出错

我正在尝试在 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    

答案1

问题是 m_setjmp.h(make 将抛出“_UKJBLEN”未在此处声明(不在函数中)错误),您需要将 AIX 升级到 TL5(技术级别 5)。据我所知,这在 V5R4 上的 PASE 中是不可能的,您需要获得一台处于 TL5 的 AIX 机器进行编译;然后您可以在 PASE 中使用已编译的可执行文件。

相关内容