AIX7.1 编译igen错误,第三方xml parse lib load error

今天新分到一个feature 在AIX7.1上, IGEN的以前没怎么做过这个模块,先试着编译试跑一下

view:shx_se_arbor.p4.bp11.9.1_fx1.4.1_OCC_maint_dstibm07

directory:/usr1/arbor/idesign_src/billing/igen/ie

但是build后出现以下错误:

cd /usr1/arbor/idesign_src/billing/igen/ie/tools/TableGen ; perl TableGen.pl -CPP ../../dataload -SQL -FILELIST -PERMFILE refvalues.xml
Can't load '/app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat:        0509-022 Cannot load module /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat/Expat.so.
        0509-150   Dependent module /opt/app/oracle/product/11.2.0.1/lib/libexpat.a(libexpat.so.0) could not be loaded.
        0509-152   Member libexpat.so.0 is not found in archive
        0509-022 Cannot load module /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat/Expat.so.
        0509-150   Dependent module /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat/Expat.so could not be loaded. at /app/arborperl/5.8.7/lib/5.8.7/aix-64all/DynaLoader.pm line 230.
 at /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/XML/Parser.pm line 15
Compilation failed in require at /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/XML/Parser.pm line 15.
BEGIN failed--compilation aborted at /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/XML/Parser.pm line 19.
Compilation failed in require at TableGen.pl line 4.
BEGIN failed--compilation aborted at TableGen.pl line 4.
*** Error code 8
clearmake: Error: Build script failed for "STEP_DATALOAD"

发现Expat.so load failed. ldd /app/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat/Expat.so

[/net/dtgna03/vol/vol3_na1b/app/AIX/5.3/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat]  (111)yyang@dstibm07#ldd  Expat.so
Expat.so needs:
         /usr/ccs/lib/libc.a(shr_64.o)
         /opt/app/oracle/product/11.2.0.1/lib/libexpat.a(libexpat.so.0)
ar: 0707-109 Member name libexpat.so.0 does not exist.
dump: /tmp/tmpdir26542260/extract/libexpat.so.0: 0654-106 Cannot open the specified file.
         /unix
         /usr/lib/libcrypt.a(shr_64.o)

所以我们xml parser lib用错了,应该用3pxml。

设这正确的LIBPATH 后编译成功

setenv LIBPATH /usr1/arbor/3pxml/expat/AIX/lib:$LIBPATH
setenv PATH /usr1/arbor/3pperl/AIX/bin:$PATH


我们可以发现:

[/net/dtgna03/vol/vol3_na1b/app/AIX/5.3/arborperl/5.8.7/lib/site_perl/5.8.7/aix-64all/auto/XML/Parser/Expat] (121)yyang@dstibm07#ldd  Expat.so
Expat.so needs:
         /usr/ccs/lib/libc.a(shr_64.o)
         /usr1/arbor/3pxml/expat/AIX/lib/libexpat.a(libexpat.so.0)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)


编译成功IGEN

[/usr1/arbor/bin]  (118)yyang@dstibm07#ll  IGEN
-rwxrwxr-x    1 yyang    clearusr   43243782 Oct 19 21:31 IGEN*


你可能感兴趣的:(xml,parse,AIX)