<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error in cobol compilation in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995250#M100685</link>
    <description>Which as(1) are you running?  Do you have the gnu as(1) installed or in your PATH on one and not the other?&lt;BR /&gt;&lt;BR /&gt;HP's as(1) gives these messages:&lt;BR /&gt;$ as -41   #PA&lt;BR /&gt;as: warning 2: Unknown option "-41" ignored.&lt;BR /&gt;$ as -41   #IPF&lt;BR /&gt;error 2005: invalid option '-41'&lt;BR /&gt;&lt;BR /&gt;The foreign devil as(1) gives:&lt;BR /&gt;$ /usr/local/bin/as -41&lt;BR /&gt;/usr/local/bin/as: unrecognized option `-41'&lt;BR /&gt;&lt;BR /&gt;Of course in both cases it doesn't like the -41.  Is there a way to get a verbose output from cob, -v?</description>
    <pubDate>Thu, 03 Aug 2006 19:17:17 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-08-03T19:17:17Z</dc:date>
    <item>
      <title>error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995243#M100678</link>
      <description>Both of my servers are running HPUX 11.11 with identical current patches. When the following command is run, the older system compiles OK, the new system gets the error you see below: "/opt/cobol/cobdir/bin/cob -x -o ~/temp/repbuild repbuild.o"&lt;BR /&gt;response:&lt;BR /&gt;"as: unrecognized option `-41'&lt;BR /&gt;/opt/mfcobol/cobdir/bin/cob: error(s) in assembling /var/tmp/cobBAAa13298/%cob0.s"&lt;BR /&gt;These are running Cobol41 with these bundles - B2430EB, B2432EB, B2433EB, and B2435.</description>
      <pubDate>Thu, 03 Aug 2006 15:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995243#M100678</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-03T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995244#M100679</link>
      <description>The very first thing that I would compare is the environment. Do an env as the same user on both boxes and compare them. Pay special attention to COBDIR.</description>
      <pubDate>Thu, 03 Aug 2006 15:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995244#M100679</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-03T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995245#M100680</link>
      <description>2nd whackball thought: Are both of these boxes running the same "bitness" of the operating system?</description>
      <pubDate>Thu, 03 Aug 2006 15:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995245#M100680</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-03T15:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995246#M100681</link>
      <description>Already checked. env is the same. I do notice a difference in the file directories located in /opt/cobol/bin. Even though the cobol installed is the same. The newer install has more directories. The dates appear to be the same on the ones that are there. Also /opt/cobol/bin/cobol appears to be the same on both.</description>
      <pubDate>Thu, 03 Aug 2006 15:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995246#M100681</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-03T15:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995247#M100682</link>
      <description>older is N4000. newer is rp3410.</description>
      <pubDate>Thu, 03 Aug 2006 15:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995247#M100682</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-03T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995248#M100683</link>
      <description>Is the current user's home directory writable? I would also try invoking the command without the tidle and instead using the absolute path for the -o (output) file. I assume that the .o object file was actually created on this machine.</description>
      <pubDate>Thu, 03 Aug 2006 16:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995248#M100683</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-03T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995249#M100684</link>
      <description>It's been a long time (thankfully) since I've had to do any COBOL work but one other thing that I found in my notes: compare the contents of ${COBDIR}/cobopts on the good and bad boxes. All this command should be doing is passing the repbuild.o to the linker (ld) for linking to create the executable so the reference to a .S (assembly source) .S is a bit strange. If this is a makefile then use -n to show the exact commands that would be executed. If this is not a makefile then it appears that you are omitting a critical piece of the puzzle.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2006 16:34:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995249#M100684</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-03T16:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995250#M100685</link>
      <description>Which as(1) are you running?  Do you have the gnu as(1) installed or in your PATH on one and not the other?&lt;BR /&gt;&lt;BR /&gt;HP's as(1) gives these messages:&lt;BR /&gt;$ as -41   #PA&lt;BR /&gt;as: warning 2: Unknown option "-41" ignored.&lt;BR /&gt;$ as -41   #IPF&lt;BR /&gt;error 2005: invalid option '-41'&lt;BR /&gt;&lt;BR /&gt;The foreign devil as(1) gives:&lt;BR /&gt;$ /usr/local/bin/as -41&lt;BR /&gt;/usr/local/bin/as: unrecognized option `-41'&lt;BR /&gt;&lt;BR /&gt;Of course in both cases it doesn't like the -41.  Is there a way to get a verbose output from cob, -v?</description>
      <pubDate>Thu, 03 Aug 2006 19:17:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995250#M100685</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-08-03T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995251#M100686</link>
      <description>I actually think the -41 is an artifact of the COBOL Version 41 and that is being passed possibly because the compiler is being asked to output the version as if cob -V were invoked.</description>
      <pubDate>Thu, 03 Aug 2006 19:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995251#M100686</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-03T19:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995252#M100687</link>
      <description>I had the user create a new .o file - same problem. Then (as root) I ran the following command "/opt/cobol/cobdir/bin/cob -x -v -o /tmp/cobtest". This created /tmp/cobtest on the old server, but error was&lt;BR /&gt;"/opt/cobol/cobdir/bin/cob -V nolist -x -v -o /tmp/cobtest&lt;BR /&gt;as: unrecognized option `-41'&lt;BR /&gt;/opt/mfcobol/cobdir/bin/cob: error(s) in assembling /var/tmp/cobBAAa26968/ldtaab.s"&lt;BR /&gt;The -V nolist line was the first part of the returned message on both servers.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Aug 2006 08:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995252#M100687</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-04T08:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995253#M100688</link>
      <description>Did you compare the cobopts files on both boxes?&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Aug 2006 09:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995253#M100688</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-04T09:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995254#M100689</link>
      <description>identical &lt;BR /&gt;-C nolist</description>
      <pubDate>Fri, 04 Aug 2006 09:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995254#M100689</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-04T09:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995255#M100690</link>
      <description>Before doing anything else, let's make certain this is an apples to apples comparison, do a cksum of cob on both boxes. Are they identical?</description>
      <pubDate>Fri, 04 Aug 2006 09:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995255#M100690</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-04T09:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995256#M100691</link>
      <description>identical cksum</description>
      <pubDate>Fri, 04 Aug 2006 09:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995256#M100691</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-04T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995257#M100692</link>
      <description>Okay, I'm stumped but I did find an old  box with your version of the COBOL compiler (although it is beyond me why anyone would ever use COBOL) but let's try a different approach so that we are starting from a known point. We'll use the tictac demo program.&lt;BR /&gt;&lt;BR /&gt;cp /opt/cobol/cobdir/demo/tictac.cbl /tmp&lt;BR /&gt;cd /tmp&lt;BR /&gt;cob -V -v -x -o tictac tictac.cbl&lt;BR /&gt;&lt;BR /&gt;Here is the output on my box, please post yours so that we can compare (I've also set cobopt to match your settings):&lt;BR /&gt;&lt;BR /&gt;[marvin]/tmp: echo ${COBOPT}&lt;BR /&gt;sh: COBOPT: Parameter not set.&lt;BR /&gt;[marvin]/tmp: echo ${COBDIR}&lt;BR /&gt;/opt/cobol/cobdir&lt;BR /&gt;&lt;BR /&gt;[marvin]/tmp: cob -V -v -x -o tictac tictac.cbl&lt;BR /&gt;version @(#)cob.c       1.254&lt;BR /&gt;PRN=O1UPR/BMD:8e.B4.13.06&lt;BR /&gt;PTI=NLS&lt;BR /&gt;PTI=Y2K&lt;BR /&gt;cob -C nolist -V -v -x -o tictac tictac.cbl&lt;BR /&gt;* Micro Focus COBOL for UNIX         V4.1 revision 040 Compiler&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN O1UPR/BMB/01345T&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Accepted - nolist&lt;BR /&gt;* Compiling tictac.cbl&lt;BR /&gt;* Total Messages:     0&lt;BR /&gt;* Data:        2536     Code:        1313&lt;BR /&gt;* Micro Focus COBOL for Unix         V4.1 revision 040 Code generator&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN OXUPR/BM0/00000T&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Accepted - hpoptimize(1)&lt;BR /&gt;* Generating tictac.int&lt;BR /&gt;* Data:        2704     Code:           0     Literals:         280&lt;BR /&gt;cob: Entry points defined in module: tictac.o&lt;BR /&gt;        *tictac&lt;BR /&gt;        TICTAC&lt;BR /&gt;        _HP_tictac&lt;BR /&gt;[marvin]/tmp:&lt;BR /&gt;&lt;BR /&gt;[marvin]/tmp:&lt;BR /&gt;[marvin]/tmp: ls -l tictac*&lt;BR /&gt;-rwxrwx--x   1 cstephen   bsp          36864 Aug  4 10:30 tictac&lt;BR /&gt;-rw-r--r--   1 cstephen   sys           7882 Aug  4 09:41 tictac.cbl&lt;BR /&gt;-rw-rw----   1 cstephen   bsp           3584 Aug  4 10:30 tictac.int&lt;BR /&gt;-rw-rw----   1 cstephen   bsp           7160 Aug  4 10:30 tictac.o&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Aug 2006 10:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995257#M100692</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-04T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995258#M100693</link>
      <description>cp /opt/cobol/cobdir/demo/tictac.cbl /tmp&lt;BR /&gt;cd /tmp&lt;BR /&gt;root@ddah0826:/home/acampb07: cd /tmp&lt;BR /&gt;root@ddah0826:/tmp: cob -V -v -x -o tictac tictac.cbl&lt;BR /&gt;&lt;BR /&gt;version @(#)cob.c       1.248&lt;BR /&gt;PRN=OXUPR/ZZB:8c.l5.13.03&lt;BR /&gt;PTI=NLS&lt;BR /&gt;PTI=LMF&lt;BR /&gt;PTI=ASLMF&lt;BR /&gt;PTI=Y2K&lt;BR /&gt;cob -C nolist -V -v -x -o tictac tictac.cbl&lt;BR /&gt;* Micro Focus COBOL for UNIX         V4.1 revision 030 Compiler&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN OXUPR/ZZ0/00000V&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Accepted - nolist&lt;BR /&gt;* Compiling tictac.cbl&lt;BR /&gt;* Total Messages:     0&lt;BR /&gt;* Data:        2536     Code:        1313&lt;BR /&gt;* Micro Focus COBOL for Unix         V4.1 revision 030 Code generator&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN OXUPR/ZZ0/00000V&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Accepted - hpoptimize(1)&lt;BR /&gt;* Generating tictac.int&lt;BR /&gt;* Data:        2704     Code:           0     Literals:         280&lt;BR /&gt;cob: Entry points defined in module: tictac.o&lt;BR /&gt;        *tictac&lt;BR /&gt;        TICTAC&lt;BR /&gt;        _HP_tictac&lt;BR /&gt;as: unrecognized option `-41'&lt;BR /&gt;cob: error(s) in assembling /var/tmp/cobBAAa18880/%cob0.s&lt;BR /&gt;root@ddah0826:/tmp: root@ddah0826:/tmp: ls -l tic*&lt;BR /&gt;-rw-------   1 root       sys           7882 Aug  4 15:23 tictac.cbl&lt;BR /&gt;-rw-------   1 root       sys           3584 Aug  4 15:23 tictac.int&lt;BR /&gt;-rw-------   1 root       sys           7276 Aug  4 15:23 tictac.o</description>
      <pubDate>Fri, 04 Aug 2006 15:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995258#M100693</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-04T15:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995259#M100694</link>
      <description>Clearly your assembler is having problems:&lt;BR /&gt;&lt;BR /&gt;Try this command and also this time echo ${COBDIR} and ${COBOPT} -- which may be unset so it is apples to apples.&lt;BR /&gt;&lt;BR /&gt;We're going to add -A -V to make the assembler output it's version:&lt;BR /&gt;&lt;BR /&gt;[marvin]/tmp:&lt;BR /&gt;[marvin]/tmp: echo ${COBDIR}&lt;BR /&gt;/opt/cobol/cobdir&lt;BR /&gt;[marvin]/tmp: echo ${COBOPT}&lt;BR /&gt;sh: COBOPT: Parameter not set.&lt;BR /&gt;[marvin]/tmp: cob -V -v -x -A -V -o tictac tictac.cbl&lt;BR /&gt;version @(#)cob.c       1.254&lt;BR /&gt;PRN=O1UPR/BMD:8e.B4.13.06&lt;BR /&gt;PTI=NLS&lt;BR /&gt;PTI=Y2K&lt;BR /&gt;cob -V -v -x -A -V -o tictac tictac.cbl&lt;BR /&gt;* Micro Focus COBOL for UNIX         V4.1 revision 040 Compiler&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN O1UPR/BMB/01345T&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Compiling tictac.cbl&lt;BR /&gt;* Total Messages:     0&lt;BR /&gt;* Data:        2536     Code:        1313&lt;BR /&gt;* Micro Focus COBOL for Unix         V4.1 revision 040 Code generator&lt;BR /&gt;* Copyright (C) 1984-1999 MERANT International URN OXUPR/BM0/00000T&lt;BR /&gt;* Accepted - verbose&lt;BR /&gt;* Accepted - hpoptimize(1)&lt;BR /&gt;* Generating tictac.int&lt;BR /&gt;* Data:        2704     Code:           0     Literals:         280&lt;BR /&gt;cob: Entry points defined in module: tictac.o&lt;BR /&gt;        *tictac&lt;BR /&gt;        TICTAC&lt;BR /&gt;        _HP_tictac&lt;BR /&gt;as: HP92453-03 UX.11.01.17 PA-RISC 2.0 Assembler&lt;BR /&gt;as: HP92453-03 UX.11.01.17 PA-RISC 2.0 Assembler&lt;BR /&gt;[marvin]/tmp:&lt;BR /&gt;&lt;BR /&gt;----------------------------------------&lt;BR /&gt;What I am beginning to wonder is did you install ANSI/C along with COBOL because both are required.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Aug 2006 16:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995259#M100694</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-04T16:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995260#M100695</link>
      <description>Now you have led me on the right path. The /usr/ccs/bin/as files are of different sized on the two servers. I found a bypass now by taking the as file from the old server and copying it to the new server (after saving the new server as file of course). Now that I was on the right path, I found the problem. The gcc product that was installed creates a /usr/ccs/bin/as file that caused the problem. The new servers were built with all current patches, however the gcc was put on after the patches. To correctly resolve my problem I reinstalled patch PHSS_26321 which put the correct as file in place. Thanks for your help!</description>
      <pubDate>Mon, 07 Aug 2006 14:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995260#M100695</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-07T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: error in cobol compilation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995261#M100696</link>
      <description>Thanks for help on this one - see my last post for solution text</description>
      <pubDate>Mon, 07 Aug 2006 14:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-cobol-compilation/m-p/4995261#M100696</guid>
      <dc:creator>Allan Campbell</dc:creator>
      <dc:date>2006-08-07T14:52:31Z</dc:date>
    </item>
  </channel>
</rss>

