From clamav-users-bounces@lists.clamav.net  Sat Oct 31 12:03:39 2009
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 UTnJh++chVG2; Sat, 31 Oct 2009 12:03:39 +0100 (CET)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 4874A31C205;
	Sat, 31 Oct 2009 12:03:36 +0100 (CET)
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 bKZcepkGkAjQ for <clamav-users@tad.clamav.net>;
	Sat, 31 Oct 2009 12:03:34 +0100 (CET)
Received: from its-h.de (its-h.de [216.55.106.123])
	by tad.clamav.net (Postfix) with ESMTP id 7390B31C1C7
	for <clamav-users@lists.clamav.net>;
	Sat, 31 Oct 2009 12:03:34 +0100 (CET)
Received: from [192.168.77.101] (its-h.de [216.55.106.123])
	by its-h.de (8.13.4/8.13.4) with ESMTP id n9VB3WJc045703
	for <clamav-users@lists.clamav.net>;
	Sat, 31 Oct 2009 12:03:33 +0100 (CET)
	(envelope-from mhaeker@its-h.de)
X-Original-To: <clamav-users@lists.clamav.net>
Message-ID: <4AEC1983.9030106@its-h.de>
Date: Sat, 31 Oct 2009 12:03:31 +0100
From: =?windows-1252?Q?Matthias_H=E4ker?= <mhaeker@its-h.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
	rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.6.0
MIME-Version: 1.0
To: ClamAV users ML <clamav-users@lists.clamav.net>
Subject: [Clamav-users] Compile Problems on FreeBSD 4.8
X-BeenThere: clamav-users@lists.clamav.net
X-Mailman-Version: 2.1.11
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/options/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-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Sender: clamav-users-bounces@lists.clamav.net
Errors-To: clamav-users-bounces@lists.clamav.net

Hi


i run into the same Problem

In file included from matcher.h:28,
>>                 from others.h:21,
>>                 from matcher-bm.c:29:
>>others.h: In function =E2=80=98cli_getpagesize=E2=80=99:
>>others.h:363: error: =E2=80=98_SC_PAGESIZE=E2=80=99 undeclared (first use=
 in this
>>function)

so i aplied the patch


http://git.clamav.net/gitweb?p=3Dclamav-devel.git;a=3Dcommitdiff_plain;h=3D=
6238a5ca06c07931b2f6ace62601ef43807df8e2;hp=3D55d97736bd289b53c93b652d88e5a=
cd1886ec1bc


but this diddnt help

so i had a look on the code

the Developer looks for the "pagesize" and he desides if he can use that =

having a HAVE_CLI_GETPAGESIZE value off 0 or 1 :-)

in others.h 363 <-> 372 i found

#if HAVE_SYSCONF_SC_PAGESIZE
static inline int cli_getpagesize(void) { return sysconf(_SC_PAGESIZE); }
#define HAVE_CLI_GETPAGESIZE 1
#else
#if HAVE_GETPAGESIZE
static inline int cli_getpagesize(void) { return getpagesize(); }
#define HAVE_CLI_GETPAGESIZE 1
#endif
#define HAVE_CLI_GETPAGESIZE 0
#endif

i left only

#if HAVE_GETPAGESIZE
static inline int cli_getpagesize(void) { return getpagesize(); }
#define HAVE_CLI_GETPAGESIZE 1
#else
#define HAVE_CLI_GETPAGESIZE 0
#endif

and now i have with

./configure --libdir=3D/usr/local/lib

make
make install

a working Clamav.0.95.3 on FreeBSD 4.8



Greetings

Matthias


-- =



IT Service H=E4ker
Matthias H=E4ker
Hein Hoyer Stra=DFe 64
20359 Hamburg
Tel: +49 (0)40 98238807
Mob: +49 (0)176 65571482

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

