<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to wiki</title><link>https://sourceforge.net/p/ovaldi/wiki/</link><description>Recent changes to wiki</description><atom:link href="https://sourceforge.net/p/ovaldi/wiki/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 06 Aug 2014 18:15:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ovaldi/wiki/feed.rss" rel="self" type="application/rss+xml"/><item><title>Build notes modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Build%2520notes/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -5,7 +5,7 @@

 ## Solaris 11 Build Instructions

-Author: Juan Castro [http://sourceforge.net/users/juanccyc/]
+Author: Juan Castro http://sourceforge.net/users/juanccyc/

 Tested on Solaris 11 Express, gcc/g++ compiler. This may work for other versions of Solaris 11 (e.g. OpenIndiana), but you may have to install pcre and/or libgcrypt by hand. In my system, pcre came without the include files, so I had to grab "headers-pcre" from the package manager.

@@ -57,7 +57,7 @@

 ## Red Hat Enterprise Linux 6 Build Instructions

-Author: Nate Przybyszewski [https://sourceforge.net/users/natprz/]
+Author: Nate Przybyszewski https://sourceforge.net/users/natprz/

 Please note that these instructions assume that the required libraries are already installed.

@@ -74,7 +74,7 @@

 ## Ubuntu 8.04 and 10.04 Build Instructions

-Author: Anne [https://sourceforge.net/users/tempemmail]
+Author: Anne https://sourceforge.net/users/tempemmail

 Since building ovaldi on Ubuntu is really complex and there is no detailed instruction for it, I hope the following experience could help others save time for fixing some problems you may face.   Some errors did not come up when I built them for a second time. So the errors are just for reference.

@@ -156,7 +156,7 @@

 When make Xalan-c, run into a Error:
-Make[1]: ***[../../obj/XalanDOMString.o] Error 1
+Make\[1]: ***\[../../obj/XalanDOMString.o] Error 1

 Fix method:
 Go to /xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp
@@ -168,17 +168,17 @@

 Then comes another error:
 /home/…/xml-xalanc/XMLSupport/FormatterToHTML.cpp:175:error:'memset' was not declared in this scope
-Make[1]: ***[../../obj/FormatterToHTML.o] Error 1
+Make\[1]: ***\[../../obj/FormatterToHTML.o] Error 1

 So the solution is to go to the FormatterToHTML.cpp file located in the given directory, and include &amp;lt;cstring&amp;gt;.
 It is very simple. But how to find the way to fix this kind of problems is important!!!

 Similarly, you will run into another error:
 /xml-xalan/c/src/xalanc/XSLT/EleNumber.cpp:1472:error:'memset' was not declared in this scope
-Make[1]: ***[../../obj/EleNumber.o] Error 1
+Make\[1]: ***\[../../obj/EleNumber.o] Error 1

 /xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp:346:error:'strlen' was not declared in this scope
-Make[1]: ***[../../obj/TestXPath.o] Error 1
+Make\[1]: ***\[../../obj/TestXPath.o] Error 1

 /xml-xalan/c/src/xalanc/TestXPath/TestXPath.cpp
 /xml-xalan/c/src/xalanc/XalanExe.cpp
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 18:15:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netddb21a4a2a9ea669e5c6409d62a8948a2071ffb4</guid></item><item><title>Build notes modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Build%2520notes/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The following are community contributed build notes for various platforms that are not officially supported by MITRE. Thanks to everyone who has contributed build notes.&lt;/p&gt;
&lt;p&gt;If you would like to contribute build notes for a particular platform, please send an email to &lt;a class="" href="mailto:oval@mitre.org"&gt;oval@mitre.org&lt;/a&gt; and we can work with you to get them posted here.&lt;/p&gt;
&lt;h2 id="solaris-11-build-instructions"&gt;Solaris 11 Build Instructions&lt;/h2&gt;
&lt;p&gt;Author: Juan Castro &lt;span&gt;[http://sourceforge.net/users/juanccyc/]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Tested on Solaris 11 Express, gcc/g++ compiler. This may work for other versions of Solaris 11 (e.g. OpenIndiana), but you may have to install pcre and/or libgcrypt by hand. In my system, pcre came without the include files, so I had to grab "headers-pcre" from the package manager.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download Xalan 1.10.0 sources from &lt;a href="http://www.apache.org/dyn/closer.cgi/xml/xalan-c" rel="nofollow"&gt;http://www.apache.org/dyn/closer.cgi/xml/xalan-c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Download Xerces 2.8.0 (NOT the 3.x version!) from &lt;a href="http://xerces.apache.org/xerces-c/download.cgi" rel="nofollow"&gt;http://xerces.apache.org/xerces-c/download.cgi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Download OVALdi 5.8.2 from &lt;a href="http://sourceforge.net/projects/ovaldi/files/ovaldi/5.8%20Build%202"&gt;http://sourceforge.net/projects/ovaldi/files/ovaldi/5.8%20Build%202/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Installing Xerces:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;su&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;
&lt;span class="n"&gt;gzcat&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;xerces&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src_2_8_0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="n"&gt;xvf&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;XERCESCROOT&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;xerces&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src_2_8_0&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;XERCESCROOT&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;xercesc&lt;/span&gt;
&lt;span class="n"&gt;sh&lt;/span&gt; &lt;span class="n"&gt;runConfigure&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;solaris&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="n"&gt;gcc&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;P&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Installing Xalan&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;su&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;
&lt;span class="n"&gt;gzcat&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;Xalan&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;C_1_10_0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="n"&gt;xvf&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;XERCESCROOT&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;XALANCROOT&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xalan&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;XALANCROOT&lt;/span&gt;
&lt;span class="n"&gt;sh&lt;/span&gt; &lt;span class="n"&gt;runConfigure&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;solaris&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="n"&gt;gcc&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;P&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Building OVALdi&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;su&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;
&lt;span class="n"&gt;bzcat&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.8.2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bz2&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="n"&gt;xvf&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.8.2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;
&lt;span class="n"&gt;Edit&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Digest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cpp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;replace&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt; &lt;span class="n"&gt;instances&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="s"&gt;"#if defined SUNOS"&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="s"&gt;"#if defined         WAYOLDSUNOS"&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;solaris&lt;/span&gt;
&lt;span class="n"&gt;Edit&lt;/span&gt; &lt;span class="n"&gt;Makefile&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="n"&gt;include&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;include&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pcre&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;INCDIRS&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You now have a working ovaldi executable in /usr/src/ovaldi-5.8.2-src/project/solaris/Release. To run it, the LD_LIBRARY_PATH variable must contain the path /usr/local/lib. The safest way to run it is with&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;executable&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Or, better yet, add /usr/local/lib permanently to the system library search path with the following command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;crle&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;: If you forget the -u switch above your system will become UNUSABLE!&lt;/p&gt;
&lt;h2 id="red-hat-enterprise-linux-6-build-instructions"&gt;Red Hat Enterprise Linux 6 Build Instructions&lt;/h2&gt;
&lt;p&gt;Author: Nate Przybyszewski &lt;span&gt;[https://sourceforge.net/users/natprz/]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that these instructions assume that the required libraries are already installed.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="mf"&gt;1.&lt;/span&gt;  &lt;span class="n"&gt;wget&lt;/span&gt; &lt;span class="n"&gt;download&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fedora&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;redhat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pub&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;fedora&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;linux&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;updates&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;SRPMS&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.f&lt;/span&gt;&lt;span class="n"&gt;c15&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rpm&lt;/span&gt;
  &lt;span class="mf"&gt;2.&lt;/span&gt;  &lt;span class="n"&gt;rpm2cpio&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.f&lt;/span&gt;&lt;span class="n"&gt;c15&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rpm&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;cpio&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;idmv&lt;/span&gt;
  &lt;span class="mf"&gt;3.&lt;/span&gt;  &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="n"&gt;xvfj&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bz2&lt;/span&gt;
  &lt;span class="mf"&gt;4.&lt;/span&gt;  &lt;span class="n"&gt;mv&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
  &lt;span class="mf"&gt;5.&lt;/span&gt;  &lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;
  &lt;span class="mf"&gt;6.&lt;/span&gt;  &lt;span class="n"&gt;patch&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p1&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;5.9.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rpm46&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;patch&lt;/span&gt;
  &lt;span class="mf"&gt;7.&lt;/span&gt;  &lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Linux&lt;/span&gt;
  &lt;span class="mf"&gt;8.&lt;/span&gt;  &lt;span class="n"&gt;vim&lt;/span&gt; &lt;span class="n"&gt;Makefile&lt;/span&gt;
  &lt;span class="mf"&gt;9.&lt;/span&gt;  &lt;span class="n"&gt;add&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;D_RPM_4_4_COMPAT&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;CPPFLAGS&lt;/span&gt;
  &lt;span class="mf"&gt;10.&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="ubuntu-804-and-1004-build-instructions"&gt;Ubuntu 8.04 and 10.04 Build Instructions&lt;/h2&gt;
&lt;p&gt;Author: Anne &lt;span&gt;[https://sourceforge.net/users/tempemmail]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Since building ovaldi on Ubuntu is really complex and there is no detailed instruction for it, I hope the following experience could help others save time for fixing some problems you may face.   Some errors did not come up when I built them for a second time. So the errors are just for reference.&lt;/p&gt;
&lt;p&gt;This build process has been tested on Ubunt 8.04 and Ubuntu 10.04 successfully.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: If you want to build ovaldi-5.9.1 by yourself, you should first remove other versions by "sudo apt-get remove ovaldi"&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Both Xerces and Xalanc should be built from scratch. Sometimes the binary package does not work with the source file builds. So we should not install one of them automatically and build the other one from scratch.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;PCRE (Perl-compatible regular-expression) Library&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="http://www.pcre.org" rel="nofollow"&gt;http://www.pcre.org&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to download pcre-8.12.zip and build according to the Readme and installation instruction.&lt;/li&gt;
&lt;li&gt;ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Simple steps:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; 
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;installcheck&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Xerces Library&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The OVAL Interpreter uses the open source Xerces library.  The binary was compiled with version 2.7.0 of the xerces-c library.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://xerces.apache.org/xerces-c" rel="nofollow"&gt;http://xerces.apache.org/xerces-c&lt;/a&gt; &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Older releases: &lt;a href="http://archive.apache.org/dist/xml/xerces-c" rel="nofollow"&gt;http://archive.apache.org/dist/xml/xerces-c/&lt;/a&gt;&lt;br /&gt;
Download:  xerces-c-src_2_7_0.tar.gz &lt;br /&gt;
(Revise20110711):What I used in ubuntu 8.04 is xerces-c-current.tar.gz&lt;br /&gt;
Follow the instructions to build:&lt;br /&gt;
&lt;a href="http://xerces.apache.org/xerces-c/build-winunix-2.html#UNIX" rel="nofollow"&gt;http://xerces.apache.org/xerces-c/build-winunix-2.html#UNIX&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Simple steps:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;XERCESCROOT&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;full&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xerces&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;src_2_7_0&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;   &lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;note&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;you&lt;/span&gt; &lt;span class="n"&gt;should&lt;/span&gt; &lt;span class="n"&gt;pay&lt;/span&gt; &lt;span class="n"&gt;attention&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;typo&lt;/span&gt;&lt;span class="o"&gt;!!!&lt;/span&gt;

&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;xercesc&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;runConfigure&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;plinux&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cgcc&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xg&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;minmem&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;nsocket&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tnative&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rpthread&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;this&lt;/span&gt; &lt;span class="n"&gt;cannot&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="n"&gt;ignored&lt;/span&gt;&lt;span class="o"&gt;!!!&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Important: check whether Xerces Library is really installed after the installation is completed. We can use the command "locate xerces", or go to the directory /usr/local/lib  and /usr/local/include to see whether there are files related to xerces. If yes, then OK.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Xalan Library&lt;br /&gt;
Download Xalan:&lt;br /&gt;
Xalan-C_1_10_0-src.tar.gz &lt;br /&gt;
&lt;a href="http://archive.apache.org/dist/xml/xalan-c" rel="nofollow"&gt;http://archive.apache.org/dist/xml/xalan-c/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Simple steps:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;XALANCROOT&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mydir&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xalan&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xalan&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;runConfigure&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;plinux&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cgcc&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xg&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; 
&lt;span class="n"&gt;Or&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt; 
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Important: check whether Xalanc Library is really installed after the installation is completed. We can go to the directory /usr/local/lib  and /usr/local/include to see whether there are files related to xalanc. If yes, then OK.&lt;/p&gt;
&lt;p&gt;Before build Xalan, you should first build Xerces.&lt;/p&gt;
&lt;p&gt;The OVAL Interpreter uses the open source Xalan library.  The binary was compiled with version 1.10.0 of the xalan-c library.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a href="http://apache.imghat.com/xml/xalan-c" rel="nofollow"&gt;http://apache.imghat.com/xml/xalan-c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When try to ./runConfigure, run into &lt;br /&gt;
Permission denied&lt;br /&gt;
This maybe caused by the Xerces. So you should first build Xerces 2.7 from scratch, rather than sudo apt-get install on Ubuntu by :&lt;br /&gt;
Sudo apt-get install libcrypto++-dev libxerces-c-dev libxml-security-c-dev&lt;/p&gt;
&lt;p&gt;When make Xalan-c, run into a Error:&lt;br /&gt;
Make&lt;span&gt;[1]&lt;/span&gt;: ***&lt;span&gt;[../../obj/XalanDOMString.o]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;Fix method:&lt;br /&gt;
Go to /xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp&lt;br /&gt;
And add &lt;br /&gt;
    #include &amp;lt;cstring&amp;gt;&lt;br /&gt;
into the file.&lt;br /&gt;
From: &lt;a href="http://lists.osgeo.org/pipermail/fdo-users/2009-October/001827.html" rel="nofollow"&gt;http://lists.osgeo.org/pipermail/fdo-users/2009-October/001827.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then comes another error:&lt;br /&gt;
/home/…/xml-xalanc/XMLSupport/FormatterToHTML.cpp:175:error:'memset' was not declared in this scope&lt;br /&gt;
Make&lt;span&gt;[1]&lt;/span&gt;: ***&lt;span&gt;[../../obj/FormatterToHTML.o]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;So the solution is to go to the FormatterToHTML.cpp file located in the given directory, and include &amp;lt;cstring&amp;gt;.&lt;br /&gt;
It is very simple. But how to find the way to fix this kind of problems is important!!!&lt;/p&gt;
&lt;p&gt;Similarly, you will run into another error:&lt;br /&gt;
/xml-xalan/c/src/xalanc/XSLT/EleNumber.cpp:1472:error:'memset' was not declared in this scope&lt;br /&gt;
Make&lt;span&gt;[1]&lt;/span&gt;: ***&lt;span&gt;[../../obj/EleNumber.o]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;/xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp:346:error:'strlen' was not declared in this scope&lt;br /&gt;
Make&lt;span&gt;[1]&lt;/span&gt;: ***&lt;span&gt;[../../obj/TestXPath.o]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;/xml-xalan/c/src/xalanc/TestXPath/TestXPath.cpp&lt;br /&gt;
/xml-xalan/c/src/xalanc/XalanExe.cpp&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;RPM&lt;br /&gt;
 yum install rpm&lt;br /&gt;
Apt-get install rpm &lt;br /&gt;
We'd better also install  librpm-dev to avoid further errors&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So it is &lt;br /&gt;
apt-get install rpm librpm-dev&lt;br /&gt;
      For more information about RPM please visit:&lt;br /&gt;
&lt;a href="http://www.rpm.org" rel="nofollow"&gt;http://www.rpm.org&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;APT&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Already have apt in Ubuntu&lt;br /&gt;
      The OVAL Interpreter can be compiled to utilize libraries provided by &lt;br /&gt;
      the Advanced Packaging Tool (APT) in order to complete certain APT-specific tasks.&lt;br /&gt;
      Utilizing APT libraries will allow the OVAL Interpreter to execute DPKG&lt;br /&gt;
      Probes.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="n"&gt;For&lt;/span&gt; &lt;span class="n"&gt;more&lt;/span&gt; &lt;span class="n"&gt;information&lt;/span&gt; &lt;span class="n"&gt;about&lt;/span&gt; &lt;span class="n"&gt;APT&lt;/span&gt; &lt;span class="n"&gt;please&lt;/span&gt; &lt;span class="n"&gt;visit&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="nl"&gt;http:&lt;/span&gt;&lt;span class="c1"&gt;//en.wikipedia.org/wiki/Advanced_Packaging_Tool&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Libgcrypt Library&lt;/p&gt;
&lt;p&gt;Before install Libgcrypt, you should first download and install libgpg-error:&lt;br /&gt;
&lt;a href="http://www.gnupg.org/download" rel="nofollow"&gt;http://www.gnupg.org/download&lt;/a&gt;&lt;br /&gt;
  Refer to Readme file for installation method.  &lt;br /&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here is a quick summary:&lt;br /&gt;
    1) Check that you have unmodified sources.  You can find instructions how to verify the sources below.  Don't skip this - it is an important step!&lt;br /&gt;
    2) Unpack the archive.  With GNU tar you can do it this way:&lt;br /&gt;
       "tar xjvf libgpg-error-x.y.tar.bz2"&lt;br /&gt;
    3) "cd libgpg-error-x.y"&lt;br /&gt;
    4) "./configure"&lt;br /&gt;
    5) "make"&lt;br /&gt;
    6) "make install"&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;OpenLDAP Library&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Before you install OPENLDAP , you should first install Berkeley DB library. Following the file in docs/installation/build_unix.html.&lt;br /&gt;
