<?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: Unmessage in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550347#M28180</link>
    <description>&lt;P&gt;Thanks for the reply. Yes, but I still get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ cc/vers&lt;/P&gt;&lt;P&gt;HP C V7.3-010 on OpenVMS Alpha V8.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ cc unmsg&lt;/P&gt;&lt;P&gt;struct mscdef&lt;/P&gt;&lt;P&gt;^&lt;/P&gt;&lt;P&gt;%CC-W-DUPTYPESPEC, In this declaration, the same type specifier occurs more than once.&lt;/P&gt;&lt;P&gt;at line number 12 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.H;2&lt;/P&gt;&lt;P&gt;if (midx-&amp;gt;midx$b_sanity != MIDX$C_SANITY)&lt;/P&gt;&lt;P&gt;......^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 69 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;if (midx-&amp;gt;midx$b_sanity != MIDX$C_SANITY)&lt;/P&gt;&lt;P&gt;......^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$b_sanity" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 69 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;...................^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 74 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;...................^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$w_size" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 74 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;.....................^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 98 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;.....................^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$w_size" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 98 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the original unmessage.h header file, it does compile but running it against a message file results in no output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2012 22:02:37 GMT</pubDate>
    <dc:creator>David R. Lennon</dc:creator>
    <dc:date>2012-02-13T22:02:37Z</dc:date>
    <item>
      <title>Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550335#M28178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Has anyone successfully gotten the unmessage utility to work under Alpha or Integrity VMS? And willing to share their code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I mean the unmessage program by Joe Meadows that was on DECUS tapes and on ftp sites. This program "de-compiles" system message .EXE files into their source .MSG files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I found this thread:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/Changing-the-output-of-the-TYPE-command/td-p/4718882"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Changing-the-output-of-the-TYPE-command/td-p/4718882&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But I am unable to successfully compile the source code attached to that thread, as well..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 21:31:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550335#M28178</guid>
      <dc:creator>David R. Lennon</dc:creator>
      <dc:date>2012-02-13T21:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550341#M28179</link>
      <description>&lt;P&gt;What's the problem compiling the sources?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In unmsg.h, did you remove the GNU C&amp;nbsp;﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿__attribute__?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ cc/vers&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;HP C V7.1-015 on OpenVMS Alpha V8.3 &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ sh symb cc&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;%DCL-W-UNDSYM, undefined symbol - check validity and spelling&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ cc unmsg&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ link unmsg&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Feb 2012 21:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550341#M28179</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-02-13T21:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550347#M28180</link>
      <description>&lt;P&gt;Thanks for the reply. Yes, but I still get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ cc/vers&lt;/P&gt;&lt;P&gt;HP C V7.3-010 on OpenVMS Alpha V8.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ cc unmsg&lt;/P&gt;&lt;P&gt;struct mscdef&lt;/P&gt;&lt;P&gt;^&lt;/P&gt;&lt;P&gt;%CC-W-DUPTYPESPEC, In this declaration, the same type specifier occurs more than once.&lt;/P&gt;&lt;P&gt;at line number 12 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.H;2&lt;/P&gt;&lt;P&gt;if (midx-&amp;gt;midx$b_sanity != MIDX$C_SANITY)&lt;/P&gt;&lt;P&gt;......^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 69 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;if (midx-&amp;gt;midx$b_sanity != MIDX$C_SANITY)&lt;/P&gt;&lt;P&gt;......^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$b_sanity" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 69 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;...................^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 74 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;...................^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$w_size" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 74 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;.....................^&lt;/P&gt;&lt;P&gt;%CC-W-INCOMPDEREF, In this statement, "midx" is a pointer to an incomplete struct or union and should not be used as the left operan&lt;/P&gt;&lt;P&gt;d of a member dereference.&lt;/P&gt;&lt;P&gt;at line number 98 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;for (i = 1; i &amp;lt; (midx-&amp;gt;midx$w_size / MIDX$C_LENGTH); ++i)&lt;/P&gt;&lt;P&gt;.....................^&lt;/P&gt;&lt;P&gt;%CC-E-NEEDMEMBER, In this statement, "midx$w_size" is not a member of "midx".&lt;/P&gt;&lt;P&gt;at line number 98 in file TS_DEVICE:[LENNON.UNMSG]UNMSG.C;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the original unmessage.h header file, it does compile but running it against a message file results in no output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 22:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550347#M28180</guid>
      <dc:creator>David R. Lennon</dc:creator>
      <dc:date>2012-02-13T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550365#M28181</link>
      <description>&lt;P&gt;I have no problems if I use the original unmessage.h:&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ rena UNMESSAGE.H UNMSG&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ cc unmsg&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How is&amp;nbsp;&lt;EM&gt;midx&lt;/EM&gt; defined? It should be&amp;nbsp;&lt;EM&gt;struct midxdef *midx;&lt;/EM&gt; in &lt;EM&gt;unmsg.c&lt;/EM&gt;, in function &lt;EM&gt;decompile_msc&lt;/EM&gt;.&amp;nbsp;&lt;EM&gt;midxdef&lt;/EM&gt; is defined in header files,&amp;nbsp;&lt;EM&gt;unmsg.h&lt;/EM&gt;&amp;nbsp; and&amp;nbsp;&lt;EM&gt;unmessage.h.&lt;/EM&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Feb 2012 22:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550365#M28181</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-02-13T22:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550367#M28182</link>
      <description>&lt;P&gt;It seemed like there was some more stuff in unmsg.h than there was in unmessage.h but yes, if I use that one it compiles, but when I try to use it, I don't get any output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ mcr []unmsg sys$message:usb$msg.exe&lt;/P&gt;&lt;P&gt;$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added some debugging printfs and it is "failing" at line 65:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (msc-&amp;gt;msc$w_sanity != MSC$C_SANITY)&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 22:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550367#M28182</guid>
      <dc:creator>David R. Lennon</dc:creator>
      <dc:date>2012-02-13T22:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550369#M28183</link>
      <description>&lt;P&gt;Attached is some working code for unmessage, tested against OpenVMS Alpha V8.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ cc/ver&lt;BR /&gt;HP C V7.3-010 on OpenVMS Alpha V8.3&lt;BR /&gt;$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a one-source-module configuration, with no (non-system) headers required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of minor source code changes were incorporated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested against a V8.3 message file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, and HPSC just keeps blowing up with ITRC-style blank-pages when posting. &amp;nbsp;This is a reposting. &amp;nbsp;Hopefully. &amp;nbsp;This time, with a zipped file, in place of a text file attachment. &amp;nbsp; (edit: yep; the zip worked. &amp;nbsp;It posted. &amp;nbsp;If you can't unpack that, I'll post the text version else-host and will post a pointer here.)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 22:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550369#M28183</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2012-02-13T22:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unmessage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550373#M28184</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; It seemed like there was some more stuff in unmsg.h than there was in unmessage.h&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the pragmas to make sure the struct members are no member aligned (and some other stuff to make it compile on Linux as well).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for me (on Alpha, I don' have access to an Integrity):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ mcr []unmsg sys$message:usb$msg.exe&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;.FACILITY &amp;nbsp; &amp;nbsp; &amp;nbsp; USB,1905 /SYSTEM&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;.SEVERITY &amp;nbsp; &amp;nbsp; &amp;nbsp; WARNING&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;_07718008 &amp;nbsp; &amp;nbsp; &amp;nbsp; "fatal error encountered; operation terminated" /IDENT=ABORT&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;.BASE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;_07718320 &amp;nbsp; &amp;nbsp; &amp;nbsp; "USB Invalid device handle" /IDENT=INVALID_DEVICE&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;_07718328 &amp;nbsp; &amp;nbsp; &amp;nbsp; "USB Invalid interface handle" /IDENT=INVALID_INTERFA&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;_07718330 &amp;nbsp; &amp;nbsp; &amp;nbsp; "USB Invalid pipe handle" /IDENT=INVALID_PIPE&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dump the message file, starting with VBN 2, there should be the 7B (the ﻿﻿#define MIDX$C_SANITY 123)&amp;nbsp;at offset 42.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[edit: the struct mscdef needs to have __nomember_alignment]&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 23:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unmessage/m-p/5550373#M28184</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2012-02-13T23:17:54Z</dc:date>
    </item>
  </channel>
</rss>

