make all-recursive
make[1]: Entering directory '/home/vtk/Downloads/c-icap-modules'
Making all in .
make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules'
make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules'
Making all in modules
make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules/modules'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules/modules'
Making all in services
make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules/services'
Making all in url_check
make[3]: Entering directory '/home/vtk/Downloads/c-icap-modules/services/url_check'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services/url_check'
Making all in virus_scan
make[3]: Entering directory '/home/vtk/Downloads/c-icap-modules/services/virus_scan'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -g -O2 -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/usr/local/include/c_icap -MT virus_scan_la-virus_scan.lo -MD -MP -MF .deps/virus_scan_la-virus_scan.Tpo -c -o virus_scan_la-virus_scan.lo test -f 'virus_scan.c' || echo './'virus_scan.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -g -O2 -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/usr/local/include/c_icap -MT virus_scan_la-virus_scan.lo -MD -MP -MF .deps/virus_scan_la-virus_scan.Tpo -c virus_scan.c -fPIC -DPIC -o .libs/virus_scan_la-virus_scan.o
virus_scan.c: In function ‘virus_scan_init_service’:
virus_scan.c:217:78: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
QS = ci_stat_entry_register("Requests scanned", STAT_INT64_T, stats_label);
^~~
In file included from virus_scan.c:36:0:
/usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’
CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group);
^~~~~~
virus_scan.c:218:81: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
QS = ci_stat_entry_register("Virmode requests", STAT_INT64_T, stats_label);
^~~
In file included from virus_scan.c:36:0:
/usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’
CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group);
^~~~~~
virus_scan.c:219:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ES = ci_stat_entry_register("Body bytes scanned", STAT_KBS_T, stats_label);
^~~
In file included from virus_scan.c:36:0:
/usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’
CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group);
^~~~~~
virus_scan.c:220:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
FOUND = ci_stat_entry_register("Viruses found", STAT_INT64_T, stats_label);
^~~
In file included from virus_scan.c:36:0:
/usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’
CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group);
^~~~~~
virus_scan.c:221:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
LURES = ci_stat_entry_register("Scan failures", STAT_INT64_T, stats_label);
^~~
In file included from virus_scan.c:36:0:
/usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’
CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group);
^~~~~~
virus_scan.c: In function ‘must_scanned’:
virus_scan.c:1039:24: warning: implicit declaration of function ‘ci_magic_type_groups’; did you mean ‘ci_data_type_groups’? [-Wimplicit-function-declaration]
file_groups = ci_magic_type_groups(file_type);
^~~~~~~~
ci_data_type_groups
virus_scan.c:1039:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
file_groups = ci_magic_type_groups(file_type);
^
virus_scan.c:1042:26: error: ‘CI_MAGIC_MAX_TYPE_GROUPS’ undeclared (first use in this function); did you mean ‘INADDR_MAX_LOCAL_GROUP’?
while ( i < CI_MAGIC_MAX_TYPE_GROUPS && file_groups[i] >= 0) {
^~~~~~~~
INADDR_MAX_LOCAL_GROUP
virus_scan.c:1042:26: note: each undeclared identifier is reported only once for each function it appears in
Makefile:511: recipe for target 'virus_scan_la-virus_scan.lo' failed
make[3]: [virus_scan_la-virus_scan.lo] Error 1
make[3]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services/virus_scan'
Makefile:364: recipe for target 'all-recursive' failed
make[2]: [all-recursive] Error 1
make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services'
Makefile:412: recipe for target 'all-recursive' failed
make[1]: [all-recursive] Error 1
make[1]: Leaving directory '/home/vtk/Downloads/c-icap-modules'
Makefile:344: recipe for target 'all' failed
make: [all] Error 2
The above error occurs while doing make. Any workaround?
make all-recursive make[1]: Entering directory '/home/vtk/Downloads/c-icap-modules' Making all in . make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules' make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules' Making all in modules make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules/modules' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules/modules' Making all in services make[2]: Entering directory '/home/vtk/Downloads/c-icap-modules/services' Making all in url_check make[3]: Entering directory '/home/vtk/Downloads/c-icap-modules/services/url_check' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services/url_check' Making all in virus_scan make[3]: Entering directory '/home/vtk/Downloads/c-icap-modules/services/virus_scan' /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -g -O2 -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/usr/local/include/c_icap -MT virus_scan_la-virus_scan.lo -MD -MP -MF .deps/virus_scan_la-virus_scan.Tpo -c -o virus_scan_la-virus_scan.lo
test -f 'virus_scan.c' || echo './'
virus_scan.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -g -O2 -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/usr/local/include/c_icap -MT virus_scan_la-virus_scan.lo -MD -MP -MF .deps/virus_scan_la-virus_scan.Tpo -c virus_scan.c -fPIC -DPIC -o .libs/virus_scan_la-virus_scan.o virus_scan.c: In function ‘virus_scan_init_service’: virus_scan.c:217:78: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] QS = ci_stat_entry_register("Requests scanned", STAT_INT64_T, stats_label); ^~~In file included from virus_scan.c:36:0: /usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’ CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group); ^~~~~~ virus_scan.c:218:81: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] QS = ci_stat_entry_register("Virmode requests", STAT_INT64_T, stats_label); ^~~In file included from virus_scan.c:36:0: /usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’ CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group); ^~~~~~ virus_scan.c:219:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] ES = ci_stat_entry_register("Body bytes scanned", STAT_KBS_T, stats_label); ^~~In file included from virus_scan.c:36:0: /usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’ CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group); ^~~~~~ virus_scan.c:220:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] FOUND = ci_stat_entry_register("Viruses found", STAT_INT64_T, stats_label); ^~~In file included from virus_scan.c:36:0: /usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’ CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group); ^~~~~~ virus_scan.c:221:79: warning: passing argument 3 of ‘ci_stat_entry_register’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] LURES = ci_stat_entry_register("Scan failures", STAT_INT64_T, stats_label); ^~~In file included from virus_scan.c:36:0: /usr/local/include/c_icap/stats.h:78:22: note: expected ‘char ’ but argument is of type ‘const char ’ CI_DECLARE_FUNC(int) ci_stat_entry_register(char label, int type, char group); ^~~~~~ virus_scan.c: In function ‘must_scanned’: virus_scan.c:1039:24: warning: implicit declaration of function ‘ci_magic_type_groups’; did you mean ‘ci_data_type_groups’? [-Wimplicit-function-declaration] file_groups = ci_magic_type_groups(file_type); ^~~~~~~~ ci_data_type_groups virus_scan.c:1039:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] file_groups = ci_magic_type_groups(file_type); ^ virus_scan.c:1042:26: error: ‘CI_MAGIC_MAX_TYPE_GROUPS’ undeclared (first use in this function); did you mean ‘INADDR_MAX_LOCAL_GROUP’? while ( i < CI_MAGIC_MAX_TYPE_GROUPS && file_groups[i] >= 0) { ^~~~~~~~ INADDR_MAX_LOCAL_GROUP virus_scan.c:1042:26: note: each undeclared identifier is reported only once for each function it appears in Makefile:511: recipe for target 'virus_scan_la-virus_scan.lo' failed make[3]: [virus_scan_la-virus_scan.lo] Error 1 make[3]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services/virus_scan' Makefile:364: recipe for target 'all-recursive' failed make[2]: [all-recursive] Error 1 make[2]: Leaving directory '/home/vtk/Downloads/c-icap-modules/services' Makefile:412: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/vtk/Downloads/c-icap-modules' Makefile:344: recipe for target 'all' failed make: [all] Error 2The above error occurs while doing make. Any workaround?