Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 679314

Summary: net-proxy/havp-0.92a-r2 with app-antivirus/clamav-0.101.0 - /usr/include/clamav.h:68:10: Error: cltypes.h: no such file or directory
Product: Gentoo Linux Reporter: Carsten Böcker <news>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: news
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: havp-0.93.ebuild
pkg-config-libclamav.patch

Description Carsten Böcker 2019-03-03 11:31:11 UTC
Created attachment 567566 [details]
havp-0.93.ebuild

After upgrade clamav to clamav-0.101.0 today compile of havp-0.92a-r2 failed with 

/usr/include/clamav.h:68:10: schwerwiegender Fehler: cltypes.h: Datei oder Verzeichnis nicht gefunden
 #include "cltypes.h"

(sorry for german error-message, means error: cltypes.h not found, unable to reproduce this build with LANG=C)

There is a post on clamav-blog about cltypes.h:

https://blog.clamav.net/2018/12/libclamav-missing-headers-issue.html

Only bug I could find related is:
https://bugs.gentoo.org/672576

Solution is to add
=app-antivirus/clamav-0.101.1 ~amd64

to package.keywords

havp still fails to build but with different error in clamlibscanner.cpp.

But there is a new version havp-0.93 on new website http://www.havp.org/ also mentioned on http://www.server-side.de/

ebuild of 0.93 is mainly copying havp-0.92a-r2, fixing SRC_URI to
http://www.havp.org/download/havp-0.93.tar.gz
and fixing 
${P}-pkg-config-libclamav.patch in line 52 from
-   AC_DEFINE(USECLAMLIB)
to
-   AC_DEFINE(USECLAMLIB, 1, [Have clamav scanner])

after that havp 0.93 compiles without errors and eicar-text succeeds.

I will try to attach pkg-config-libclamav.patch and havp ebuild (if there is no timeout again).
Comment 1 Carsten Böcker 2019-03-03 11:31:57 UTC
Created attachment 567568 [details, diff]
pkg-config-libclamav.patch
Comment 2 Thomas Raschbacher gentoo-dev 2021-04-07 20:10:41 UTC
just fyi in case someone wants to take this package this compiled fine with current clamav .. also there is a version 0.93 out which can compile without the patch it seems, but didn't test it as i do not need the proxy and setup is a bit of a pain.