Skip Menu |

This queue is for tickets about the Mail-ClamAV CPAN distribution.

Report information
The Basics
Id: 130891
Status: new
Priority: 0/
Queue: Mail-ClamAV

People
Owner: Nobody in particular
Requestors: iversons [...] rushville.k12.in.us
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Build Failure with ClamAV 0.101.4
Date: Sun, 3 Nov 2019 17:17:04 -0500
To: bug-Mail-ClamAV [...] rt.cpan.org
From: Shawn Iverson <iversons [...] rushville.k12.in.us>
Observed on RHEL 7 and Debian 9 It appears that the ClamAV now has different structures in the header file /usr/include/clamav.h. Starting "make" Stage make[1]: Entering directory '/home/debian/MailScanner-5.1.3-2/Mail-ClamAV-0.30/_Inline/build/Mail/ClamAV' Running Mkbootstrap for Mail::ClamAV () chmod 644 "ClamAV.bs" "/usr/bin/perl" "/usr/share/perl/5.24/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.24/ExtUtils/typemap" ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c x86_64-linux-gnu-gcc -c -I"/home/debian/MailScanner-5.1.3-2/Mail-ClamAV-0.30" -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.30\" -DXS_VERSION=\"0.30\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE" ClamAV.c ClamAV.xs: In function ‘clamav_perl_maxreclevel’: ClamAV.xs:131:9: warning: ‘return’ with no value, in function returning non-void return; ^~~~~~ ClamAV.xs:115:5: note: declared here int clamav_perl_maxreclevel(SV *self, ...) ^~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs: In function ‘clamav_perl_maxfiles’: ClamAV.xs:158:9: warning: ‘return’ with no value, in function returning non-void return; ^~~~~~ ClamAV.xs:142:5: note: declared here int clamav_perl_maxfiles(SV *self, ...) ^~~~~~~~~~~~~~~~~~~~ ClamAV.xs: In function ‘clamav_perl_maxfilesize’: ClamAV.xs:179:9: warning: ‘return’ with no value, in function returning non-void return; ^~~~~~ ClamAV.xs:163:5: note: declared here int clamav_perl_maxfilesize(SV *self, ...) ^~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs: In function ‘clamav_perl__scanfd’: ClamAV.xs:219:30: warning: passing argument 2 of ‘cl_scandesc’ from incompatible pointer type [-Wincompatible-pointer-types] status = cl_scandesc(fd, &virname, &scanned, c->root, options); ^ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:847:12: note: expected ‘const char *’ but argument is of type ‘const char **’ extern int cl_scandesc(int desc, const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs:219:40: warning: passing argument 3 of ‘cl_scandesc’ from incompatible pointer type [-Wincompatible-pointer-types] status = cl_scandesc(fd, &virname, &scanned, c->root, options); ^ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:847:12: note: expected ‘const char **’ but argument is of type ‘long unsigned int *’ extern int cl_scandesc(int desc, const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs:219:50: warning: passing argument 4 of ‘cl_scandesc’ from incompatible pointer type [-Wincompatible-pointer-types] status = cl_scandesc(fd, &virname, &scanned, c->root, options); ^ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:847:12: note: expected ‘long unsigned int *’ but argument is of type ‘struct cl_engine *’ extern int cl_scandesc(int desc, const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs:219:59: warning: passing argument 5 of ‘cl_scandesc’ makes pointer from integer without a cast [-Wint-conversion] status = cl_scandesc(fd, &virname, &scanned, c->root, options); ^~~~~~~ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:847:12: note: expected ‘const struct cl_engine *’ but argument is of type ‘int’ extern int cl_scandesc(int desc, const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs:219:14: error: too few arguments to function ‘cl_scandesc’ status = cl_scandesc(fd, &virname, &scanned, c->root, options); ^~~~~~~~~~~ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:847:12: note: declared here extern int cl_scandesc(int desc, const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs: In function ‘clamav_perl__scanfile’: ClamAV.xs:259:54: warning: passing argument 5 of ‘cl_scanfile’ makes pointer from integer without a cast [-Wint-conversion] status = cl_scanfile(p, &msg, &scanned, c->root, options); ^~~~~~~ In file included from ClamAV.xs:11:0: /usr/include/clamav.h:875:12: note: expected ‘struct cl_scan_options *’ but argument is of type ‘int’ extern int cl_scanfile(const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, struct cl_scan_options* scanoptions); ^~~~~~~~~~~ ClamAV.xs: In function ‘clamav_perl_constant’: ClamAV.xs:352:44: error: ‘CL_SCAN_RAW’ undeclared (first use in this function) if (strEQ("CL_SCAN_RAW", name)) return CL_SCAN_RAW; ^~~~~~~~~~~ ClamAV.xs:352:44: note: each undeclared identifier is reported only once for each function it appears in ClamAV.xs:353:48: error: ‘CL_SCAN_ARCHIVE’ undeclared (first use in this function) if (strEQ("CL_SCAN_ARCHIVE", name)) return CL_SCAN_ARCHIVE; ^~~~~~~~~~~~~~~ ClamAV.xs:354:45: error: ‘CL_SCAN_MAIL’ undeclared (first use in this function) if (strEQ("CL_SCAN_MAIL", name)) return CL_SCAN_MAIL; ^~~~~~~~~~~~ ClamAV.xs:355:45: error: ‘CL_SCAN_OLE2’ undeclared (first use in this function) if (strEQ("CL_SCAN_OLE2", name)) return CL_SCAN_OLE2; ^~~~~~~~~~~~ ClamAV.xs:356:55: error: ‘CL_SCAN_BLOCKENCRYPTED’ undeclared (first use in this function) if (strEQ("CL_SCAN_BLOCKENCRYPTED", name)) return CL_SCAN_BLOCKENCRYPTED; ^~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:357:45: error: ‘CL_SCAN_HTML’ undeclared (first use in this function) if (strEQ("CL_SCAN_HTML", name)) return CL_SCAN_HTML; ^~~~~~~~~~~~ ClamAV.xs:358:43: error: ‘CL_SCAN_PE’ undeclared (first use in this function) if (strEQ("CL_SCAN_PE", name)) return CL_SCAN_PE; ^~~~~~~~~~ ClamAV.xs:359:52: error: ‘CL_SCAN_BLOCKBROKEN’ undeclared (first use in this function) if (strEQ("CL_SCAN_BLOCKBROKEN", name)) return CL_SCAN_BLOCKBROKEN; ^~~~~~~~~~~~~~~~~~~ ClamAV.xs:360:48: error: ‘CL_SCAN_MAILURL’ undeclared (first use in this function) if (strEQ("CL_SCAN_MAILURL", name)) return CL_SCAN_MAILURL; ClamAV.xs:361:49: error: ‘CL_SCAN_BLOCKMAX’ undeclared (first use in this function) if (strEQ("CL_SCAN_BLOCKMAX", name)) return CL_SCAN_BLOCKMAX; ^~~~~~~~~~~~~~~~ ClamAV.xs:362:52: error: ‘CL_SCAN_ALGORITHMIC’ undeclared (first use in this function) if (strEQ("CL_SCAN_ALGORITHMIC", name)) return CL_SCAN_ALGORITHMIC; ^~~~~~~~~~~~~~~~~~~ ClamAV.xs:363:58: error: ‘CL_SCAN_PHISHING_BLOCKSSL’ undeclared (first use in this function) if (strEQ("CL_SCAN_PHISHING_BLOCKSSL", name)) return CL_SCAN_PHISHING_BLOCKSSL; ^~~~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:364:60: error: ‘CL_SCAN_PHISHING_BLOCKCLOAK’ undeclared (first use in this function) if (strEQ("CL_SCAN_PHISHING_BLOCKCLOAK", name)) return CL_SCAN_PHISHING_BLOCKCLOAK; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:365:44: error: ‘CL_SCAN_ELF’ undeclared (first use in this function) if (strEQ("CL_SCAN_ELF", name)) return CL_SCAN_ELF; ^~~~~~~~~~~ ClamAV.xs:366:44: error: ‘CL_SCAN_PDF’ undeclared (first use in this function) if (strEQ("CL_SCAN_PDF", name)) return CL_SCAN_PDF; ^~~~~~~~~~~ ClamAV.xs:367:51: error: ‘CL_SCAN_STRUCTURED’ undeclared (first use in this function) if (strEQ("CL_SCAN_STRUCTURED", name)) return CL_SCAN_STRUCTURED; ^~~~~~~~~~~~~~~~~~ ClamAV.xs:368:62: error: ‘CL_SCAN_STRUCTURED_SSN_NORMAL’ undeclared (first use in this function) if (strEQ("CL_SCAN_STRUCTURED_SSN_NORMAL", name)) return CL_SCAN_STRUCTURED_SSN_NORMAL; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:369:64: error: ‘CL_SCAN_STRUCTURED_SSN_STRIPPED’ undeclared (first use in this function) if (strEQ("CL_SCAN_STRUCTURED_SSN_STRIPPED", name)) return CL_SCAN_STRUCTURED_SSN_STRIPPED; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:370:56: error: ‘CL_SCAN_PARTIAL_MESSAGE’ undeclared (first use in this function) if (strEQ("CL_SCAN_PARTIAL_MESSAGE", name)) return CL_SCAN_PARTIAL_MESSAGE; ^~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:371:61: error: ‘CL_SCAN_HEURISTIC_PRECEDENCE’ undeclared (first use in this function) if (strEQ("CL_SCAN_HEURISTIC_PRECEDENCE", name)) return CL_SCAN_HEURISTIC_PRECEDENCE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ClamAV.xs:393:47: error: ‘CL_SCAN_STDOPT’ undeclared (first use in this function) if (strEQ("CL_SCAN_STDOPT", name)) return CL_SCAN_STDOPT; ^~~~~~~~~~~~~~ Makefile:336: recipe for target 'ClamAV.o' failed make[1]: *** [ClamAV.o] Error 1 make[1]: Leaving directory '/home/debian/MailScanner-5.1.3-2/Mail-ClamAV-0.30/_Inline/build/Mail/ClamAV' -- Shawn Iverson, CETL Director of Technology Rush County Schools iversons@rushville.k12.in.us [image: Cybersecurity]

Message body is not shown because it is too large.