7 Replies Latest reply: Oct 29, 2010 8:29 AM by 780421 RSS

    Error during compiling cobol code after upgrading tuxedo 6.5 with 11

    780421
      cc: 1501-238 configuration file /etc/vac.cfg does not exist
      cob64: error(s) in C compilation: BS-c5050.c
      CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o BS-c5050.c -L${TUXDIR}/lib -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread


      We are getting the above mentioned error while trying to run the tuxbuild. The make file is not getting completely executed and the above error is encountered.

      Please help us with this..

      Thanks,
      Shama

      Edited by: user13277723 on Oct 25, 2010 3:21 AM
        • 1. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
          Todd Little-Oracle
          Hi Shama,

          What COBOL compiler and version are you using? I'm guessing from the reference to vac.cfg you are using AIX 64 bit? Can you compile normal COBOL programs with the cobcc command?

          Regards,
          Todd Little
          Oracle Tuxedo Chief Architect
          • 2. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
            780421
            Hi Todd,

            Version of our cobol is 5.1 and we are switching to 64 bit while complilng the cobol codes.we have upgraded our OS i.e AIX to 6.1(64 bit).We are using make all command to compile cobol codes.
            We are still facing the same issue after switching to 64 bit and running the make all command.



            Thanks,
            Shama
            • 3. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
              780421
              Hi Todd,

              We had a doubt on this error
              cc: 1501-238 configuration file /etc/vac.cfg does not exist
              cob64: error(s) in C compilation: BS-34040.c
              CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o /appl/swifts/devl/swifts1/tux1/swifts0200 BS-34040.c -L${TUXDIR}/lib /appl/swifts/devl/swifts1/obj1/swifts0200.o /appl/swifts/devl/swifts1/obj1/TPSVRINIT.o /appl/swifts/devl/swifts1/obj1/swifts1960.o -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread


              Is this above error: cob64: error(s) in C compilation: BS-34040.c will this BS-34040.c file be generated runtime during compilation as we are running cobol codes and and error is mentioned as error in C compilation. And everytime this file name is getting changed. Can you please let us know whats exactly is this and in which case this error generates...?

              Thanks,
              Shama

              Edited by: user13277723 on Oct 28, 2010 6:42 AM
              • 4. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
                Todd Little-Oracle
                Hi Shama,

                The .c file you are seeing is generated by the buildserver command. It is the main() for the server and is generated based upon the arguments given to buildserver.

                Can you try executing the cobcc command at a shell prompt and let me know if it successfully invokes the COBOL compiler? If not, then you have an environment set up problem. When you use buildserver to build a COBOL based server, the buildserver command invokes the COBOL compiler for you using the cobcc command.

                Regards,
                Todd Little
                Oracle Tuxedo Chief Architect
                • 5. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
                  Ed Heeren-Oracle
                  Shama,

                  If you execute buildserver with the -k and -v options, the -k option will cause the BS-xxxxx.c file to be kept after the compilation and the -v option will cause buildserver to print the exact C compiler command that is executed.

                  The cc: 1501-238 configuration file /etc/vac.cfg does not exist error appears to indicate a problem with the installation or setup of the C compiler.

                  If needed, the CC environment variable can be used to specify a C compiler other than the default compiler and the ALTCC envrionment variable can be used to specify a shell script or executable other than $TUXDIR/bin/cobcc for Cobol compilation. These environment variables are documented on the buildserver(1) manual page.

                  Regards,

                  Ed
                  • 6. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
                    780421
                    Hi Todd,
                    Thank you for your help...

                    We tried running cobcc command on shell prompt and encountered the below error..
                    /usr/local/opt/tuxedo:169>cobcc
                    cobcc[88]: cd: 0403-008 The number of parameters specified is not correct.
                    usage: cobcc [option,filename] ... filename [option,filename] ...

                    We even tried passing a filename as an argument and encountered the same error...You also told about the environment set up may not be correct.Can you please let us know what all variables are need to be set in env file as we have set all the below variables in env file

                    TUXCONFIG
                    VIEWDIR32
                    VIEWFILES32
                    FLDTBLDIR
                    FLDTBLDIR32
                    APPDIR
                    COBPATH
                    COBCPY=.:$TUXDIR/cobinclude
                    ALTCFLAGS="-DTMMAINEXIT"
                    PATH=$TUXDIR/bin:$COBDIR/bin:$PATH
                    SCCSLIB
                    SRCLIB
                    OBJLIB
                    EXELIB
                    LISTLIB
                    ERRORLIB

                    Thanks,
                    Shama
                    • 7. Re: Error during compiling cobol code after upgrading tuxedo 6.5 with 11
                      780421
                      Hi Todd/Ed,

                      We have one more doubt on which we need your help..
                      We are using AIX 6.1,Oracle 11g and all are 64 bit. MFCOBOL which we are using is 32 bit.While compling the code we are switching to 64 bit by using the command cobmode -s 64 and trying to run tuxbuild all+ command and we are encountering the errors which i have metioned in my earlier posts.

                      As vac.cfg file was missing we copied older versions as vac.cfg and tried to complie the codes again.we encountered the following error.

                      "BS-710b2.c", line 128.10: 1506-296 (S) #include file "mainexit.h" not found.
                      cob64: error(s) in C compilation: BS-710b2.c

                      so we added a script mainexit.h with cobinit() function declaration in the current directory.

                      As we tried with tuxbuild all command we are facing this error.

                      ld: 0711-224 WARNING: Duplicate symbol: .tpsvrdone
                      ld: 0711-224 WARNING: Duplicate symbol: .tpsvrinit
                      ld: 0711-224 WARNING: Duplicate symbol: TPSVRINIT
                      ld: 0711-224 WARNING: Duplicate symbol: .TPSVRINIT
                      ld: 0711-224 WARNING: Duplicate symbol: tpsvrinit
                      ld: 0711-224 WARNING: Duplicate symbol: tpsvrdone
                      ld: 0711-224 WARNING: Duplicate symbol: .memcpy
                      ld: 0711-224 WARNING: Duplicate symbol: memcpy
                      ld: 0711-224 WARNING: Duplicate symbol: .userlog
                      ld: 0711-224 WARNING: Duplicate symbol: userlog
                      ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
                      ld: 0711-317 ERROR: Undefined symbol: .SQLADR
                      ld: 0711-317 ERROR: Undefined symbol: .SQLADRVC
                      ld: 0711-317 ERROR: Undefined symbol: .SQLBEX
                      CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o /BS-eb000.c -L${TUXDIR}/lib TPSVRINIT.o -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread

                      we have included this file as well /usr/local/opt/oracle/product/ostl133/precomp/lib/cobsqlintf.o still we are not able to solve this issue..

                      Please help us with this.. :-(

                      Thanks,
                      Shama