<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Compiling Clamav 0.88.5 from source on OpenBSD 3.7</title>
	<link>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/</link>
	<description>...because my memory is poor</description>
	<pubDate>Sun, 07 Sep 2008 15:25:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Chris</title>
		<link>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-2</link>
		<author>Chris</author>
		<pubDate>Sat, 18 Nov 2006 21:51:44 +0000</pubDate>
		<guid>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-2</guid>
					<description>Hi,

I was searching for the same thing (compiling ClamAV 0.88.6 on OpenBSD 3.8) when I came across this page before yours:

http://www.idapps.com/zager/openbsd-notes.html

He uses environment variables which seems cleaner than modifying the configure script.

Here's the configure string that I used:

env CFLAGS=&#34;-I/usr/local/include&#34; LDFLAGS=&#34;-L/usr/local/lib -lpthread&#34; \ ./configure --sysconfdir=/etc --with-user=_clamav --with-group=_clamav --disable-cr --disable-threads

I'm using csh instead of the default ksh thus the difference in setting the environment variables.  I didn't find the &#34;--disable-threads&#34; option in the configure script (there is a &#34;--disable-pthreads&#34; option), but it still seems to work.  If you use &#34;--sysconfdir=/etc&#34;, then you don't have to do the soft-linking.

Hope this helps someone.  Thanks for your posting as well.  I'm glad I'm not the only one trying to compile ClamAV on older versions of OpenBSD as well.

Chris</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was searching for the same thing (compiling ClamAV 0.88.6 on OpenBSD 3.8) when I came across this page before yours:</p>
<p><a href="http://www.idapps.com/zager/openbsd-notes.html" rel="nofollow">http://www.idapps.com/zager/openbsd-notes.html</a></p>
<p>He uses environment variables which seems cleaner than modifying the configure script.</p>
<p>Here&#8217;s the configure string that I used:</p>
<p>env CFLAGS=&quot;-I/usr/local/include&quot; LDFLAGS=&quot;-L/usr/local/lib -lpthread&quot; \ ./configure &#8211;sysconfdir=/etc &#8211;with-user=_clamav &#8211;with-group=_clamav &#8211;disable-cr &#8211;disable-threads</p>
<p>I&#8217;m using csh instead of the default ksh thus the difference in setting the environment variables.  I didn&#8217;t find the &quot;&#8211;disable-threads&quot; option in the configure script (there is a &quot;&#8211;disable-pthreads&quot; option), but it still seems to work.  If you use &quot;&#8211;sysconfdir=/etc&quot;, then you don&#8217;t have to do the soft-linking.</p>
<p>Hope this helps someone.  Thanks for your posting as well.  I&#8217;m glad I&#8217;m not the only one trying to compile ClamAV on older versions of OpenBSD as well.</p>
<p>Chris</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: george</title>
		<link>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-3</link>
		<author>george</author>
		<pubDate>Sun, 19 Nov 2006 12:16:43 +0000</pubDate>
		<guid>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-3</guid>
					<description>Excellent! Thanks for your valuable comments Chris. They'll certainly help me - I haven't got round to upgrading to 0.88.6 yet.</description>
		<content:encoded><![CDATA[<p>Excellent! Thanks for your valuable comments Chris. They&#8217;ll certainly help me - I haven&#8217;t got round to upgrading to 0.88.6 yet.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-4</link>
		<author>Chris</author>
		<pubDate>Sat, 13 Jan 2007 16:22:03 +0000</pubDate>
		<guid>http://blog.georgesteel.net/2006/10/28/compiling-clamav-0885-from-source-on-openbsd-37/#comment-4</guid>
					<description>Hi,

When compiling ClamAV 0.88.7 (and perhaps higher), do not use "-disable-pthreads" or "-disable-threads" in your configure statement, otherwise clamd and clamdscan will not get compiled.  (I found out the hard way.)

My new configure string is:

env CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -lpthread" \
	./configure --sysconfdir=/etc --with-dbdir=/var/db/clamav \
	--with-user=_clamav --with-group=_clamav --disable-cr

Chris</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>When compiling ClamAV 0.88.7 (and perhaps higher), do not use &#8220;-disable-pthreads&#8221; or &#8220;-disable-threads&#8221; in your configure statement, otherwise clamd and clamdscan will not get compiled.  (I found out the hard way.)</p>
<p>My new configure string is:</p>
<p>env CFLAGS=&#8221;-I/usr/local/include&#8221; LDFLAGS=&#8221;-L/usr/local/lib -lpthread&#8221; \<br />
	./configure &#8211;sysconfdir=/etc &#8211;with-dbdir=/var/db/clamav \<br />
	&#8211;with-user=_clamav &#8211;with-group=_clamav &#8211;disable-cr</p>
<p>Chris</p>
]]></content:encoded>
				</item>
</channel>
</rss>
