db...@netspace.net.au wrote:
Hi,
Hoping someone can help with a problem I am having compiling
clamav-0.95.3 on FreeBSD 7.0
uname -a
FreeBSD mail-in2.************ 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
The server is pretty much all default with nothing special running on it.
I run ./configure as I have done many time before on version upgrades...
All goes well. Then on a make I get this.
------------------
make all-recursive
Making all in libltdl
make all-am
Making all in libclamav
make all-recursive
Making all in lzma
Making all in .
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I.. -I./nsis -I./lzma -I../libltdl -DWARN_DLOPEN_FAIL
-DSEARCH_LIBDIR=\"/usr/local/lib\" -g -O2 -MT libclamav_la-matcher-bm.lo -MD -MP
-MF .deps/libclamav_la-matcher-bm.Tpo -c -o libclamav_la-matcher-bm.lo `test -f
'matcher-bm.c' || echo './'`matcher-bm.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I./nsis -I./lzma
-I../libltdl -DWARN_DLOPEN_FAIL -DSEARCH_LIBDIR=\"/usr/local/lib\" -g
-O2 -MT libclamav_la-matcher-bm.lo -MD -MP -MF .deps/libclamav_la-matcher-bm.Tpo
-c matcher-bm.c -fPIC -DPIC -o .libs/libclamav_la-matcher-bm.o 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)
others.h:363: error: (Each undeclared identifier is reported only once
others.h:363: error: for each function it appears in.)
*** Error code 1
Stop in /usr/local/src/clamav-0.95.3/libclamav.
*** Error code 1
Stop in /usr/local/src/clamav-0.95.3/libclamav.
*** Error code 1
Stop in /usr/local/src/clamav-0.95.3/libclamav.
*** Error code 1
Stop in /usr/local/src/clamav-0.95.3.
*** Error code 1
Stop in /usr/local/src/clamav-0.95.3.
Regards,
Daniel
Same here on Fedora 10:
In file included from matcher.h:29,
from others.h:22,
from matcher-bm.c:30:
others.h: In function 'cli_getpagesize':
others.h:363: error: '_SC_PAGESIZE' undeclared (first use in this function)
others.h:363: error: (Each undeclared identifier is reported only once
others.h:363: error: for each function it appears in.)
make[4]: *** [libclamav_la-matcher-bm.lo] Error 1
make[4]: Leaving directory `/home/bill/Download/clamav-0.95.3/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bill/Download/clamav-0.95.3/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bill/Download/clamav-0.95.3/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bill/Download/clamav-0.95.3'
make: *** [all] Error 2
Bill
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml