Highlighted
Absent Member.
Absent Member.
1884 views

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

Jump to solution

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 (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Contributor
Micro Focus Contributor

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

Jump to solution

cat your $COBDIR/etc/cobopt and cobopt64 files to note if these include the appropriate path for /usr/lib/gcc/i686-redhat-linux/4.4.4. If not modify these file first to add that location and retest.

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Contributor
Micro Focus Contributor

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

Jump to solution

cat your $COBDIR/etc/cobopt and cobopt64 files to note if these include the appropriate path for /usr/lib/gcc/i686-redhat-linux/4.4.4. If not modify these file first to add that location and retest.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.