From clamav-users-bounces@lists.clamav.net  Thu Apr 12 09:06:07 2007
Return-Path: <clamav-users-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fFzjrGWSi4yv; Thu, 12 Apr 2007 09:06:06 +0200 (CEST)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id C3E1D16C153;
	Thu, 12 Apr 2007 09:05:54 +0200 (CEST)
X-Original-To: clamav-users@tad.clamav.net
Delivered-To: clamav-users@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id jvDd7w+HpjuO for <clamav-users@tad.clamav.net>;
	Thu, 12 Apr 2007 09:05:52 +0200 (CEST)
X-Greylist: delayed 598 seconds by postgrey-1.27 at tad;
	Thu, 12 Apr 2007 09:05:52 CEST
Received: from mail.amur.mts.ru (ftp.amts.ru [62.33.174.1])
	by tad.clamav.net (Postfix) with ESMTP id 6A90E16C0EC
	for <clamav-users@lists.clamav.net>;
	Thu, 12 Apr 2007 09:05:52 +0200 (CEST)
Received: from [10.144.26.6] (michael.amur.mts.ru [10.144.26.6])
	by mail.amur.mts.ru (8.14.1/8.14.1) with ESMTP id l3C75oV6029083
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <clamav-users@lists.clamav.net>;
	Thu, 12 Apr 2007 17:05:51 +1000 (YAKST)
Message-ID: <461DDA49.2070300@amur.mts.ru>
Date: Thu, 12 Apr 2007 17:05:45 +1000
From: Isaev Michael <mvi@amur.mts.ru>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: clamav-users@lists.clamav.net
X-Virus-Scanned: ClamAV devel-20070412/3079/Thu Apr 12 12:30:11 2007 on bella
X-Virus-Status: Clean
Subject: [Clamav-users] Building with Separate Build Directories
X-BeenThere: clamav-users@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV users ML <clamav-users@lists.clamav.net>
List-Id: ClamAV users ML <clamav-users.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-users@lists.clamav.net>
List-Help: <mailto:clamav-users-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-users-bounces@lists.clamav.net
Errors-To: clamav-users-bounces@lists.clamav.net

Can developers fix the problem: impossible to do build clamav with separate dir tree?
Example (OS Solaris 5.9, gcc 3.4.0):

$ cd clamav-devel-yyyymmdd
$ BDIR=obj.`uname -s`.`uname -r`.`uname -m` #in the sendmail manner :)
$ mkdir $BDIR
$ cd $BDIR
$ ../configure --enable-milter LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
$ make
[...]
Making all in clamav-milter
if gcc -DHAVE_CONFIG_H -I. -I../../clamav-milter -I.. -I../../clamd -I../../libclamav -I../../shared 
-I/usr/local/include  -g -O2 -MT cfgparser.o -MD -MP -MF ".deps/cfgparser.Tpo" -c -o cfgparser.o 
`test -f '../../shared/cfgparser.c' || echo '../../clamav-milter/'`../../shared/cfgparser.c; \
then mv -f ".deps/cfgparser.Tpo" ".deps/cfgparser.Po"; else rm -f ".deps/cfgparser.Tpo"; exit 1; fi
../../shared/cfgparser.c:29:30: shared/cfgparser.h: No such file or directory
../../shared/cfgparser.c:30:25: shared/misc.h: No such file or directory
../../shared/cfgparser.c:32:27: libclamav/str.h: No such file or directory
../../shared/cfgparser.c:34: error: elements of array `cfg_options' have incomplete type
../../shared/cfgparser.c:35: warning: excess elements in struct initializer
../../shared/cfgparser.c:35: warning: (near initialization for `cfg_options[0]')
[...]


Workaround:
$ ../configure CPPFLAGS="-I../.."
$ make


Is it real to fix?

-- 
Best regards,
   Michael

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

