<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Build notes</title><link>https://sourceforge.net/p/ovaldi/wiki/Build%2520notes/</link><description>Recent changes to Build notes</description><atom:link href="https://sourceforge.net/p/ovaldi/wiki/Build%20notes/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 06 Aug 2014 18:15:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ovaldi/wiki/Build%20notes/feed" 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>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>https://sourceforge.net3dd691c4e91fec1cb9c3076a970605380906f400</guid></item></channel></rss>