Build Pro*COBOL project by an Ant script in RedHat Linux 6.1

Build Pro*COBOL project by an Ant script in RedHat Linux 6.1

I uses an Ant script(.cobolBuild)to build my Pro*COBOL projects in RedHat Linux6.1(32bit).
And when I build it in command line mode ,a problem [[cobollink] ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/crtbegin.o: No such file: No such file or directory]had occurred.
In my environment the gcc's path is [/usr/lib/gcc/i686-redhat-linux/4.4.4].
How can I change the path from [/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/] to [/usr/lib/gcc/i686-redhat-linux/4.4.4]?

OS:RedHat Enterpise Linux V6 UPDATE1

IDE:Visual COBOL for RedHat 2.1

Thank you.

Build Log:
[admin@rhcs32 SampleMain]$ ant -lib $COBDIR/lib/mfant.jar -f .cobolBuild
Buildfile: .cobolBuild
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

os.init:

os.init.windows:

os.init.unix:

init:

init.New_Configuration:

init.all.configurations:

cobolbuild:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

os.init:

os.init.windows:

os.init.unix:

init:

pre.build.cfg.New_Configuration:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

os.init:

os.init.windows:

os.init.unix:

init:

cobol.cfg.New_Configuration:
[cobol]
[cobol] Compiling SamplePGM.pco...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-008: Invoking cp Preprocessor
[cobol] * CSQL-I-017: Creating "/home/admin/workspace/SampleMain/SamplePGM.cs9"
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] * CSQL-I-020: Processing output of Oracle Precompiler
[cobol] * CSQL-I-001: Cobsql has finished returning to the Checker
[cobol] Compilation complete with no errors.
[cobol]
[cobol] Compiling dbconnect.pco...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-008: Invoking cp Preprocessor
[cobol] * CSQL-I-017: Creating "/home/admin/workspace/SampleMain/tci/dbconnect.cs9"
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] * CSQL-I-020: Processing output of Oracle Precompiler
[cobol] * CSQL-I-001: Cobsql has finished returning to the Checker
[cobol] Compilation complete with no errors.
[cobol]
[cobol] Compiling SampleSub.pco...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-008: Invoking cp Preprocessor
[cobol] * CSQL-I-017: Creating "/home/admin/workspace/SampleMain/tci/SampleSub.cs9"
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] * CSQL-I-020: Processing output of Oracle Precompiler
[cobol] 83 MOVE A3 OF PARM-INOUT TO TEST-A.
[cobol] ** COBCH1029E A non-integer is being moved to an alphanumeric data item : /home/admin/workspace/SampleMain/tci/SampleSub.pco(71,43,38)
[cobol] * CSQL-I-001: Cobsql has finished returning to the Checker
[cobol] Compilation complete with 0 errors, 1 warnings, 0 notices and an exit code of 0
[cobollink] Linking SampleMain...
[cobollink] ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/crtbegin.o: No such file: No such file or directory
[cobollink] Link complete with errors
[cobollink]
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

os.init:

os.init.windows:

os.init.unix:

init:

post.build.cfg.New_Configuration:

BUILD SUCCESSFUL
Total time: 0 seconds

Tags: