<?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 MQX - mib2def.awk , def2c.awk - RTCS tools outdated in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387807#M12938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use mib2def and def2c awk scripts to generate the C source code for my project using RFC-1628 mib file ( &lt;A href="https://www.ietf.org/rfc/rfc1628.txt" title="https://www.ietf.org/rfc/rfc1628.txt"&gt;https://www.ietf.org/rfc/rfc1628.txt&lt;/A&gt; )&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks that def2c.awk script has some bugs. For example the script generate "uint_32", "_PTR_", "pointer" data types that don't exists and I can't compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This mib file have some tables and traps and I believe that the script can't work with complex mib files. Is is truth?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 19:26:54 GMT</pubDate>
    <dc:creator>thiagow</dc:creator>
    <dc:date>2014-11-07T19:26:54Z</dc:date>
    <item>
      <title>MQX - mib2def.awk , def2c.awk - RTCS tools outdated</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387807#M12938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use mib2def and def2c awk scripts to generate the C source code for my project using RFC-1628 mib file ( &lt;A href="https://www.ietf.org/rfc/rfc1628.txt" title="https://www.ietf.org/rfc/rfc1628.txt"&gt;https://www.ietf.org/rfc/rfc1628.txt&lt;/A&gt; )&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks that def2c.awk script has some bugs. For example the script generate "uint_32", "_PTR_", "pointer" data types that don't exists and I can't compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This mib file have some tables and traps and I believe that the script can't work with complex mib files. Is is truth?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 19:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387807#M12938</guid>
      <dc:creator>thiagow</dc:creator>
      <dc:date>2014-11-07T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387808#M12939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the changes in MQX 4.1 was moving from non-standard types (such as uint_32) to the standard types from stddef.h (e.g. uint32_t). So if the tool is producing code with uint_32 in it, it probably has not been updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2014 00:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387808#M12939</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-11-08T00:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387809#M12940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;And about _PTR_ and pointer data types? This problem occours on MQX 4.1.0 too. Does anybody know when these AWK scripts will be corrected and updated? Or any suggestion of how can I generate my source code using SNMP tables on MQX 4.1.1?&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Nov 2014 13:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387809#M12940</guid>
      <dc:creator>thiagow</dc:creator>
      <dc:date>2014-11-09T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387810#M12941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See below a bit of the source code and errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;boolean MIB_find_upsOutputEntry&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;(uint_32, pointer, pointer _PTR_);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Error:&amp;nbsp;&amp;nbsp; unknown type 'boolean' expected ')' before '_PTR_'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;boolean MIB_instance_upsAlarmEntry&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;(RTCSMIB_WALK_PTR, uint_32, boolean (_CODE_PTR_)(uint_32, pointer, pointer _PTR_), boolean _PTR_, pointer _PTR_);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Error: unknown type 'boolean', unknown type 'uint_32' , unknown type 'boolean', unknown type 'boolean' , unknown type 'pointer'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 12:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387810#M12941</guid>
      <dc:creator>thiagow</dc:creator>
      <dc:date>2014-11-10T12:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387811#M12942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;_PTR_ used to be an alias for *. boolean used to be a typedef name for unsigned long. Both came from psptypes.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14156419630911798 jive_text_macro jive_macro_code" jivemacro_uid="_14156419630911798"&gt;
&lt;P&gt;#define _PTR_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;typedef unsigned long&amp;nbsp; boolean;&amp;nbsp; /* Machine representation of a boolean */&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all got changed in MQX 4.1 and now standard types are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your options are either wait for Freescale to fix the awk scripts; fix them yourself; or create a header file with the necessary definitions to get the generated code to compile. I think I would probably choose the third option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387811#M12942</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-11-10T17:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387812#M12943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And 'pointer' data type? Do you know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uchar_ptr = char * ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387812#M12943</guid>
      <dc:creator>thiagow</dc:creator>
      <dc:date>2014-11-10T18:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: MQX - mib2def.awk , def2c.awk - RTCS tools</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387813#M12944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just a pointer to void.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156454436232976" jivemacro_uid="_14156454436232976"&gt;
&lt;P&gt;typedef void _PTR_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointer;&amp;nbsp; /* Machine representation of a pointer */&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That again comes from psptypes.h. Copy from MQX 4.0.1 attached. This is for Cortex M. If you are using something else you may want to just download an old version of MQX and poke about yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-mib2def-awk-def2c-awk-RTCS-tools-outdated/m-p/387813#M12944</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-11-10T18:54:40Z</dc:date>
    </item>
  </channel>
</rss>

