i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D__CONFFILE='"/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"' -D__PROXYUSER='"clamav"' -D__PROXYGROUP='"clamav"' -D__CONFDIR='"/etc/dansguardian"' -march=pentium3 -O2 -pipe -march=pentium3 -O2 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT dansguardian-clamav.o -MD -MP -MF .deps/dansguardian-clamav.Tpo -c -o dansguardian-clamav.o `test -f 'contentscanners/clamav.cpp' || echo './'`contentscanners/clamav.cpp mv -f .deps/dansguardian-dansguardian.Tpo .deps/dansguardian-dansguardian.Po i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D__CONFFILE='"/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"' -D__PROXYUSER='"clamav"' -D__PROXYGROUP='"clamav"' -D__CONFDIR='"/etc/dansguardian"' -march=pentium3 -O2 -pipe -march=pentium3 -O2 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT dansguardian-clamdscan.o -MD -MP -MF .deps/dansguardian-clamdscan.Tpo -c -o dansguardian-clamdscan.o `test -f 'contentscanners/clamdscan.cpp' || echo './'`contentscanners/clamdscan.cpp contentscanners/clamav.cpp:74: error: field 'limits' has incomplete type contentscanners/clamav.cpp: In member function 'virtual int clamavinstance::quit()': contentscanners/clamav.cpp:103: error: 'cl_free' was not declared in this scope contentscanners/clamav.cpp: In member function 'virtual int clamavinstance::scanMemory(HTTPHeader*, HTTPHeader*, const char*, int, const char*, const char*, unsigned int)': contentscanners/clamav.cpp:167: error: 'limits' was not declared in this scope contentscanners/clamav.cpp: In member function 'virtual int clamavinstance::scanFile(HTTPHeader*, HTTPHeader*, const char*, int, const char*, const char*)': contentscanners/clamav.cpp:192: error: 'limits' was not declared in this scope contentscanners/clamav.cpp: In member function 'virtual int clamavinstance::init(void*)': contentscanners/clamav.cpp:249: error: 'cl_settempdir' was not declared in this scope contentscanners/clamav.cpp:259: error: 'limits' was not declared in this scope contentscanners/clamav.cpp:270: error: cannot convert 'cl_engine**' to 'cl_engine*' for argument '2' to 'int cl_load(const char*, cl_engine*, unsigned int*, unsigned int)' contentscanners/clamav.cpp:280: error: 'cl_build' was not declared in this scope make[2]: *** [dansguardian-clamav.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/dansguardian-clamdscan.Tpo .deps/dansguardian-clamdscan.Po make[2]: Leaving directory `/var/tmp/portage/net-proxy/dansguardian-2.10.0.3/work/dansguardian-2.10.0.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-proxy/dansguardian-2.10.0.3/work/dansguardian-2.10.0.3' make: *** [all] Error 2 * * ERROR: net-proxy/dansguardian-2.10.0.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 113: Called die * The specific snippet of code: * emake OPTIMISE="${CFLAGS}" || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/net-proxy:dansguardian-2.10.0.3:20090404-040739.log'. * The ebuild environment file is located at '/var/tmp/portage/net-proxy/dansguardian-2.10.0.3/temp/environment'. * Reproducible: Always # emerge --info Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.26-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.26-gentoo-r4-i686-Pentium_III_-Coppermine-with-glibc2.0 Timestamp of tree: Fri, 03 Apr 2009 19:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.linux.org.tr/pub/mirrors/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 cjk cli cracklib crypt dri fortran gdbm gpm iconv imap isdnlog kerberos ldap libwww maildir midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sasl session spl ssl sysfs tcpd unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 187264 [details, diff] patch to remove --enable-clamav from dansguardian ebuild
(In reply to comment #1) > Created an attachment (id=187264) [edit] > patch to remove --enable-clamav from dansguardian ebuild Attached patch solves the problem by decoupling dansguardian from clamav library. Dansguardian should be using clamd socket to communicate with clamd and not libclamav.
Fixed in dansguardian-2.10.0.3 w/o revision bump.