Download Berkeley DB:&lt;br /&gt;
&lt;a href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html" rel="nofollow"&gt;http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html&lt;/a&gt;&lt;br /&gt;
Here I chose 4.7.25  because 5.1.25 has some problem, it cannot be detected by OpenLAD. Always has the error:&lt;br /&gt;
OpenLDAP- configure error: BDB/HDB:Berkeley DB not available.&lt;/p&gt;
&lt;p&gt;Go to build_unix&lt;br /&gt;
    ../dist/configure&lt;br /&gt;
    make&lt;br /&gt;
    make install&lt;/p&gt;
&lt;p&gt;After installed Berkeley DB, if we began to ./configure OpenLDAP directory, we will run into an error:&lt;br /&gt;
OpenLDAP- configure error: BDB/HDB:Berkeley DB not available. Even if we have installed Berkeley DB!!!&lt;br /&gt;
We should first export variables.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;CPPFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"-I/usr/local/BerkeleyDB.4.7/include"&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;CPPFLAGS&lt;/span&gt;
&lt;span class="n"&gt;LDFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"-L/usr/local/lib -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.3/lib"&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;LDFLAGS&lt;/span&gt;
&lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/usr/local/BerkeleyDB.4.7/lib"&lt;/span&gt;
&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt;

&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Pasted from &lt;a href="http://www.linuxforums.org/forum/servers/54248-ldap-configure-not-recognizing-berkeley-db.html" rel="nofollow"&gt;http://www.linuxforums.org/forum/servers/54248-ldap-configure-not-recognizing-berkeley-db.html&lt;/a&gt;; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.openldap.org" rel="nofollow"&gt;http://www.openldap.org/&lt;/a&gt;&lt;br /&gt;
The source code is also available at the above Web site.  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Simple steps for OpenLDAP   2.4.23&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;depend&lt;/span&gt;
&lt;span class="n"&gt;Make&lt;/span&gt; 
&lt;span class="n"&gt;Make&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Build OVALDI:&lt;/p&gt;
&lt;p&gt;After installing the PCRE, Xerces, Xalan, and Libgcrypt libraries, change into the &lt;br /&gt;
      directory:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;ovaldi&lt;/span&gt; &lt;span class="n"&gt;directory&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;linux&lt;/span&gt;

  &lt;span class="n"&gt;From&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;directory&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;simply&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="s"&gt;"make"&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;OVAL&lt;/span&gt; &lt;span class="n"&gt;Interpreter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;1.Error: ../../XmlCommon.h:47: fatal error: xercesc/dom/DOM.hpp: No such file or directory&lt;br /&gt;
