Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679314 - 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
Summary: net-proxy/havp-0.92a-r2 with app-antivirus/clamav-0.101.0 - /usr/include/clam...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-03-03 11:31 UTC by Carsten Böcker
Modified: 2021-04-07 20:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
havp-0.93.ebuild (havp-0.93.ebuild,1.76 KB, text/plain)
2019-03-03 11:31 UTC, Carsten Böcker
Details
pkg-config-libclamav.patch (havp-0.93-pkg-config-libclamav.patch,1.47 KB, patch)
2019-03-03 11:31 UTC, Carsten Böcker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.