[Pkg-clamav-devel] Bug#923498: cyrus-imapd: fails to build against libclamav9

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Thu Feb 28 23:20:45 GMT 2019


Source: cyrus-imapd
Version: 3.0.8-3
Severity: Serious
Control: block 922004 by -1 

By the time we planned the transition for libclamav there was no
cyrus-imapd package which depended on libclamav-dev but this changed. I
just realised that.
The package failed to build because the ABI on clamav's side changed
between 0.100 -> 0.101:

|gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H      -I/usr/include/libxml2       -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -fPIC  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -c -o imap/quota.o imap/quota.c
|imap/cyr_virusscan.c: In function ?clamav_scanfile?:
|imap/cyr_virusscan.c:197:21: error: ?CL_SCAN_STDOPT? undeclared (first use in this function); did you mean ?CL_DB_STDOPT??
|                     CL_SCAN_STDOPT);
|                     ^~~~~~~~~~~~~~
|                     CL_DB_STDOPT
|imap/cyr_virusscan.c:197:21: note: each undeclared identifier is reported only once for each function it appears in
|gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H      -I/usr/include/libxml2       -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -fPIC  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -c -o imap/reconstruct.o imap/reconstruct.c
|make[4]: *** [Makefile:4817: imap/cyr_virusscan.o] Error 1

Here [0] is an example what I did for havp. Please let me know if 
[ ] you are going to port it yourself
[ ] you ask (quick) upstream to do so
[ ] you are going to drop the support for clamav 
[ ] you want me to port it

If you have the option to use clamav's socket instead the library
interface then this is probably the better option.

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=920865;filename=havp-Update-to-clamav-0.101.patch;msg=5

Sebastian



More information about the Pkg-clamav-devel mailing list