I opened the XmlCommon.h file and found it has&lt;br /&gt;
    #include &amp;lt;xercesc dom="" DOM.hpp=""&amp;gt;&lt;/p&gt;
&lt;p&gt;So I guess the reason it cannot find the header files is because they are not in the same directory of this XmlCommon.h file.&lt;br /&gt;
I searched a lot on the internet and tried to find out the correct way of adding header files from other directory. The solution said that we should add the directory of the header files into the header file search path of this project. But I didn't know where  to find the search path of ovaldi. Then I read a lot of webpages and realized that maybe the search path is included in the MAKEfile of ovaldi. So I edited the MAKEfile, it indeed worked!&lt;br /&gt;
Solution: just add &lt;br /&gt;
-I/home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/include/&lt;br /&gt;
Into the INCDIRS.&lt;br /&gt;
Like INCDIRS = -I/home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/include/      -I/usr/local/include…….&lt;/p&gt;
&lt;p&gt;Note that  &amp;lt;xercesc dom="" DOM.hpp=""&amp;gt; is right in the directory of /home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/include/&lt;br /&gt;
The directory should be connected smoothly. So you should not add &lt;br /&gt;
-I/home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/&lt;br /&gt;
Or &lt;br /&gt;
/home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/include/xercesc&lt;br /&gt;
But exactly /home/xiaoyan/ovalbuild/xerces-c-src_2_7_0/include/&lt;/p&gt;
&lt;p&gt;2.Error: ../../src/probes/linux/RPMInfoProbe.h:36: fatal error: rpm/rpmlib.h: No such file or directory&lt;br /&gt;
By using "locate rpm" I found that there is no "include" file. So I have to install the RPM headers package.&lt;/p&gt;
&lt;p&gt;Sudo apt-get install librpm-dev  (This should be done)&lt;/p&gt;
&lt;p&gt;3.Error:../../src/probes/independent/XmlFileContentProbe.h:45:fatal error: xalanc/Include/PlatformDefinitions.hpp: No such file or directory&lt;br /&gt;
Solution: add &lt;br /&gt;
-I/home/xiaoyan/ovalbuild/xml-xalan/c/src/xalanc/Include/&lt;br /&gt;
Into the INCDIRS.&lt;/p&gt;
&lt;p&gt;4.Error:&lt;/p&gt;
&lt;p&gt;../../src/probes/linux/RPMInforProbe.h :  int_32 is not declared in this scope  or  int_32 is not a type name? &lt;br /&gt;
Like this. &lt;br /&gt;
So I checked the file, and find that there is not type define for int_32. and then I searched on the internet, and find it is defined in rpmdb/header.h file. But since there is no rpmdb/header.h file in the rpm include directory, so I just edited the /usr/include/rpm/header.h file, and added one line:&lt;br /&gt;
typedef     int      int_32;&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="http://www.rpm.org/api/4.4.2.2/header_8h-source.html#l00092" rel="nofollow"&gt;http://www.rpm.org/api/4.4.2.2/header_8h-source.html#l00092&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then it works.&lt;/p&gt;
&lt;p&gt;5.Error:  I got the error as below:&lt;br /&gt;
    g++ -Wall -O -DLINUX -I/usr/local/include -I/usr/include -I../../src/linux -I../../src -I../../src/probes/unix -I../../src/probes/linux -I../../src/probes/independent -DPACKAGE_RPM -c -o ../../src/probes/linux/InetListeningServersProbe.o ../../src/probes/linux/InetListeningServersProbe.cpp ../../src/probes/linux/InetListeningServersProbe.cpp: In member function ‘StringVector&lt;em&gt; InetListeningServersProbe::GetProtocols(ObjectEntity&lt;/em&gt;)’: ../../src/probes/linux/InetListeningServersProbe.cpp:310: warning: the address of ‘allProtocols’ will always evaluate as ‘true’ ../../src/probes/linux/InetListeningServersProbe.cpp: In member function ‘StringVector&lt;em&gt; InetListeningServersProbe::GetLocalAddresses(std::string, ObjectEntity&lt;/em&gt;)’: ../../src/probes/linux/InetListeningServersProbe.cpp:422: warning: the address of ‘allLocalAddresses’ will always evaluate as ‘true’ ../../src/probes/linux/InetListeningServersProbe.cpp: In member function ‘StringVector&lt;em&gt; InetListeningServersProbe::GetLocalPorts(std::string, std::string, ObjectEntity&lt;/em&gt;)’: ../../src/probes/linux/InetListeningServersProbe.cpp:538: warning: the address of ‘allLocalPorts’ will always evaluate as ‘true’ g++ -Wall -O -DLINUX -I/usr/local/include -I/usr/include -I../../src/linux -I../../src -I../../src/probes/unix -I../../src/probes/linux -I../../src/probes/independent -DPACKAGE_RPM -c -o ../../src/probes/linux/RPMInfoProbe.o ../../src/probes/linux/RPMInfoProbe.cpp ../../src/probes/linux/RPMInfoProbe.cpp: In member function ‘StringVector&lt;em&gt; RPMInfoProbe::GetRPMNames(ObjectEntity&lt;/em&gt;)’: ../../src/probes/linux/RPMInfoProbe.cpp:181: warning: the address of ‘allNames’ will always evaluate as ‘true’ ../../src/probes/linux/RPMInfoProbe.cpp: In member function ‘char&lt;em&gt; RPMInfoProbe::readHeaderString(headerToken_s&lt;/em&gt;, int_32)’: ../../src/probes/linux/RPMInfoProbe.cpp:391: error: ‘headerGetEntry’ was not declared in this scope ../../src/probes/linux/RPMInfoProbe.cpp: In member function ‘int_32 RPMInfoProbe::readHeaderInt32(headerToken_s&lt;em&gt;, int_32)’: ../../src/probes/linux/RPMInfoProbe.cpp:413: error: ‘headerGetEntry’ was not declared in this scope ../../src/probes/linux/RPMInfoProbe.cpp: In member function ‘void RPMInfoProbe::ChildGetSigKeyId(int, int, std::string)’: ../../src/probes/linux/RPMInfoProbe.cpp:456: warning: deprecated conversion from string constant to ‘char&lt;/em&gt;’ ../../src/probes/linux/RPMInfoProbe.cpp:457: warning: deprecated conversion from string constant to ‘char&lt;em&gt;’ ../../src/probes/linux/RPMInfoProbe.cpp:458: warning: deprecated conversion from string constant to ‘char&lt;/em&gt;’ ../../src/probes/linux/RPMInfoProbe.cpp:498: error: invalid conversion from ‘const char&lt;em&gt;&lt;/em&gt;&lt;em&gt;’ to ‘char&lt;/em&gt; const’ ../../src/probes/linux/RPMInfoProbe.cpp:498: error: initializing argument 3 of ‘int rpmcliQuery(rpmts_s&lt;em&gt;, rpmQVKArguments_s&lt;/em&gt;, char&lt;em&gt; const&lt;/em&gt;)’ &lt;/p&gt;
