Ibm-Midrange

在 OS/400 V5R4 上為 PASE (AIX) 編譯 GhostPDL 時出錯

  • April 30, 2013

我正在嘗試在 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     

一些Google搜尋讓我相信安裝 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    

問題是 m_setjmp.h(make 將拋出 ‘_UKJBLEN’ undeclared here(not in a function)錯誤)您需要將 AIX 升級到 TL5(技術級別 5)。據我所知,這在 V5R4 上的 PASE 中是不可能的,您需要使用 TL5 的 AIX 機器進行編譯;然後,您可以在 PASE 中使用已編譯的執行檔。

引用自:https://serverfault.com/questions/502018