<div dir="ltr"><div>I have added only one class in my mof file.</div><div><br></div>See one class in mof file as below,<div><br></div><div>class GK_SoftwareIdentity : CIM_SoftwareIdentity {<br></div><div><div><br></div><div>
    [Implemented(true), Override(&quot;InstanceID&quot;), Description(</div><div>        &quot;Unique identifier for installed or available package.&quot;</div><div>        &quot; It&#39;s composed of OrgID and LocalID separated by &#39;:&#39;,  where&quot;</div>
<div>        &quot; &lt;OrgID&gt; is GK and LocalID is PKG:&lt;PKG_NEVRA&gt;. &lt;PKG_NEVRA&gt;&quot;</div><div>        &quot; is a string representing rpm package. Letters in NEVRA stand&quot;</div><div>        &quot; for name, epoch, version, release and architecture.&quot;)]</div>
<div>    string InstanceID;</div><div><br></div><div>    [Implemented(true), Override(&quot;Caption&quot;), Description(&quot;Package&#39;s summary.&quot;)]</div><div>    string Caption;</div><div><br></div><div>    [Implemented(true), Override(&quot;Classifications&quot;)]</div>
<div>    uint16 Classifications[];</div><div><br></div><div>    [Implemented(true), Override(&quot;Description&quot;), Description(</div><div>        &quot;Package&#39;s description.&quot;)]</div><div>    string Description;</div>
<div><br></div><div>    [Implemented(true), Override(&quot;ElementName&quot;), Description(</div><div>        &quot;Package&#39;s NEVRA string. That is also part of InstanceID.&quot;)]</div><div>    string ElementName;</div>
<div><br></div><div>    [Implemented(true), Override(&quot;InstallDate&quot;)]</div><div>    datetime InstallDate;</div><div><br></div><div>    [Implemented(true), Override(&quot;IsEntity&quot;)]</div><div>    boolean IsEntity;</div>
<div><br></div><div>    [Implemented(true), Override(&quot;Name&quot;), Description(</div><div>        &quot;Name of package. This does not uniquely identify package&quot;</div><div>        &quot; installed on computer system.&quot;)]</div>
<div>    string Name;</div><div><br></div><div>    [Implemented(true), Override(&quot;TargetTypes&quot;)]</div><div>    string TargetTypes[];</div><div><br></div><div>    [Implemented(true), Override(&quot;VersionString&quot;), Description(</div>
<div>        &quot;Package&#39;s EVRA, in format: &quot;</div><div>        &quot;&lt;epoch&gt;:&lt;version&gt;-&lt;release&gt;.&lt;architecture&gt;&quot;)]</div><div>    string VersionString;</div><div><br></div><div>    [Implemented(true), Description(&quot;Package&#39;s epoch.&quot;)]</div>
<div>    uint32 Epoch;</div><div><br></div><div>    [Implemented(true), Description(&quot;Package&#39;s version.&quot;)]</div><div>    string Version;</div><div><br></div><div>    [Implemented(true), Description(&quot;Package&#39;s release.&quot;)]</div>
<div>    string Release;</div><div><br></div><div>    [Implemented(true), Description(&quot;Package&#39;s architecture.&quot;)]</div><div>    string Architecture;</div><div><br></div><div>};</div></div><div><br></div><div>
Then I trying to create skelton code using konkretCMPI,</div><div><br></div><div>I export KONKRET_SCHEMA_DIR as /usr/share/sfcb/CIM/.</div><div><br></div><div>then I trying to generate code,</div><div><br></div><div>$konkret -m GK_Software.mof -s GK_SoftwareIdentity GK_SoftwareIdentity<br>
</div><div><br></div><div>I got the following error,</div><div><br></div><div><div>Using: /usr/share/sfcb/CIM//CIM_Schema.mof</div><div>error: GK_Software.mof(6): undefined qualifier: &quot;Implemented&quot;</div></div><div>
<br></div><div>What is the releavance of &quot;Implemented&quot; tag here.<br></div><div><br></div><div>How to resolve this issue. </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 3:07 PM, Ales Ledvinka <span dir="ltr">&lt;<a href="mailto:aledvink@redhat.com" target="_blank">aledvink@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
First step is what suggested Jan to resolve the errors<br>
during konkret skeleton generation you described.<br>
<br>
Then if you experience further errors during compilation:<br>
The konkret does not owerwrite any existing file.<br>
So from the the very first run that produced error you might<br>
have inconsistent contents from before the mof change.<br>
Retry running konkret in empty directory untill you resolve<br>
all the errors. Then take the list of files generated and<br>
clean up or merge in case you changed the files in your original<br>
project.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: &quot;Jan Synacek&quot; &lt;<a href="mailto:jsynacek@redhat.com">jsynacek@redhat.com</a>&gt;<br>
To: <a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
Sent: Thursday, July 18, 2013 10:07:14 AM<br>
Subject: Re: undefined Linux_ComputerSystem class<br>
<br>
On 07/17/2013 01:48 PM, George varghese wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have trying to implement software update provider using OpenLMI. I have<br>
&gt; requirement to implement firmware update using this provider. Right now the<br>
&gt; implementation of software update in python. I don&#39;t know this language<br>
&gt; very well. So I trying to implement it in C language.<br>
&gt;<br>
&gt; For this purpose I had reused the mof file of openlmi software. I have just<br>
&gt; renamed LMI to GK. Then trying to create skeleton provider source in c<br>
&gt; using konkret. Due to some error its not possible. I have removed<br>
&gt; [Implemented(true), Override(&quot;CommunicationStatus&quot;)]<br>
&gt; due the error. error is these symbols are undefined. I don&#39;t its relevance<br>
&gt; here.<br>
&gt; Then I faced another error is undefined &quot;Linux_ComputerSystem&quot; class. This<br>
&gt; mof file exists in same path.<br>
&gt;<br>
&gt;<br>
&gt; How to resolve this issue?<br>
&gt;<br>
&gt; Regards,<br>
&gt; George<br>
<br>
Hi George,<br>
<br>
I suggest that you should read the OpenLMI wiki at [1], especially [2].<br>
What you probably want is to specify the KONKRET_SCHEMA_DIR environment variable<br>
(for example you can set it to /usr/share/mof/cim-current/ to include all the<br>
system classes&#39; definitions).<br>
<br>
[1] <a href="https://fedorahosted.org/openlmi/" target="_blank">https://fedorahosted.org/openlmi/</a><br>
[2] <a href="https://fedorahosted.org/openlmi/wiki/ProviderTutorialImplementationC" target="_blank">https://fedorahosted.org/openlmi/wiki/ProviderTutorialImplementationC</a><br>
<br>
--<br>
Jan Synacek<br>
Software Engineer, Red Hat<br>
</div></div>_______________________________________________<br>
openlmi-devel mailing list<br>
<a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel</a><br>
_______________________________________________<br>
openlmi-devel mailing list<br>
<a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel</a><br>
</blockquote></div><br></div>