&lt;p&gt;Reply from someone:&lt;/p&gt;
&lt;p&gt;I think the show-stopper build errors come from your rpm library, which is newer than what ovaldi supports, and isn't likely fixable without significantly rewriting the RPM info probe. What you might try is removing support for the RPM-related tests altogether, so it never attempts to compile that code. That should be pretty simple: just modify the makefile, commenting out the value for the PACKAGE_RPM variable.&lt;/p&gt;
&lt;p&gt;Pasted from &lt;a href="http://sourceforge.net/projects/ovaldi/forums/forum/776940/topic/4508857"&gt;http://sourceforge.net/projects/ovaldi/forums/forum/776940/topic/4508857&lt;/a&gt;; &lt;/p&gt;
&lt;p&gt;So I changed the Makefile in ovaldi-5.9.1-src/project/linux:&lt;br /&gt;
vi     Makefile&lt;br /&gt;
Then&lt;br /&gt;
Comment the line:&lt;br /&gt;
// PACKAGE_RPM = $(shell /usr/bin/env  rpm  --version 2&amp;gt;/dev/null)&lt;/p&gt;
&lt;p&gt;6.Error:&lt;br /&gt;
../../src/probes/linux/DPKGInfoProbe.h:36: fatal error: apt-pkg/progress.h: No such file or directory&lt;br /&gt;
compilation terminated.&lt;/p&gt;
&lt;p&gt;Solution: sudo apt-get install libapt-pkg-dev&lt;/p&gt;
&lt;p&gt;Reference&lt;br /&gt;
&lt;a href="http://packages.ubuntu.com/hardy/amd64/libapt-pkg-dev/filelist" rel="nofollow"&gt;http://packages.ubuntu.com/hardy/amd64/libapt-pkg-dev/filelist&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;7.Error:&lt;br /&gt;
/usr/bin/ld: cannot find -lxerces-c&lt;/p&gt;
&lt;p&gt;root@nfs-desktop:/home/xiaoyan/ovaldi-5.9.1-src/project/linux#  cd /usr/lib&lt;br /&gt;
root@nfs-desktop:/usr/lib# ln -s ./libxerces-c.so.28 ./libxerces-c.so&lt;br /&gt;
root@nfs-desktop:/usr/lib# ln -s ./libxalan-c.so.110 ./libxalan-c.so&lt;/p&gt;
&lt;p&gt;Reference:&lt;br /&gt;
&lt;a href="http://www.linuxquestions.org/questions/linux-software-2/make-error-usr-bin-ld-cannot-find-lxext-365646" rel="nofollow"&gt;http://www.linuxquestions.org/questions/linux-software-2/make-error-usr-bin-ld-cannot-find-lxext-365646/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But actually the version of libxerces I built is 2.7, not 2.8. Something must go wrong when I tried different versions on the machine. When I go to /usr/lib, I can found libxerces-c.so.28, but no libxerces-c.so.27.  So I tried to rebuild libxerces 2.7 and libxalan 1.10 from scratch again. And then I found all the files of version 2.7 is located in /usr/local/lib, not /usr/lib.&lt;/p&gt;
&lt;p&gt;OVAL Builds simple process:&lt;br /&gt;
    Go to ovaldi-5.9.1-src/project/linux&lt;br /&gt;
    Make clean&lt;br /&gt;
    Make&lt;br /&gt;
    Then it will product a new executable file in /linux/Release/ovaldi&lt;br /&gt;
To execute it, use&lt;br /&gt;
    ./ovaldi -m -o definitions.xml&lt;/p&gt;
