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 ‘cli_getpagesize’:
others.h:363: error: ‘_SC_PAGESIZE’ undeclared (first use in this
function)

so i aplied the patch


http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff_plain;h=6238a5ca06c07931b2f6ace62601ef43807df8e2;hp=55d97736bd289b53c93b652d88e5acd1886ec1bc


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=/usr/local/lib

make
make install

a working Clamav.0.95.3 on FreeBSD 4.8



Greetings

Matthias


--


IT Service Häker
Matthias Häker
Hein Hoyer Straße 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

Reply via email to