&lt;p&gt;When I use the oval.xml ( &lt;a href="http://oval.mitre.org/rep-data/org.mitre.oval/index.html" rel="nofollow"&gt;http://oval.mitre.org/rep-data/org.mitre.oval/index.html&lt;/a&gt; )as the definitions.xml file to scan the system, ovaldi produced an error:  xerces memory not enough, things like that...&lt;br /&gt;
The reason is because the definitions.html file  contains all the systems and it is too big for my computer. So I changed to another small file which only contains information about unix, &lt;br /&gt;
unix.xml ( &lt;a href="http://oval.mitre.org/rep-data/org.mitre.oval/v/index.html" rel="nofollow"&gt;http://oval.mitre.org/rep-data/org.mitre.oval/v/index.html&lt;/a&gt; )&lt;br /&gt;
Then finally the ovaldi 5.9.1 worked on ubuntu.&lt;br /&gt;
Note: some monthly archive does not work well because the definition method is different. It always prompt: data type not defined, or things like this.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 18:12:37 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3dd691c4e91fec1cb9c3076a970605380906f400</guid></item><item><title>Installation modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="installation-information"&gt;Installation Information&lt;/h2&gt;
&lt;h3 id="red-hat-linux-installation"&gt;Red Hat Linux Installation&lt;/h3&gt;
&lt;p&gt;The OVAL Interpreter can be installed and run on Red Hat Enterprise Linux 5. Install the RPM simply by running the following command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;rpm&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ivh&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Definition&lt;/span&gt; &lt;span class="n"&gt;Interpreter&lt;/span&gt; &lt;span class="n"&gt;RPM&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The RPM places the following files on the system. To learn their exact location after install, run: rpm -ql ovaldi.&lt;/p&gt;
&lt;p&gt;Executables:&lt;br /&gt;
    ovaldi.sh - Shell Script to simplify execution of the Definition Interpreter&lt;br /&gt;
    ovaldi - Definition Interpreter binary&lt;/p&gt;
&lt;p&gt;Libraries:&lt;br /&gt;
    libxerces-c.so.27.0 - Xerces XML library&lt;br /&gt;
    libxalan-c.so.110.0 - Xalan XSL library&lt;br /&gt;
    libxalanMsg.so.110.0 - Xalan Message library&lt;br /&gt;
    libpcre.so.0.0.1 - PCRE Regular Expression library&lt;/p&gt;
&lt;p&gt;Documentation:&lt;br /&gt;
    README.txt - This file&lt;br /&gt;
    terms.txt - License and Terms of Use&lt;br /&gt;
    version.txt - OVAL Interpreter change log&lt;/p&gt;
&lt;p&gt;XML Schema:&lt;br /&gt;
    OVAL schema files&lt;br /&gt;
    xmldsig-core-schema.xsd - XML digital signature schema&lt;/p&gt;
&lt;p&gt;XSL:&lt;br /&gt;
    results_to_html.xsl - A simple xsl that formats an oval-results document as html&lt;/p&gt;
&lt;p&gt;The .so file for the Xerces library must be made accessible to the Definition Interpreter binary. The ovaldi RPM places a&lt;br /&gt;
pre-compiled version in /usr/lib/ovaldi/ and appends this directory to your /etc/ld.so.conf file. To run the Definition Interpreter, run:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="mf"&gt;1.&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sbin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;or &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="mf"&gt;2.&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sbin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;share&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ovaldi&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt; &lt;span class="n"&gt;definitions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A result summary will be output to the screen, and detailed System Characteristic and Output Results will be output to your current working directory.&lt;/p&gt;
&lt;h3 id="microsoft-windows-installation"&gt;Microsoft Windows Installation&lt;/h3&gt;
&lt;p&gt;The OVAL Interpreter can be installed and run on Windows XP, Windows Vista, Windows Server 2003, Windows Server 2008, and Windows 7. Install the Interpreter by running the installer executable: ovaldi-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-setup.exe. The installer is a self-extracting zip archive that prompts the user for an installation directory ('C:\Program Files\OVAL' by default) and installs the Interpreter and its supporting files.&lt;/p&gt;
&lt;p&gt;Executables:&lt;br /&gt;
    ovaldi.exe - OVAL Interpreter binary&lt;/p&gt;
&lt;p&gt;Libraries:&lt;br /&gt;
    xerces-c_2_7_0.dll - Xerces XML library&lt;br /&gt;
    pcre.dll - Perl-compatible regular-expression library&lt;br /&gt;
    Xalan-C_1_10.dll - Xalan XSLT library&lt;br /&gt;
    XalanMessages_1_10.dll - Xalan XSLT library&lt;/p&gt;
&lt;p&gt;Documentation:&lt;br /&gt;
    README.txt - This file&lt;br /&gt;
    terms.txt - License and Terms of Use&lt;br /&gt;
    version.txt - Definition Interpreter change log&lt;/p&gt;
&lt;p&gt;XML Schema:&lt;br /&gt;
    OVAL schema files&lt;br /&gt;
    xmldsig-core-schema.xsd - XML digital signature schema&lt;/p&gt;
&lt;p&gt;XSL:&lt;br /&gt;
    results_to_html.xsl - A simple xsl that formats an oval-results document as html&lt;/p&gt;
&lt;p&gt;Running the OVAL Interpreter:&lt;br /&gt;
A simple scan, using the OVAL Interpreter, can be peformed by running the following&lt;br /&gt;
command line arguments.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ovaldi.exe -m -o &amp;lt;OVAL Definitions document&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;A result summary will be output to the screen, and detailed System Characteristic and Output Results will be output to the installation directory.&lt;/p&gt;
&lt;p&gt;Also, on some Windows systems, the OVAL Interpreter may fail with the following error message when executed.&lt;/p&gt;
&lt;p&gt;“The application failed to initialize properly (0xc0150002). Click OK to terminate the application.”&lt;/p&gt;
&lt;p&gt;This error message occurs when the run-time components of Visual Studio, that are required to run an application developed with Visual Studio, are not installed.  If you receive this error message while executing the OVAL Interpreter, please install the appropriate VC++ redistributable package that can be obtained at the following links.&lt;/p&gt;
&lt;p&gt;Visual Studio C++ 2010 Redistributable Package (x86) &lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=5555" rel="nofollow"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=5555&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visual Studio C++ 2010 Redistributable Package (x64) &lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=14632" rel="nofollow"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=14632&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The VC++ redistributable package will install the required run-time components.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 17:34:37 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net020e4f6c0da6a9f45d3748a1f8ac8aed32da0547</guid></item><item><title>Supported tests modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Supported%2520tests/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The OVAL Interpreter supports a large number of the tests defined in the OVAL Language but not all of them. Support for tests has been developed as needed due largely to development prioritization.&lt;/p&gt;
&lt;p&gt;The following tests are currently supported in the OVAL Interpreter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ind-def:environmentvariable_test&lt;/li&gt;
&lt;li&gt;ind-def:environmentvariable58_test&lt;/li&gt;
&lt;li&gt;ind-def:family_test&lt;/li&gt;
&lt;li&gt;ind-def:filehash_test&lt;/li&gt;
&lt;li&gt;ind-def:filehash58_test&lt;/li&gt;
&lt;li&gt;ind-def:filemd5_test&lt;/li&gt;
&lt;li&gt;ind-def:ldap_test&lt;/li&gt;
&lt;li&gt;ind-def:textfilecontent_test&lt;/li&gt;
&lt;li&gt;ind-def:textfilecontent54_test&lt;/li&gt;
&lt;li&gt;ind-def:unknown_test&lt;/li&gt;
&lt;li&gt;ind-def:variable_test&lt;/li&gt;
&lt;li&gt;ind-def:xmlfilecontent_test&lt;/li&gt;
&lt;li&gt;linux-def:dpkginfo_test&lt;/li&gt;
&lt;li&gt;linux-def:iflisteners_test&lt;/li&gt;
&lt;li&gt;linux-def:inetlisteningservers_test&lt;/li&gt;
&lt;li&gt;linux-def:partition_test&lt;/li&gt;
&lt;li&gt;linux-def:rpminfo_test&lt;/li&gt;
&lt;li&gt;linux-def:rpmverify_test&lt;/li&gt;
&lt;li&gt;linux-def:rpmverifyfile_test&lt;/li&gt;
&lt;li&gt;linux-def:rpmverifypackage_test&lt;/li&gt;
&lt;li&gt;linux-def:selinuxsecuritycontext_test&lt;/li&gt;
&lt;li&gt;linux-def:selinuxboolean_test&lt;/li&gt;
&lt;li&gt;unix-def:file_test&lt;/li&gt;
&lt;li&gt;unix-def:inetd_test&lt;/li&gt;
&lt;li&gt;unix-def:interface_test&lt;/li&gt;
&lt;li&gt;unix-def:password_test&lt;/li&gt;
&lt;li&gt;unix-def:process_test&lt;/li&gt;
&lt;li&gt;unix-def:process58_test&lt;/li&gt;
&lt;li&gt;unix-def:runlevel_test&lt;/li&gt;
&lt;li&gt;unix-def:shadow_test&lt;/li&gt;
&lt;li&gt;unix-def:sysctl_test&lt;/li&gt;
&lt;li&gt;unix-def:uname_test&lt;/li&gt;
&lt;li&gt;unix-def:xinetd_test&lt;/li&gt;
&lt;li&gt;win-def:accesstoken_test&lt;/li&gt;
&lt;li&gt;win-def:activedirectory_test&lt;/li&gt;
&lt;li&gt;win-def:auditeventpolicy_test&lt;/li&gt;
&lt;li&gt;win-def:auditeventpolicysubcategories_test&lt;/li&gt;
&lt;li&gt;win-def:cmdlet_test&lt;/li&gt;
&lt;li&gt;win-def:dnscache_test&lt;/li&gt;
&lt;li&gt;win-def:file_test&lt;/li&gt;
&lt;li&gt;win-def:fileauditedpermissions_test&lt;/li&gt;
&lt;li&gt;win-def:fileauditedpermissions53_test&lt;/li&gt;
&lt;li&gt;win-def:fileeffectiverights_test&lt;/li&gt;
&lt;li&gt;win-def:fileeffectiverights53_test&lt;/li&gt;
&lt;li&gt;win-def:group_test&lt;/li&gt;
&lt;li&gt;win-def:group_sid_test&lt;/li&gt;
&lt;li&gt;win-def:interface_test&lt;/li&gt;
&lt;li&gt;win-def:lockoutpolicy_test&lt;/li&gt;
&lt;li&gt;win-def:metabase_test&lt;/li&gt;
&lt;li&gt;win-def:passwordpolicy_test&lt;/li&gt;
&lt;li&gt;win-def:port_test&lt;/li&gt;
&lt;li&gt;win-def:printereffectiverights_test&lt;/li&gt;
&lt;li&gt;win-def:process_test&lt;/li&gt;
&lt;li&gt;win-def:process58_test&lt;/li&gt;
&lt;li&gt;win-def:registry_test&lt;/li&gt;
&lt;li&gt;win-def:regkeyauditedpermissions_test&lt;/li&gt;
&lt;li&gt;win-def:regkeyauditedpermissions53_test&lt;/li&gt;
&lt;li&gt;win-def:regkeyeffectiverights_test&lt;/li&gt;
&lt;li&gt;win-def:regkeyeffectiverights53_test&lt;/li&gt;
&lt;li&gt;win-def:serviceeffectiverights_test&lt;/li&gt;
&lt;li&gt;win-def:sharedresource_test&lt;/li&gt;
&lt;li&gt;win-def:sid_sid_test&lt;/li&gt;
&lt;li&gt;win-def:sid_test&lt;/li&gt;
&lt;li&gt;win-def:user_test&lt;/li&gt;
&lt;li&gt;win-def:user_sid_test&lt;/li&gt;
&lt;li&gt;win-def:user_sid55_test&lt;/li&gt;
&lt;li&gt;win-def:volume_test&lt;/li&gt;
&lt;li&gt;win-def:wmi_test&lt;/li&gt;
&lt;li&gt;win-def:wmi57_test&lt;/li&gt;
&lt;li&gt;win-def:wuaupdatesearcher_test&lt;/li&gt;
&lt;li&gt;sol-def:patch54_test&lt;/li&gt;
&lt;li&gt;sol-def:isainfo_test&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are looking for a test and don't see it on the list above please review the &lt;a class="" href="http://sourceforge.net/p/ovaldi/feature-requests"&gt;Feature Requests&lt;/a&gt; for the OVAL Interpreter. If the test you are looking for is not already being requested please submit a request so that we can consider implementing it for a future release. If you find a feature request for the test you are looking for please add a comment to the request so that we will know you would also like the OVAL Interpreter to support the test.&lt;/p&gt;
&lt;p&gt;For more information about the tests listed above please see the &lt;a class="" href="http://oval.mitre.org/language" rel="nofollow"&gt;OVAL Language&lt;/a&gt; documentation.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 17:26:16 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net17a4000b3f15c0514c59eee2f90e83ca8e8434f1</guid></item><item><title>External builds modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/External%2520builds/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;External builds of the OVAL Definition Interpreter are available in the following locations:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Platform&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;HTTP Link&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Debian&lt;/td&gt;
&lt;td&gt;&lt;a href="http://packages.debian.org/ovaldi" rel="nofollow"&gt;http://packages.debian.org/ovaldi&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fedora 7&lt;/td&gt;
&lt;td&gt;&lt;a href="https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00021.html" rel="nofollow"&gt;https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00021.html&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fedora 8&lt;/td&gt;
&lt;td&gt;&lt;a href="https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00079.html" rel="nofollow"&gt;https://www.redhat.com/archives/fedora-package-announce/2007-December/msg00079.html&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SUSE_Linux, openSUSE, &amp;amp; SLE&lt;/td&gt;
&lt;td&gt;&lt;a href="http://download.opensuse.org/repositories/home:/thomasrjones" rel="nofollow"&gt;http://download.opensuse.org/repositories/home:/thomasrjones&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ubuntu (Official)&lt;/td&gt;
&lt;td&gt;&lt;a href="http://packages.ubuntu.com/search?keywords=ovaldi" rel="nofollow"&gt;http://packages.ubuntu.com/search?keywords=ovaldi&lt;/a&gt; (latest ovaldi-5.7.2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ubuntu 12.04 (Unofficial)&lt;/td&gt;
&lt;td&gt;&lt;a href="http://infosecblog.tumblr.com/ovaldi" rel="nofollow"&gt;http://infosecblog.tumblr.com/ovaldi&lt;/a&gt; (ovaldi-5.10.1.x)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 17:21:35 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netd08b2b7f56f7192b9fd371c55a719be89959deff</guid></item><item><title>Home modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -18,23 +18,23 @@

 ## Supported Tests

-The OVAL Interpreter does not currently support all tests defined in the OVAL Language. For a complete listing of the tests that are supported see the [[Supported tests]] page.
+The OVAL Interpreter does not currently support all tests defined in the OVAL Language. For a complete listing of the tests that are supported see the [Supported tests](Supported tests) page.

 ## Installation Information

-Please refer to the [[Installation]] page for detailed installation instructions.
+Please refer to the [Installation](Installation) page for detailed installation instructions.

 ## External Builds

-Please refer to the [[External builds]] page for a listing of known external builds of the OVAL Interpreter.
+Please refer to the [External builds](External builds) page for a listing of known external builds of the OVAL Interpreter.

 ## Build Notes

-Please refer to the community contributed [[Build notes]] page for notes on building the OVAL Interpreter on numerous platforms that are not officially supported by MITRE.
+Please refer to the community contributed [Build notes](Build notes) page for notes on building the OVAL Interpreter on numerous platforms that are not officially supported by MITRE.

 Probe Development

-Please refer to the [[Probe Development]] page for guidance on developing your own probes.
+Please refer to the [Probe Development](Probe Development) page for guidance on developing your own probes.

 [[project_screenshots]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 17:17:04 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net63a320171d110c0c8ed024480e6056650b7f23be</guid></item><item><title>Probe Development modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Probe%2520Development/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="background"&gt;Background&lt;/h2&gt;
&lt;p&gt;A &lt;em&gt;probe&lt;/em&gt; is a class written as a &lt;a class="" href="http://en.wikipedia.org/wiki/Singleton_pattern" rel="nofollow"&gt;singleton&lt;/a&gt;, which is responsible for collecting &lt;em&gt;items&lt;/em&gt; from a computer subject to the constraints expressed in an &lt;em&gt;object&lt;/em&gt;.&lt;/p&gt;
&lt;h3 id="objects-and-items"&gt;Objects and Items&lt;/h3&gt;
&lt;h4 id="object"&gt;Object&lt;/h4&gt;
&lt;p&gt;An object represents something similar to a search specification.  Each object contains one or more &lt;em&gt;entities&lt;/em&gt;, which describe constraints on individual properties of the items to be collected.  Since items also have entities, we will refer to those associated with objects as &lt;em&gt;object entities&lt;/em&gt; when it would otherwise be ambiguous.&lt;/p&gt;
&lt;p&gt;An object's entities are chosen to represent that minimal set of properties which are required to uniquely identify a particular item on a system.  For example, every network interface on a unix system has a unique name.  Therefore, the interface object for unix only needs one entity: a name.&lt;/p&gt;
&lt;h4 id="item"&gt;Item&lt;/h4&gt;
&lt;p&gt;An item represents the result of a search.  Items also contain entities, which we will call &lt;em&gt;item entities&lt;/em&gt;.  Each item entity which corresponds to an object entity must satisfy the constraint expressed by the object.  Items may have other entities as well, as specified by the OVAL language.  All item entities must be constructed according to the language schema, which dictates things like legal values and the ordering of item entities within their containing item.&lt;/p&gt;
&lt;p&gt;The task of the probe author is to write code to collect system information in whatever way is appropriate, subject to the constraints expressed by the object, and construct schema-compliant items representing this information.&lt;/p&gt;
&lt;h2 id="software-architecture"&gt;Software Architecture&lt;/h2&gt;
&lt;p&gt;All probes extend an abstract class named &lt;code&gt;AbsProbe&lt;/code&gt;.  The relevant parts are below.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;typedef&lt;/span&gt; &lt;span class="n"&gt;vector&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;ItemVector&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;class&lt;/span&gt; &lt;span class="n"&gt;AbsProbe&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

&lt;span class="nl"&gt;public:&lt;/span&gt;

    &lt;span class="n"&gt;virtual&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="n"&gt;AbsProbe&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="nl"&gt;protected:&lt;/span&gt;

    &lt;span class="n"&gt;virtual&lt;/span&gt; &lt;span class="n"&gt;ItemVector&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;CollectItems&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Object&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;virtual&lt;/span&gt; &lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;CreateItem&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The &lt;code&gt;CollectItems(Object*)&lt;/code&gt; method is the primary method you would implement to perform the search.&lt;/p&gt;
&lt;p&gt;In addition, you must implement a static method &lt;code&gt;Instance()&lt;/code&gt;, which returns your singleton.  It is not shown in AbsProbe because static methods&lt;br /&gt;
cannot be virtual.  And obviously, the constructor in your singleton subclass should probably be private.&lt;/p&gt;
&lt;h3 id="constructing-an-item"&gt;Constructing an Item&lt;/h3&gt;
&lt;p&gt;The pure-virtual method &lt;code&gt;CreateItem()&lt;/code&gt; must be implemented in your probe.  You may then call this method whenever you want to create a new item.  It simply creates an item with particular XML schema details, e.g. tag name, namespace, qname prefix, etc.  Here is a sample:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;InterfaceProbe&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;CreateItem&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s"&gt;"http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#unix"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s"&gt;"unix-sc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s"&gt;"http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#unix unix-system-characteristics-schema.xsd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;OvalEnum&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;STATUS_ERROR&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s"&gt;"interface_item"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The item's ID (the first constructor parameter) is always set to 0.  It will be automatically set to a unique value by the interpreter.&lt;/p&gt;
&lt;h3 id="constructing-item-entities"&gt;Constructing Item Entities&lt;/h3&gt;
&lt;p&gt;Constructing an item entity is straightforward; most of the time you only need to pass the entity's name and value, and maybe a datatype.  But there is one important detail to remember: each item entity has within it a flag which tells the interpreter whether it corresponds to an object entity.  Since an object's entities are selected to uniquely identify items, this effectively lets the interpreter determine which of an item's properties uniquely identify the item.  This is necessary to compute a unique identifier which is used to cache and retrieve the item.  So when creating an item, don't forget to set this flag on the appropriate entities, or the caching system won't work, and the interpreter will generate invalid results.&lt;/p&gt;
&lt;h3 id="error-handling"&gt;Error Handling&lt;/h3&gt;
&lt;p&gt;The OVAL language contains many symbols representing particular error and status conditions.  It is important to handle errors in a way that is sensible and compliant with the language.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;em&gt;flag&lt;/em&gt; is associated with a "collected object", i.e. it represents what happened during the collection (complete, error, not collected, etc).&lt;/li&gt;
&lt;li&gt;A &lt;em&gt;status&lt;/em&gt; is assocated with an individual item.  It takes on values which are a subset of the flag values.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The interpreter automatically computes the flag for a collected object based on the status values of its items.  You must be careful to set appropriate status values, but currently need not concern yourself with the flags, since the interpreter handles them automatically.  The accepted policy for error handling is as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If an error occurs before there is enough information to begin searching, throw a &lt;code&gt;ProbeException&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If an error occurs while getting the value for an item entity which you know would have otherwise matched the object, set an appropriate status value on ''both'' the item entity and the item, e.g. &lt;code&gt;OvalEnum::STATUS_ERROR&lt;/code&gt;.  Attempt to continue to search for more items.&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Caveat:&lt;/em&gt; Be practical and use common sense in the application of this rule.  A strict interpretation means you &lt;strong&gt;must&lt;/strong&gt; always attempt to match as many object entities as you can, even if you can tell right from the beginning that there was an error (e.g. because the language requires a value from a predefined set, but the user provided a value that was not in the set).  This can cause a combinatorial explosion in the number of items, for objects with many entities which reference variables.  Item entities may not reference variables, so you have to dereference all of the object's variable references to obtain values to build items with, which can produce a lot of items due to that one error.  It may not make sense to build a single partial item, nor be practical to build large numbers of complete items.  The most sensible thing to do would be to just throw an exception.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If an error occurs after searching has begun, but is not associated with a matching item, throw a &lt;code&gt;ProbeException&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="integration-into-the-interpreter"&gt;Integration Into The Interpreter&lt;/h3&gt;
&lt;p&gt;Probes are obtained via an instance of &lt;code&gt;ProbeFactory&lt;/code&gt;.  There are different implementations of this class for different platforms.  They live in subdirectories of &lt;tt&gt;&lt;em&gt;&amp;lt;checkout dir&amp;gt;&lt;/em&gt;/src&lt;/tt&gt; according to the platform, e.g. &lt;tt&gt;src/windows&lt;/tt&gt;, &lt;tt&gt;src/linux&lt;/tt&gt;, etc.&lt;/p&gt;
&lt;p&gt;The probe factories have a static &lt;code&gt;GetProbe(std::string)&lt;/code&gt; method which gets the probe singleton instance corresponding to the given object element name.  The factories we've written thus far simply check the name in a big if-then-else statement, and return the appropriate probe.  So in order to integrate your probe into the interpreter, you must locate the probe factory for your platform, and then insert code to check for the corresponding object name and instantiate the probe.  The code looks roughly like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;AbsProbe&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ProbeFactory&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;GetProbe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"family_object"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;probe&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FamilyProbe&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;Instance&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"filemd5_object"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;probe&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FileMd5Probe&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;Instance&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"filehash_object"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="implementation"&gt;Implementation&lt;/h2&gt;
&lt;h3 id="basics"&gt;Basics&lt;/h3&gt;
&lt;p&gt;To obtain the parameters of the search, first get the entities of the given object.  These will be of type &lt;code&gt;ObjectEntity&lt;/code&gt;.  This class has a method &lt;code&gt;GetEntityValues(StringVector&amp;amp;)&lt;/code&gt; (inherited from &lt;code&gt;AbsEntity&lt;/code&gt;), which you should use to get the entity's values.  This method handles details like variable references, variable flags, etc, which probes should not handle themselves.  The values will be inserted into the given vector.  The return value is a flag, which gives the status of the variable evaluation, if one was done.  If a variable reference was not used, &lt;code&gt;OvalEnum::FLAG_COMPLETE&lt;/code&gt; is always returned.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Currently, flag values are ignored by probes, so you may ignore the return value of this method.&lt;/p&gt;
&lt;p&gt;If you need to check whether an item matches your object, the best way to do it is via one of two Analyze methods.  Most of the time, it is easiest to create an &lt;code&gt;ItemEntity&lt;/code&gt; and then call &lt;code&gt;ObjectEntity::Analyze(ItemEntity*)&lt;/code&gt; (inherited from &lt;code&gt;AbsEntity&lt;/code&gt;) on it.  This method automatically handles variable references and all of the various possible operators (e.g. equals, not equals, pattern match, etc) to determine whether there is a match.  If there is a match, &lt;code&gt;OvalEnum::RESULT_TRUE&lt;/code&gt; is returned.  If any other result is returned, there was not a match.&lt;/p&gt;
&lt;p&gt;Another alternative is to create a complete &lt;code&gt;Item&lt;/code&gt;, and invoke &lt;code&gt;Object::Analyze(Item*)&lt;/code&gt; on it.  If the item doesn't match though, all the work creating it is wasted, and there may be a lot of junk to delete, so there may be a performance penalty.  But it can potentially simplify probe code. &lt;/p&gt;
&lt;p&gt;Rough pseudocode might look like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;ItemVector&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;YourProbe&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;CollectItems&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Object&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ObjectEntity&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;usernameEntity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;GetElementByName&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s"&gt;"username"&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// search through system data in a loop...&lt;/span&gt;
    &lt;span class="c1"&gt;// see if we found a match&lt;/span&gt;
    &lt;span class="n"&gt;ItemEntity&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;nameItemEntity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ItemEntity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;OvalEnum&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;DATATYPE_STRING&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usernameEntity&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;Analyze&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nameItemEntity&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;OvalEnum&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;RESULT_TRUE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// found a match!&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt;
        &lt;span class="n"&gt;delete&lt;/span&gt; &lt;span class="n"&gt;nameItemEntity&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id="advanced-strategies"&gt;Advanced Strategies&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;CollectItems(Object*)&lt;/code&gt; method can be implemented in any way you like.  But it should be made as efficient as possible.  Some ideas we've used include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you know the total number of items is small, you can pre-compute and cache all items when the probe is first instantiated.  Then all you need to do is search through the list to return the matches.&lt;/li&gt;
&lt;li&gt;Try to be smarter about analyzing the search parameters to see if you can speed up the search.  Searching an entire filesystem or windows registry can take a very long time, so it should be avoided if possible.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 17:11:24 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net1cfea8f3e7e791da6114f427fb028930a7509326</guid></item><item><title>Home modified by David Rothenberg</title><link>https://sourceforge.net/p/ovaldi/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,42 @@
-Welcome to your wiki!
+## Introduction
+The [OVAL Interpreter](http://sourceforge.net/projects/ovaldi) is a freely available reference implementation created to show how information can be collected from a computer for testing, to evaluate and carry out the OVAL definitions for that platform, and to report the results of the tests.

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

-The wiki uses [Markdown](/p/ovaldi/wiki/markdown_syntax/) syntax.
+MITRE developed the Reference Interpreter to demonstrate the usability of OVAL definitions, and for definition writers to use to ensure correct syntax and adherence to the [OVAL Language](http://oval.mitre.org/language/download/schema/index.html) during the development of new definitions. It is not a fully functional scanning tool and has a simplistic user interface, but running the Interpreter will provide you with a list of OVAL Definition IDs and their evaluation result. Additionally the Interpreter will produce an oval-results document with detailed results information that can be imported into other compatible tools.

+
+MITRE offers the Interpreters, source code, schemas, and data files at no cost to further the OVAL effort and in hopes that individuals and organizations will build and expand upon them. If you are interested in contributing to the OVAL Interpreter please send an email to [oval@mitre.org](mailto:oval@mitre.org).
+
+
+**Important:** Please note that the OVAL Interpreter is not an enterprise scanning tool; it is a simplistic, command-line interface that has the ability to execute OVAL Content on an end system. To learn more about organizations that provide OVAL content and tools or otherwise support the OVAL Language, please see the [OVAL Adoption Program](http://oval.mitre.org/adoption/).
+
+## License Information
+The OVAL Interpreter, which is free to download and use, is licensed under a [BSD license](http://ovaldi.svn.sourceforge.net/viewvc/ovaldi/trunk/docs/terms.txt).
+
+## Version Information
+The OVAL Definition Interpreter has four components to its version. The first three components align with the major, minor, and update release versions of the OVAL Language. The fourth component is the build number of the Interpreter. This build number is automatically incremented as we produce and test new releases of the OVAL Definition Interpreter binaries. The complete version identifier has the following form: MAJOR.MINOR.UPDATE.BUILD. For example, "5.10.1.1". When a new release of the Interpreter is produced the file that contains the build number (Version.cpp) is committed to the source repository. Then the source is tagged. New binaries and source bundles are then produced by exporting the tagged source and building from it.
+
+## Supported Tests
+
+The OVAL Interpreter does not currently support all tests defined in the OVAL Language. For a complete listing of the tests that are supported see the [[Supported tests]] page.
+
+## Installation Information
+
+Please refer to the [[Installation]] page for detailed installation instructions.
+
+## External Builds
+
+Please refer to the [[External builds]] page for a listing of known external builds of the OVAL Interpreter.
+
+## Build Notes
+
+Please refer to the community contributed [[Build notes]] page for notes on building the OVAL Interpreter on numerous platforms that are not officially supported by MITRE.
+
+Probe Development
+
+Please refer to the [[Probe Development]] page for guidance on developing your own probes.
+
+
+[[project_screenshots]]
 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Rothenberg</dc:creator><pubDate>Wed, 06 Aug 2014 16:37:25 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb2c59d7f25931e6b802859c79b5750d99d20cf04</guid></item><item><title>Home modified by Bryan Worrell</title><link>https://sourceforge.net/p/ovaldi/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/ovaldi/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/userid-1997369/"&gt;Bob Roberge&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/bworrell/"&gt;Bryan Worrell&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/bchandra/"&gt;Chandrashekhar B&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/cmschmidt3/"&gt;Charles Schmidt&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/cweathers/"&gt;Chris Weathers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/djhaynes/"&gt;Danny Haynes&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/rothenberg/"&gt;David Rothenberg&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/esalters/"&gt;Elijah Salters&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/jfinegan/"&gt;James Finegan&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/jonathanobaker/"&gt;Jonathan Baker&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/tomanishkb/"&gt;Maneesh  KB&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/mhansbury/"&gt;Matthew Hansbury&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/chishomi/"&gt;Michael Chisholm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/mirz/"&gt;Miroslaw Zurek&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/natprz/"&gt;Nathan Przybyszewski&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/preetisecpod/"&gt;Preeti&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/rsandeep/"&gt;Sandeep Rathan&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-51b89e1ee88f3d2eb61ae7de" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bryan Worrell</dc:creator><pubDate>Wed, 12 Jun 2013 16:13:24 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net97cb6cf8cf031edf5b5132c0a7e3e3fde748abd8</guid></item></channel></rss>